Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 15, 2008, 11:26:16 PM (15 years ago)
Author:
landauf
Message:
  • Readded smooth camera movement (configurable through CameraPosition), works also with camera-position-changes
  • Added free mouse look (press left control key)
  • Made strength of boost-blur configurable
File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/objecthierarchy2/src/orxonox/objects/worldentities/pawns/Spectator.cc

    r2428 r2478  
    5151
    5252        this->speed_ = 200;
    53         this->rotationSpeed_ = 3;
    5453
    5554        this->yaw_ = 0;
     
    8887    {
    8988        SetConfigValue(speed_, 200.0f);
    90         SetConfigValue(rotationSpeed_, 3.0f);
    9189    }
    9290
     
    116114            this->setVelocity(velocity * this->speed_);
    117115
    118             this->yaw(Radian(this->yaw_ * this->rotationSpeed_));
    119             this->pitch(Radian(this->pitch_ * this->rotationSpeed_));
    120             this->roll(Radian(this->roll_ * this->rotationSpeed_));
     116            if (!this->isInMouseLook())
     117            {
     118                this->yaw(Radian(this->yaw_ * this->getMouseLookSpeed()));
     119                this->pitch(Radian(this->pitch_ * this->getMouseLookSpeed()));
     120                this->roll(Radian(this->roll_ * this->getMouseLookSpeed()));
     121            }
    121122
    122123            this->yaw_ = this->pitch_ = this->roll_ = 0;
     
    161162    {
    162163        this->yaw_ = value.y;
     164
     165        ControllableEntity::rotateYaw(value);
    163166    }
    164167
     
    166169    {
    167170        this->pitch_ = value.y;
     171
     172        ControllableEntity::rotatePitch(value);
    168173    }
    169174
     
    171176    {
    172177        this->roll_ = value.y;
     178
     179        ControllableEntity::rotateRoll(value);
    173180    }
    174181
Note: See TracChangeset for help on using the changeset viewer.