Changeset 8264 in orxonox.OLD for branches/bsp_model/src/lib/collision_reaction
- Timestamp:
- Jun 8, 2006, 4:19:39 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/bsp_model/src/lib/collision_reaction/collision_handle.cc
r8256 r8264 221 221 bool CollisionHandle::filterCollisionEvent(CollisionEvent* collisionEvent) 222 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 234 223 vector<long>::iterator it = this->targetList.begin(); 235 224 for(; it < this->targetList.end(); it++) 236 225 { 237 226 if( collisionEvent->getEntityA() == this->owner) { 227 if( collisionEvent->getEntityB()->isA((ClassID)(*it))) 228 return true; } 229 else { 238 230 if( collisionEvent->getEntityA()->isA((ClassID)(*it))) 239 231 return true; } 240 else { 241 if( collisionEvent->getEntityB()->isA((ClassID)(*it))) 242 return true; } 243 } 232 } 233 244 234 245 235 return false;
Note: See TracChangeset
for help on using the changeset viewer.