Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

cr: integraged the collision reaction into the main loop

File:
1 edited

Legend:

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

    r7946 r7947  
    115115
    116116void CREngine::handleCollisions()
    117 {}
     117{
     118  std::vector<CollisionHandle*>::iterator it;
     119  for( it = this->collisionHandles.begin(); it != this->collisionHandles.end(); it++)
     120  {
     121    if( (*it)->isCollided())
     122    {
     123      (*it)->handleCollisions();
     124    }
     125  }
     126}
    118127
    119128
Note: See TracChangeset for help on using the changeset viewer.