Changeset 4121 in orxonox.OLD for orxonox/branches/physics/src/util/physics/i_physics.h
- Timestamp:
- May 9, 2005, 3:01:57 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/branches/physics/src/util/physics/i_physics.h
r3961 r4121 1 1 /*! 2 2 \file i_physics.h 3 \brief a physics interface 3 \brief a physics interface simulating a body with a mass 4 4 */ 5 5 … … 7 7 #define _I_PHYSICS_H 8 8 9 #include "base_object.h" 10 11 9 #include "p_node.h" 12 10 13 11 //! A Physics interface … … 15 13 here can be some longer description of this class 16 14 */ 17 class IPhysics : public BaseObject{15 class IPhysics : public PNode { 18 16 19 17 public: 20 18 IPhysics(); 21 19 virtual ~IPhysics(); 20 21 void setMass( float mass ); //!< Set the mass of this node 22 float getMass( void ) const; //!< Get the mass of this node 23 float getTotalMass( void ) const; //!< Get the sum of the masses of this node and all subnodes 24 25 protected: 26 void recalcMass(); //!< Recalculate the mass of the children 27 float mass; //!< Mass of this node 28 float massChildren; //!< Sum of the masses of the children nodes 29 22 30 23 31 private: 24 32 25 33 26 34 };
Note: See TracChangeset
for help on using the changeset viewer.