Changeset 5835 for code/branches/tutorial/src/orxonox
- Timestamp:
- Sep 29, 2009, 10:47:58 PM (15 years ago)
- Location:
- code/branches/tutorial/src/orxonox/worldentities
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/tutorial/src/orxonox/worldentities/Drone.cc
r5833 r5835 55 55 this->auxilaryThrust_ = 100; 56 56 this->rotationThrust_ = 10; 57 this->steering_ = Vector3::ZERO;58 57 59 58 this->setCollisionType(WorldEntity::Dynamic); … … 122 121 { 123 122 this->localLinearAcceleration_.setZ(this->localLinearAcceleration_.z() - value.x); 124 this->steering_.z = -value.x;125 123 } 126 124 … … 134 132 { 135 133 this->localLinearAcceleration_.setX(this->localLinearAcceleration_.x() + value.x); 136 this->steering_.x = value.x;137 134 } 138 135 … … 146 143 { 147 144 this->localLinearAcceleration_.setY(this->localLinearAcceleration_.y() + value.x); 148 this->steering_.y = value.x;149 145 } 150 146 -
code/branches/tutorial/src/orxonox/worldentities/Drone.h
r5834 r5835 111 111 DroneController *myController_; //!< The controller of the Drone. 112 112 113 Vector3 steering_;114 113 btVector3 localLinearAcceleration_; //!< The linear acceleration that is used to move the Drone the next tick. 115 114 btVector3 localAngularAcceleration_; //!< The linear angular acceleration that is used to move the Drone the next tick.
Note: See TracChangeset
for help on using the changeset viewer.