Changeset 8124 in orxonox.OLD for branches/cr/src/world_entities
- Timestamp:
- Jun 3, 2006, 2:36:03 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/cr/src/world_entities/world_entity.cc
r7989 r8124 323 323 this->collisionHandles[type] = CREngine::getInstance()->subscribeReaction(this, type); 324 324 325 // now there is at least one collision reaction subs ribed325 // now there is at least one collision reaction subscribed 326 326 this->bReactive = true; 327 327 } … … 379 379 // create a collision event 380 380 CollisionEvent* c = CREngine::getInstance()->popCollisionEventObject(); 381 assert(c != NULL); 381 assert(c != NULL); // if this should fail: we got not enough precached CollisionEvents: alter value in cr_defs.h 382 382 c->collide(entityA, entityB, bvA, bvB); 383 383 384 for( int i = 0; i < CREngine::CR_NUMBER; ++i)384 for( int i = 0; i < CREngine::CR_NUMBER; ++i) 385 385 if( this->collisionHandles[i] != NULL) 386 386 this->collisionHandles[i]->registerCollisionEvent(c);
Note: See TracChangeset
for help on using the changeset viewer.