[Orxonox-commit 1749] r6467 - code/branches/pickup3/src/orxonox/items

dafrick at orxonox.net dafrick at orxonox.net
Thu Mar 4 12:11:22 CET 2010


Author: dafrick
Date: 2010-03-04 12:11:21 +0100 (Thu, 04 Mar 2010)
New Revision: 6467

Modified:
   code/branches/pickup3/src/orxonox/items/Engine.cc
Log:
Steering works now. The lesson is: Don't comment out stuff you don't understand. ;)


Modified: code/branches/pickup3/src/orxonox/items/Engine.cc
===================================================================
--- code/branches/pickup3/src/orxonox/items/Engine.cc	2010-03-04 10:56:26 UTC (rev 6466)
+++ code/branches/pickup3/src/orxonox/items/Engine.cc	2010-03-04 11:11:21 UTC (rev 6467)
@@ -193,8 +193,8 @@
                 acceleration.y = direction.y * this->accelerationUpDown_ * clamp((this->maxSpeedUpDown_ - velocity.y) / this->maxSpeedUpDown_, 0.0f, 1.0f);
         }
 
-        //TODO: Remove.
-        //this->ship_->setAcceleration(this->ship_->getPickups().processModifiers(ModifierType::Acceleration, this->ship_->getOrientation() * acceleration, false));
+        //TODO: Correct?
+        this->ship_->setAcceleration(this->ship_->getOrientation() * acceleration);
 
         if (!this->ship_->getPermanentBoost())
             this->ship_->setBoost(false);




More information about the Orxonox-commit mailing list