Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 8047 in orxonox.OLD


Ignore:
Timestamp:
May 31, 2006, 10:36:17 PM (18 years ago)
Author:
patrick
Message:

cr: flush to switch platforms

Location:
branches/cr/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/cr/src/lib/collision_reaction/cr_object_damage.cc

    r8029 r8047  
    2020#include "cr_object_damage.h"
    2121
     22#include "physics_interface.h"
    2223
    2324using namespace std;
     
    5051{
    5152
     53  float mass;
     54  float velocity;
     55
    5256  const std::vector<CollisionEvent*>* collisionEvents = &(collision->getCollisionEvents());
    5357  std::vector<CollisionEvent*>::const_iterator it = collisionEvents->begin();
     
    5559  {
    5660    // go through the collisions and try to estimate the damage
    57 
     61    mass = (*it)->getEntityA()->getPhysicsInterface()->getMass();
    5862  }
    5963
  • branches/cr/src/world_entities/world_entity.h

    r7989 r8047  
    1616#include <vector>
    1717
     18#include "physics_interface.h"
    1819
    1920
     
    113114  bool hasHealthWidget() const { return this->healthWidget; };
    114115
     116
     117  //FIXME: the PhysicsInterface and the whole PEngine should probably be reviewed. Here its just used to store the vars
     118  /* --- Physics Interface --- */
     119  inline PhysicsInterface getPhysicsEngine() const { return this->physicsInterface; }
     120
     121
    115122  /* --- Misc Stuff Block --- */
    116123  void debugWE() { this->debugEntity(); }
     
    150157  bool                    bReactive;                              //!< true if there is at least one collision reaction subscibed
    151158
     159  PhysicsInterface        physicsInterface;  //!< the physics object of the WorldEntity
    152160
    153161};
Note: See TracChangeset for help on using the changeset viewer.