[Orxonox-commit 1114] r5835 - code/branches/tutorial/src/orxonox/worldentities

scheusso at orxonox.net scheusso at orxonox.net
Tue Sep 29 22:47:59 CEST 2009


Author: scheusso
Date: 2009-09-29 22:47:58 +0200 (Tue, 29 Sep 2009)
New Revision: 5835

Modified:
   code/branches/tutorial/src/orxonox/worldentities/Drone.cc
   code/branches/tutorial/src/orxonox/worldentities/Drone.h
Log:
removed unneccessary variable in Drone


Modified: code/branches/tutorial/src/orxonox/worldentities/Drone.cc
===================================================================
--- code/branches/tutorial/src/orxonox/worldentities/Drone.cc	2009-09-29 20:29:34 UTC (rev 5834)
+++ code/branches/tutorial/src/orxonox/worldentities/Drone.cc	2009-09-29 20:47:58 UTC (rev 5835)
@@ -54,7 +54,6 @@
         this->primaryThrust_  = 100;
         this->auxilaryThrust_ = 100;
         this->rotationThrust_ = 10;
-        this->steering_ = Vector3::ZERO;
         
         this->setCollisionType(WorldEntity::Dynamic);
         
@@ -121,7 +120,6 @@
     void Drone::moveFrontBack(const Vector2& value)
     {
         this->localLinearAcceleration_.setZ(this->localLinearAcceleration_.z() - value.x);
-        this->steering_.z = -value.x;
     }
 
     /**
@@ -133,7 +131,6 @@
     void Drone::moveRightLeft(const Vector2& value)
     {
         this->localLinearAcceleration_.setX(this->localLinearAcceleration_.x() + value.x);
-        this->steering_.x = value.x;
     }
 
     /**
@@ -145,7 +142,6 @@
     void Drone::moveUpDown(const Vector2& value)
     {
         this->localLinearAcceleration_.setY(this->localLinearAcceleration_.y() + value.x);
-        this->steering_.y = value.x;
     }
 
     /**

Modified: code/branches/tutorial/src/orxonox/worldentities/Drone.h
===================================================================
--- code/branches/tutorial/src/orxonox/worldentities/Drone.h	2009-09-29 20:29:34 UTC (rev 5834)
+++ code/branches/tutorial/src/orxonox/worldentities/Drone.h	2009-09-29 20:47:58 UTC (rev 5835)
@@ -110,7 +110,6 @@
         private:
             DroneController *myController_; //!< The controller of the Drone.
             
-            Vector3 steering_;
             btVector3 localLinearAcceleration_; //!< The linear acceleration that is used to move the Drone the next tick.
             btVector3 localAngularAcceleration_; //!< The linear angular acceleration that is used to move the Drone the next tick.
             float primaryThrust_; //!< The amount of primary thrust. This is just used, when moving forward. 




More information about the Orxonox-commit mailing list