Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Oct 14, 2006, 1:25:47 AM (19 years ago)
Author:
patrick
Message:

new interface to collision registers, more transparent. some more functionality

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/coll_rect/src/lib/collision_reaction/collision_tube.cc

    r9891 r9892  
    4040  CollisionTube::CollisionTube ()
    4141  {
    42 
     42    this->registerObject(this, CollisionTube::_objectList);
    4343  }
    4444
     
    6565  {
    6666    Collision* collision = this->_collisionList.back();
     67
     68    // check if there is already a collision defined between these objects
    6769    if( collision->match(*entityA, *entityB))
    68     {}
     70    {
     71      CollisionEvent* collisionEvent = CREngine::getInstance()->popCollisionEventObject();
     72      collisionEvent->collide( CREngine::CR_COLLISION_TYPE_OBB, entityA, entityB, bvA, bvB);
     73      collision->registerCollisionEvent( collisionEvent);
     74    }
    6975  }
    7076
Note: See TracChangeset for help on using the changeset viewer.