Changeset 8087 in orxonox.OLD for branches/bsp_model/src/lib/collision_detection/cd_engine.cc
- Timestamp:
- Jun 1, 2006, 5:10:54 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/bsp_model/src/lib/collision_detection/cd_engine.cc
r7739 r8087 29 29 #include "quadtree_node.h" 30 30 31 31 #include "bsp_manager.h" 32 32 33 33 using namespace std; … … 95 95 * this checks the collisions with the ground 96 96 */ 97 void CDEngine::checkCollisionGround( )97 void CDEngine::checkCollisionGround(std::list<WorldEntity*>& list1) 98 98 { 99 99 if( likely( this->terrain != NULL)) 100 100 { 101 101 Quadtree* q = dynamic_cast<Terrain*>(this->terrain)->ssp->getQuadtree(); 102 103 102 // QuadtreeNode* n = q->getQuadtreeFromPosition(this->player->getAbsCoor()); 104 103 } 105 //sTriangleExt* tri = q->getTriangleFromPosition(this->player->getAbsCoor()); 104 105 if( likely( this->bspManager != NULL)) 106 { 107 std::list<WorldEntity*>::iterator iterator; 108 PRINTF(3)("checking for collisions\n"); 109 110 iterator = list1.begin(); 111 while (iterator != list1.end()) 112 { 113 bspManager->checkCollision(*iterator); 114 iterator++; 115 } 116 } 106 117 } 107 118
Note: See TracChangeset
for help on using the changeset viewer.