Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jun 1, 2006, 10:27:53 PM (19 years ago)
Author:
patrick
Message:

cr: supporting now shared collision lists

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/cr/src/lib/collision_reaction/collision_handle.cc

    r8099 r8106  
    1717#include "collision_handle.h"
    1818
     19#include "world_entity.h"
    1920
    2021#include "collision.h"
     
    9596  this->collisionList.push_back(c);
    9697
     98  // now register it as a shared collision with the other collision entity
     99  CollisionHandle* ch = entityB->getCollisionHandle(this->type);
     100  ch->registerSharedCollision(c);
     101
    97102  return c;
    98103}
     
    105110 * Therefore dispatching it only once
    106111 */
    107 void CollisionHandle::registerCollision(Collision* collision)
     112void CollisionHandle::registerSharedCollision(Collision* collision)
    108113{
     114  // set the state to not dispatched
     115  this->bDispatched = false;
    109116
     117  this->collisionList.push_back(collision);
    110118}
    111119
Note: See TracChangeset for help on using the changeset viewer.