Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 9, 2005, 3:01:57 AM (19 years ago)
Author:
buerlia
Message:

orxonox/branches/physics: IPhyics gets a mass..

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/branches/physics/src/util/physics/i_physics.h

    r3961 r4121  
    11/*!
    22    \file i_physics.h
    3     \brief a physics interface
     3    \brief a physics interface simulating a body with a mass
    44*/
    55
     
    77#define _I_PHYSICS_H
    88
    9 #include "base_object.h"
    10 
    11 
     9#include "p_node.h"
    1210
    1311//! A Physics interface
     
    1513   here can be some longer description of this class
    1614*/
    17 class IPhysics : public BaseObject {
     15class IPhysics : public PNode {
    1816
    1917 public:
    2018  IPhysics();
    2119  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 
    2230
    2331 private:
    24 
     32       
    2533
    2634};
Note: See TracChangeset for help on using the changeset viewer.