- Timestamp:
- Aug 15, 2005, 9:59:57 PM (19 years ago)
- Location:
- orxonox/trunk/src
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/lib/collision_detection/cd_engine.cc
r5027 r5033 105 105 void CDEngine::checkCollisionGround() 106 106 { 107 Quadtree* q = this->terrain->ssp->getQuadtree(); 107 if( likely( this->terrain != NULL)) 108 { 109 Quadtree* q = this->terrain->ssp->getQuadtree(); 108 110 109 QuadtreeNode* n = q->getQuadtreeFromPosition(this->player->getAbsCoor());110 111 QuadtreeNode* n = q->getQuadtreeFromPosition(this->player->getAbsCoor()); 112 } 111 113 //sTriangleExt* tri = q->getTriangleFromPosition(this->player->getAbsCoor()); 112 114 } -
orxonox/trunk/src/subprojects/collision_detection/collision_detection.cc
r5029 r5033 231 231 232 232 233 b->shiftCoor(Vector(0.0, 0.0, iterata * dt * 12.0f));233 // b->shiftCoor(Vector(0.0, 0.0, iterata * dt * 12.0f)); 234 234 235 235 -
orxonox/trunk/src/world_entities/environment.cc
r5029 r5033 33 33 { 34 34 this->setClassID(CL_ENVIRONMENT, "Environment"); 35 this->model = (Model*)ResourceManager::getInstance()->load("models/ bolido.obj", OBJ, RP_CAMPAIGN);35 this->model = (Model*)ResourceManager::getInstance()->load("models/ships/bolido.obj", OBJ, RP_CAMPAIGN); 36 36 37 this->obbTree = new OBBTree(15, (sVec3D*)this->model->getVertexArray(), this->model->getVertexCount()); 37 if(this->obbTree == NULL) 38 this->obbTree = new OBBTree(5, (sVec3D*)this->model->getVertexArray(), this->model->getVertexCount()); 38 39 } 39 40 -
orxonox/trunk/src/world_entities/npc.cc
r5029 r5033 20 20 21 21 #include "npc.h" 22 #include "obb_tree.h" 22 23 23 24 #include "state.h" … … 32 33 33 34 this->loadModel("models/ships/bolido.obj"); 35 if(this->obbTree == NULL) 36 this->obbTree = new OBBTree(5, (sVec3D*)this->model->getVertexArray(), this->model->getVertexCount()); 34 37 } 35 38 … … 53 56 54 57 58 -
orxonox/trunk/src/world_entities/world_entity.cc
r5029 r5033 73 73 PRINTF(4)("loading %s\n", fileName); 74 74 this->model = (Model*)ResourceManager::getInstance()->load(fileName, OBJ, RP_CAMPAIGN); 75 PRINTF(4)("creating obb tree\n"); 76 this->obbTree = new OBBTree(5, (sVec3D*)this->model->getVertexArray(), this->model->getVertexCount()); 75 77 } 76 78 else
Note: See TracChangeset
for help on using the changeset viewer.