Changeset 4615 in orxonox.OLD for orxonox/trunk/src/lib/collision_detection
- Timestamp:
- Jun 13, 2005, 1:26:25 AM (19 years ago)
- Location:
- orxonox/trunk/src/lib/collision_detection
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/lib/collision_detection/cd_engine.cc
r4551 r4615 1 /* 1 /* 2 2 orxonox - the future of 3D-vertical-scrollers 3 3 … … 19 19 #include "obb_tree.h" 20 20 #include "debug.h" 21 #include "abstract_model.h" 21 22 22 23 using namespace std; … … 26 27 \brief standard constructor 27 28 */ 28 CDEngine::CDEngine () 29 CDEngine::CDEngine () 29 30 { 30 31 this->setClassName("CDEngine"); 31 this->setClassID(CL_CD_ENGINE, "CDEngine"); 32 this->setClassID(CL_CD_ENGINE, "CDEngine"); 32 33 33 34 /* testing purposes only: */ … … 44 45 45 46 */ 46 CDEngine::~CDEngine () 47 CDEngine::~CDEngine () 47 48 { 48 49 CDEngine::singletonRef = NULL; … … 74 75 this->rootTree->debug(); 75 76 PRINT(0)("= CDEngine: Spawning Tree: Finished\n"); 76 PRINT(0)("=======================================================\n"); 77 PRINT(0)("=======================================================\n"); 77 78 78 79 } 80 81 void CDEngine::debugSpawnTree(int depth, sVec3D* vertices, int numVertices) 82 { 83 this->rootTree->spawnBVTree(depth, vertices, numVertices); 84 } -
orxonox/trunk/src/lib/collision_detection/cd_engine.h
r4551 r4615 1 /*! 1 /*! 2 2 \file cd_engine.h 3 3 \brief Definition of the collision detection engine 4 4 5 5 */ 6 6 … … 10 10 #include "base_object.h" 11 11 #include "collision_defs.h" 12 #include "abstract_model.h" 12 13 13 14 template<class T> class tList; … … 50 51 51 52 void debug(); 53 void debugSpawnTree(int depth, sVec3D* vertices, int numVertices); 52 54 53 55 private: -
orxonox/trunk/src/lib/collision_detection/obb_tree.cc
r4612 r4615 107 107 } 108 108 109 this->spawnBVTree( 1, vertList, length);109 this->spawnBVTree(2, vertList, length); 110 110 111 111 PRINT(0)("= Spawning Tree: Finished\n"); -
orxonox/trunk/src/lib/collision_detection/obb_tree_node.cc
r4614 r4615 389 389 void OBBTreeNode::drawBV(int currentDepth, const int depth) const 390 390 { 391 glBegin(GL_LINE_LOOP);392 glColor3f(1.0, 1.0, 1.0);393 for(int i = 0; i < this->bvElement->numOfVertices; ++i)394 {395 glVertex3f(this->bvElement->vertices[i][0], this->bvElement->vertices[i][1], this->bvElement->vertices[i][2]);396 //printf("v(%f, %f, %f)\n", this->vertices[i][0], this->vertices[i][1], this->vertices[i][2]);397 }398 glEnd();391 // glBegin(GL_LINE_LOOP); 392 // glColor3f(1.0, 1.0, 1.0); 393 // for(int i = 0; i < this->bvElement->numOfVertices; ++i) 394 // { 395 // glVertex3f(this->bvElement->vertices[i][0], this->bvElement->vertices[i][1], this->bvElement->vertices[i][2]); 396 // //printf("v(%f, %f, %f)\n", this->vertices[i][0], this->vertices[i][1], this->vertices[i][2]); 397 // } 398 // glEnd(); 399 399 } 400 400
Note: See TracChangeset
for help on using the changeset viewer.