Changeset 8215 in orxonox.OLD
- Timestamp:
- Jun 7, 2006, 9:24:25 PM (18 years ago)
- Location:
- branches/bsp_model/src
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/bsp_model/src/lib/collision_detection/cd_engine.cc
r8213 r8215 99 99 void CDEngine::checkCollisionGround(std::list<WorldEntity*>& list1) 100 100 { 101 101 std::list<BaseObject*>::const_iterator bspIterator; 102 102 std::list<WorldEntity*>::iterator entityIterator; 103 std::list<BaseObject*>::const_iterator bspIterator; 104 const std::list<BaseObject*>* list = ClassList::getList(CL_BSP_MODEL); 103 const std::list<BaseObject*>* bspList = ClassList::getList(CL_BSP_MODEL); 104 if( bspList == NULL) 105 return; 105 106 106 107 // for all bsp managers check all entities 107 for( bspIterator = list->begin(); bspIterator != list->end(); bspIterator++) {108 for( bspIterator = bspList->begin(); bspIterator != bspList->end(); bspIterator++) { 108 109 for(entityIterator = list1.begin(); entityIterator != list1.end(); entityIterator++) 109 110 static_cast<BspManager*>(*bspIterator)->checkCollision(*entityIterator); … … 122 123 PRINT(0)("= CDEngine: Spawning Tree: Finished\n"); 123 124 PRINT(0)("=======================================================\n"); 124 125 125 } 126 126 … … 143 143 } 144 144 145 145 146 /** 146 147 * this draws the debug spawn tree -
branches/bsp_model/src/lib/graphics/importer/bsp_manager.cc
r8213 r8215 173 173 this->outputFraction = 1.0f; 174 174 175 #warning not here176 this->checkCollision(State::getPlayer()->getPlayable());177 178 179 175 if ( viscluster < 0 || ((int *)(this->bspFile->header))[35] == 0 ) //!< if (sizeof(Visdata) == 0) 180 176 { -
branches/bsp_model/src/story_entities/game_world.cc
r8190 r8215 413 413 void GameWorld::collisionDetection() 414 414 { 415 // object-object collision detection 415 416 CDEngine::getInstance()->checkCollisions(this->dataTank->objectManager->getObjectList(OM_GROUP_00), 416 417 this->dataTank->objectManager->getObjectList(OM_GROUP_01_PROJ)); … … 425 426 this->dataTank->objectManager->getObjectList(OM_COMMON)); 426 427 428 // ground collision detection: BSP Model 429 CDEngine::getInstance()->checkCollisionGround(this->dataTank->objectManager->getObjectList(OM_GROUP_00)); 427 430 } 428 431
Note: See TracChangeset
for help on using the changeset viewer.