Changeset 2489 for code/branches/presentation/src
- Timestamp:
- Dec 16, 2008, 8:12:45 PM (16 years ago)
- Location:
- code/branches/presentation/src/orxonox/objects
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/presentation/src/orxonox/objects/items/Engine.cc
r2488 r2489 192 192 } 193 193 194 this->ship_->setAcceleration( acceleration);194 this->ship_->setAcceleration(this->ship_->getOrientation() * acceleration); 195 195 196 196 this->ship_->setBoost(false); -
code/branches/presentation/src/orxonox/objects/worldentities/pawns/SpaceShip.cc
r2487 r2489 120 120 if (this->hasLocalController()) 121 121 { 122 /* 122 123 this->localLinearAcceleration_.setX(this->localLinearAcceleration_.x() * getMass() * this->auxilaryThrust_); 123 124 this->localLinearAcceleration_.setY(this->localLinearAcceleration_.y() * getMass() * this->auxilaryThrust_); … … 128 129 this->physicalBody_->applyCentralForce(physicalBody_->getWorldTransform().getBasis() * this->localLinearAcceleration_); 129 130 this->localLinearAcceleration_.setValue(0, 0, 0); 130 131 */ 131 132 if (!this->isInMouseLook()) 132 133 {
Note: See TracChangeset
for help on using the changeset viewer.