Changeset 2478 for code/branches/objecthierarchy2/src/orxonox/objects/worldentities/pawns/SpaceShip.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/SpaceShip.cc
r2256 r2478 134 134 if (this->hasLocalController()) 135 135 { 136 this->yaw(this->yawRotation_ * dt); 137 if (this->bInvertYAxis_) 138 this->pitch(Degree(-this->pitchRotation_ * dt)); 139 else 140 this->pitch(Degree( this->pitchRotation_ * dt)); 141 this->roll(this->rollRotation_ * dt); 136 if (!this->isInMouseLook()) 137 { 138 this->yaw(this->yawRotation_ * dt); 139 if (this->bInvertYAxis_) 140 this->pitch(Degree(-this->pitchRotation_ * dt)); 141 else 142 this->pitch(Degree( this->pitchRotation_ * dt)); 143 this->roll(this->rollRotation_ * dt); 144 } 142 145 143 146 this->yawRotation_ = this->zeroDegree_; … … 170 173 temp = -this->maxRotation_; 171 174 this->yawRotation_ = Degree(temp); 175 176 Pawn::rotateYaw(value); 172 177 } 173 178 … … 180 185 temp = -this->maxRotation_; 181 186 this->pitchRotation_ = Degree(temp); 187 188 Pawn::rotatePitch(value); 182 189 } 183 190 … … 190 197 temp = -this->maxRotation_; 191 198 this->rollRotation_ = Degree(temp); 199 200 Pawn::rotateRoll(value); 192 201 } 193 202
Note: See TracChangeset
for help on using the changeset viewer.