Changeset 8190 in orxonox.OLD for trunk/src/lib/physics
- Timestamp:
- Jun 7, 2006, 3:00:01 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/physics/physics_interface.h
r6616 r8190 39 39 inline float getTotalMass( void ) const { return mass + massChildren; }; 40 40 41 /** @returns the velocity */ 42 inline const Vector getVelocity() { return this->velocity; } 43 /** @returns the acceleration */ 44 inline const Vector getAcceleration() { return this->acceleration; } 45 41 46 virtual void applyForce(const Vector& force); 42 47 virtual void applyField(Field* field); … … 51 56 float massChildren; //!< Sum of the masses of the children nodes 52 57 58 Vector velocity; //!< the velocity of the masspoint 59 Vector acceleration; //!< acceleration of the masspoint 60 53 61 Vector forceSum; //!< Total central force for this tick 54 62 Quaternion momentumSum; //!< Total momentum in this tick
Note: See TracChangeset
for help on using the changeset viewer.