- Timestamp:
- Jun 9, 2010, 9:32:58 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/presentation3/src/orxonox/worldentities/Drone.h
r7060 r7127 53 53 virtual void tick(float dt); //!< Defines which actions the Drone has to take in each tick. 54 54 55 55 56 56 virtual void moveFrontBack(const Vector2& value); 57 57 virtual void moveRightLeft(const Vector2& value); … … 61 61 virtual void rotatePitch(const Vector2& value); 62 62 virtual void rotateRoll(const Vector2& value); 63 63 64 64 /** 65 65 @brief Moves the Drone in the Front/Back-direction by the specifed amount. … … 80 80 inline void moveUpDown(float value) 81 81 { this->moveUpDown(Vector2(value, 0)); } 82 82 83 83 /** 84 84 @brief Rotates the Drone around the y-axis by the specifed amount. … … 99 99 inline void rotateRoll(float value) 100 100 { this->rotateRoll(Vector2(value, 0)); } 101 101 102 102 /** 103 103 @brief Sets the primary thrust to the input amount. … … 105 105 */ 106 106 inline void setPrimaryThrust( float thrust ) 107 { this->primaryThrust_=thrust; } 107 { this->primaryThrust_=thrust; } 108 108 inline void setAuxilaryThrust( float thrust ) 109 { this->auxilaryThrust_=thrust; } 109 { this->auxilaryThrust_=thrust; } 110 110 inline void setRotationThrust( float thrust ) 111 { this->rotationThrust_=thrust; } 111 { this->rotationThrust_=thrust; } 112 112 inline void setMaxDistanceToOwner( float distance) 113 113 { this->maxDistanceToOwner_=distance; } … … 117 117 { this->maxShootingRange_=distance; } 118 118 119 119 120 120 /** 121 121 @brief Gets the primary thrust to the input amount. … … 134 134 inline float getMaxShootingRange() 135 135 { return this->maxShootingRange_; } 136 136 137 137 private: 138 138 DroneController *myController_; //!< The controller of the Drone. 139 139 140 140 btVector3 localLinearAcceleration_; //!< The linear acceleration that is used to move the Drone the next tick. 141 141 btVector3 localAngularAcceleration_; //!< The linear angular acceleration that is used to move the Drone the next tick. 142 float primaryThrust_; //!< The amount of primary thrust. This is just used, when moving forward. 142 float primaryThrust_; //!< The amount of primary thrust. This is just used, when moving forward. 143 143 float auxilaryThrust_; //!< The amount of auxilary thrust. Used for all other movements (except for rotations). 144 144 float rotationThrust_; //!< The amount of rotation thrust. Used for rotations only.
Note: See TracChangeset
for help on using the changeset viewer.