Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jun 8, 2006, 3:47:40 PM (18 years ago)
Author:
patrick
Message:

bsp: some cr default values rearangements

File:
1 edited

Legend:

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

    r8220 r8256  
    4141
    4242  this->bCollided = false;
    43   this->bDispatched = false;
     43  this->bDispatched = true;
    4444
    4545  this->collisionReaction = NULL;
    46   this->bContinuousPoll = true;
     46  this->bContinuousPoll = false;
    4747  this->bStopOnFirstCollision = false;
    4848
     
    5656    case CREngine::CR_PHYSICS_GROUND_WALK:
    5757      this->collisionReaction = new CRPhysicsGroundWalk();
     58      this->bContinuousPoll = true;
    5859      break;
    5960    case CREngine::CR_OBJECT_DAMAGE:
     
    191192void CollisionHandle::handleCollisions()
    192193{
     194//   if( this->type == CREngine::CR_)
     195
    193196  // collision reaction calculations (for every collision there will be a reaction)
    194197  vector<Collision*>::iterator it = this->collisionList.begin();
     
    205208  this->bCollided = false;
    206209
     210  // if continuous poll poll the reaction
     211   if( this->bContinuousPoll)
     212     this->collisionReaction->update(this->owner);
    207213  this->flushCollisions();
    208214}
     
    215221bool CollisionHandle::filterCollisionEvent(CollisionEvent* collisionEvent)
    216222{
     223  if( this->type == CREngine::CR_PHYSICS_GROUND_WALK)
     224  {
     225
     226    vector<long>::iterator it = this->targetList.begin();
     227    for(; it < this->targetList.end(); it++)
     228    {
     229      PRINTF(0)("filtering: %i vs EntityA %i, EntityB %i \n", *it, collisionEvent->getEntityA()->getClassID(), collisionEvent->getEntityB()->getClassID());
     230
     231    }
     232  }
     233
    217234  vector<long>::iterator it = this->targetList.begin();
    218235  for(; it < this->targetList.end(); it++)
Note: See TracChangeset for help on using the changeset viewer.