Changeset 7944 in orxonox.OLD for branches/cr/src/world_entities
- Timestamp:
- May 29, 2006, 12:02:04 AM (19 years ago)
- Location:
- branches/cr/src/world_entities
- Files:
-
- 2 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. -
branches/cr/src/world_entities/world_entity.h
r7933 r7944 24 24 25 25 class BVTree; 26 class BoundingVolume; 26 27 class Model; 27 28 class CollisionHandle; 29 class Collision; 28 30 29 31 … … 69 71 /* --- Collision Reaction Block --- */ 70 72 void subscribeReaction(CREngine::CRType type, int nrOfTargets, long target, ...); 73 void registerCollision(WorldEntity* entityA, WorldEntity* entityB, BoundingVolume* bvA, BoundingVolume* bvB); 71 74 72 75
Note: See TracChangeset
for help on using the changeset viewer.