Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 8190 in orxonox.OLD for trunk/src/lib/physics


Ignore:
Timestamp:
Jun 7, 2006, 3:00:01 PM (18 years ago)
Author:
patrick
Message:

trunk: merged the cr branche to trunk

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/lib/physics/physics_interface.h

    r6616 r8190  
    3939  inline float getTotalMass( void ) const { return mass + massChildren; };
    4040
     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
    4146  virtual void applyForce(const Vector& force);
    4247  virtual void applyField(Field* field);
     
    5156  float          massChildren;          //!< Sum of the masses of the children nodes
    5257
     58  Vector         velocity;              //!< the velocity of the masspoint
     59  Vector         acceleration;          //!< acceleration of the masspoint
     60
    5361  Vector         forceSum;              //!< Total central force for this tick
    5462  Quaternion     momentumSum;           //!< Total momentum in this tick
Note: See TracChangeset for help on using the changeset viewer.