Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 29, 2006, 12:48:21 AM (18 years ago)
Author:
patrick
Message:

cr: collision objects handling

File:
1 edited

Legend:

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

    r7933 r7945  
    7272}
    7373
     74/**
     75 * flushes the collision list
     76 */
     77void CollisionHandle::flushCollisions()
     78{
     79  std::vector<Collision*>::iterator it;
     80  for( it = this->collisionList.begin(); it != this->collisionList.end(); it++)
     81    CREngine::getInstance()->pushCollisionObject(*it);
     82  this->collisionList.clear();
     83}
    7484
     85
     86/**
     87 * handles the collisions and react according to algorithm
     88 */
     89void CollisionHandle::handleCollisions()
     90{
     91
     92  // collision reaction calculations
     93
     94  // now set state to dispatched
     95  this->bDispatched = true;
     96  this->flushCollisions();
     97}
Note: See TracChangeset for help on using the changeset viewer.