Changeset 8256 in orxonox.OLD for branches/bsp_model/src/lib/collision_reaction/collision_handle.cc
- Timestamp:
- Jun 8, 2006, 3:47:40 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/bsp_model/src/lib/collision_reaction/collision_handle.cc
r8220 r8256 41 41 42 42 this->bCollided = false; 43 this->bDispatched = false;43 this->bDispatched = true; 44 44 45 45 this->collisionReaction = NULL; 46 this->bContinuousPoll = true;46 this->bContinuousPoll = false; 47 47 this->bStopOnFirstCollision = false; 48 48 … … 56 56 case CREngine::CR_PHYSICS_GROUND_WALK: 57 57 this->collisionReaction = new CRPhysicsGroundWalk(); 58 this->bContinuousPoll = true; 58 59 break; 59 60 case CREngine::CR_OBJECT_DAMAGE: … … 191 192 void CollisionHandle::handleCollisions() 192 193 { 194 // if( this->type == CREngine::CR_) 195 193 196 // collision reaction calculations (for every collision there will be a reaction) 194 197 vector<Collision*>::iterator it = this->collisionList.begin(); … … 205 208 this->bCollided = false; 206 209 210 // if continuous poll poll the reaction 211 if( this->bContinuousPoll) 212 this->collisionReaction->update(this->owner); 207 213 this->flushCollisions(); 208 214 } … … 215 221 bool CollisionHandle::filterCollisionEvent(CollisionEvent* collisionEvent) 216 222 { 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 217 234 vector<long>::iterator it = this->targetList.begin(); 218 235 for(; it < this->targetList.end(); it++)
Note: See TracChangeset
for help on using the changeset viewer.