Changeset 5033 in orxonox.OLD for orxonox/trunk/src/world_entities
- Timestamp:
- Aug 15, 2005, 9:59:57 PM (19 years ago)
- Location:
- orxonox/trunk/src/world_entities
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
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.