Changeset 8106 in orxonox.OLD for branches/cr/src/lib/collision_reaction/cr_object_damage.cc
- Timestamp:
- Jun 1, 2006, 10:27:53 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/cr/src/lib/collision_reaction/cr_object_damage.cc
r8049 r8106 56 56 float velocity; 57 57 58 PhysicsInterface* pi;59 58 60 const std::vector<CollisionEvent*>* collisionEvents = &(collision->getCollisionEvents()); 61 std::vector<CollisionEvent*>::const_iterator it = collisionEvents->begin();62 for(; it != collisionEvents->end(); it++) 63 { 64 pi = &(*it)->getEntityA()->getPhysicsInterface(); 65 // go through the collisions and try to estimate the damage66 mass = pi->getMass();67 }59 60 // const std::vector<CollisionEvent*>* collisionEvents = &(collision->getCollisionEvents()); 61 // std::vector<CollisionEvent*>::const_iterator it = collisionEvents->begin(); 62 // for(; it != collisionEvents->end(); it++) 63 // { 64 // // go through the collisions and try to estimate the damage 65 // mass = (*it)->getEntityA()->getMass(); 66 // } 68 67 69 68 }
Note: See TracChangeset
for help on using the changeset viewer.