Changeset 7944 in orxonox.OLD for branches/cr/src/world_entities/world_entity.cc
- Timestamp:
- May 29, 2006, 12:02:04 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/cr/src/world_entities/world_entity.cc
r7937 r7944 254 254 255 255 /** 256 * registers a new collision to this world entity 257 * @param collisionEvent the event 258 */ 259 void WorldEntity::registerCollision(WorldEntity* entityA, WorldEntity* entityB, BouningVolume* bvA, BoundingVolume* bvB) 260 { 261 // create a collision event 262 Collision* c = CREngine::getInstance()->popCollisionObject(); 263 c->collide(entityA, entityB, bvA, bvB); 264 265 for(int i = 0; i < CREngine::CR_NUMBER; ++i) 266 if( this->collisionHandles[i] != NULL) 267 this->collisionHandles[i]->registerCollision(c); 268 } 269 270 271 /** 256 272 * @brief moves this entity to the List OM_List 257 273 * @param list the list to set this Entity to.
Note: See TracChangeset
for help on using the changeset viewer.