Changeset 2478 for code/branches/objecthierarchy2/src/orxonox/objects/worldentities/pawns/Spectator.cc
- Timestamp:
- Dec 15, 2008, 11:26:16 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/objecthierarchy2/src/orxonox/objects/worldentities/pawns/Spectator.cc
r2428 r2478 51 51 52 52 this->speed_ = 200; 53 this->rotationSpeed_ = 3;54 53 55 54 this->yaw_ = 0; … … 88 87 { 89 88 SetConfigValue(speed_, 200.0f); 90 SetConfigValue(rotationSpeed_, 3.0f);91 89 } 92 90 … … 116 114 this->setVelocity(velocity * this->speed_); 117 115 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 } 121 122 122 123 this->yaw_ = this->pitch_ = this->roll_ = 0; … … 161 162 { 162 163 this->yaw_ = value.y; 164 165 ControllableEntity::rotateYaw(value); 163 166 } 164 167 … … 166 169 { 167 170 this->pitch_ = value.y; 171 172 ControllableEntity::rotatePitch(value); 168 173 } 169 174 … … 171 176 { 172 177 this->roll_ = value.y; 178 179 ControllableEntity::rotateRoll(value); 173 180 } 174 181
Note: See TracChangeset
for help on using the changeset viewer.