Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jun 1, 2006, 10:27:53 PM (19 years ago)
Author:
patrick
Message:

cr: supporting now shared collision lists

File:
1 edited

Legend:

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

    r8049 r8106  
    5656  float velocity;
    5757
    58   PhysicsInterface* pi;
    5958
    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 damage
    66     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//   }
    6867
    6968}
Note: See TracChangeset for help on using the changeset viewer.