Changeset 7945 in orxonox.OLD for branches/cr/src/lib/collision_reaction/collision_handle.cc
- Timestamp:
- May 29, 2006, 12:48:21 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/cr/src/lib/collision_reaction/collision_handle.cc
r7933 r7945 72 72 } 73 73 74 /** 75 * flushes the collision list 76 */ 77 void 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 } 74 84 85 86 /** 87 * handles the collisions and react according to algorithm 88 */ 89 void 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.