Changeset 8727 for code/trunk/src/orxonox/worldentities/MobileEntity.h
- Timestamp:
- Jul 3, 2011, 5:42:19 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/src/orxonox/worldentities/MobileEntity.h
r8706 r8727 55 55 inline const Vector3& getVelocity() const 56 56 { return this->linearVelocity_; } 57 /** 58 @brief Get the velocity in the coordinate-system of the MoblieEntity. 59 @return Returns the velocity of the MobileEntity in its coordinate-system. 60 */ 57 61 inline Vector3 getLocalVelocity() const 58 62 { return (this->getOrientation().Inverse() * this->getVelocity()); } … … 69 73 inline const Vector3& getAcceleration() const 70 74 { return this->linearAcceleration_; } 71 72 // Added for making N engines work with spaceships 73 void addAcceleration(const Vector3& acceleration, const Vector3 &relativePosition); 74 inline void addAcceleration(float x, float y, float z) 75 { this->addAcceleration(Vector3(x, y, z), Vector3(0,0,0)); } 76 // Getter function above 75 void addAcceleration(const Vector3& acceleration, const Vector3 &relativePosition = Vector3::ZERO); // Adds the input acceleration at the input position to the MobileEntity. 77 76 78 77 void setAngularAcceleration(const Vector3& acceleration);
Note: See TracChangeset
for help on using the changeset viewer.