Changeset 8706 for code/trunk/src/orxonox/worldentities/MobileEntity.h
- Timestamp:
- Jun 14, 2011, 8:53:28 PM (13 years ago)
- Location:
- code/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk
- Property svn:mergeinfo changed
-
code/trunk/src/orxonox/worldentities/MobileEntity.h
r5781 r8706 70 70 { return this->linearAcceleration_; } 71 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 77 72 78 void setAngularAcceleration(const Vector3& acceleration); 73 79 inline void setAngularAcceleration(float x, float y, float z) … … 83 89 { this->setAngularVelocity(this->getAngularVelocity().normalisedCopy() * rate.valueRadians()); } 84 90 inline Degree getRotationRate() const 85 { return Degree(this->getAngularVelocity().length()); }91 { return Radian(this->getAngularVelocity().length()); } 86 92 87 93 inline void setRotationAxis(const Vector3& axis)
Note: See TracChangeset
for help on using the changeset viewer.