Changeset 4694 in orxonox.OLD for orxonox/trunk/src/lib/collision_detection
- Timestamp:
- Jun 24, 2005, 6:10:13 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/lib/collision_detection/cd_engine.cc
r4689 r4694 59 59 tIterator<WorldEntity>* iterator2 = entityList->getIterator(); 60 60 WorldEntity* entity1 = iterator1->nextElement(); 61 WorldEntity* entity2 = iterator2->nextElement(); 61 WorldEntity* entity2 = iterator2->seekElement(entity1); 62 printf("checking for collisions\n"); 62 63 while( entity1 != NULL) 63 64 { 64 while( entity2 != NULL && entity1 != entity2) 65 printf("entering l1\n"); 66 while( entity2 != NULL) 65 67 { 68 printf("entering l2 - checking object %s against %s\n", entity1->getName(), entity2->getName()); 66 69 entity1->collideWith(entity2); 67 70 entity2 = iterator2->nextElement(); 71 68 72 } 69 73 entity1 = iterator1->nextElement(); 74 entity2 = iterator2->seekElement(entity1); 75 70 76 } 71 77 delete iterator1; 72 78 delete iterator2; 73 74 75 79 } 76 80
Note: See TracChangeset
for help on using the changeset viewer.