- Timestamp:
- Dec 15, 2008, 1:52:00 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/presentation/src/orxonox/objects/worldentities/pawns/SpaceShip.cc
r2459 r2463 141 141 void SpaceShip::rotateYaw(const Vector2& value) 142 142 { 143 this->localAngularAcceleration_.setY(this->local LinearAcceleration_.y() + value.x);143 this->localAngularAcceleration_.setY(this->localAngularAcceleration_.y() + value.x); 144 144 } 145 145 146 146 void SpaceShip::rotatePitch(const Vector2& value) 147 147 { 148 this->localAngularAcceleration_.setX(this->local LinearAcceleration_.x() + value.x);148 this->localAngularAcceleration_.setX(this->localAngularAcceleration_.x() + value.x); 149 149 } 150 150 151 151 void SpaceShip::rotateRoll(const Vector2& value) 152 152 { 153 this->localAngularAcceleration_.setZ(this->local LinearAcceleration_.z() - value.x);153 this->localAngularAcceleration_.setZ(this->localAngularAcceleration_.z() - value.x); 154 154 } 155 155
Note: See TracChangeset
for help on using the changeset viewer.