Changeset 8047 in orxonox.OLD for branches/cr/src/lib
- Timestamp:
- May 31, 2006, 10:36:17 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/cr/src/lib/collision_reaction/cr_object_damage.cc
r8029 r8047 20 20 #include "cr_object_damage.h" 21 21 22 #include "physics_interface.h" 22 23 23 24 using namespace std; … … 50 51 { 51 52 53 float mass; 54 float velocity; 55 52 56 const std::vector<CollisionEvent*>* collisionEvents = &(collision->getCollisionEvents()); 53 57 std::vector<CollisionEvent*>::const_iterator it = collisionEvents->begin(); … … 55 59 { 56 60 // go through the collisions and try to estimate the damage 57 61 mass = (*it)->getEntityA()->getPhysicsInterface()->getMass(); 58 62 } 59 63
Note: See TracChangeset
for help on using the changeset viewer.