Changeset 4718 in orxonox.OLD for orxonox/trunk
- Timestamp:
- Jun 27, 2005, 2:02:37 AM (20 years ago)
- Location:
- orxonox/trunk/src
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/lib/collision_detection/obb_tree_node.cc
r4717 r4718 609 609 /* if the obb overlap, make subtests: check which node is realy overlaping */ 610 610 PRINT(3)("Checking OBB %i vs %i: ", this->getIndex(), treeNode->getIndex()); 611 //if( unlikely())611 if( unlikely(treeNode == NULL)) return; 612 612 if( this->overlapTest(this->bvElement, ((OBBTreeNode*)treeNode)->bvElement, nodeA, nodeB)) 613 613 { -
orxonox/trunk/src/subprojects/collision_detection/collision_detection.cc
r4717 r4718 83 83 //c = new Terrain(); 84 84 85 b->setRelCoor(0.0, 0.0, -1 0.0);86 //b->setRelDir(Quaternion(-M_PI/2.0f, Vector(0.0, 1.0, 0.0)));85 b->setRelCoor(0.0, 0.0, -15.0); 86 b->setRelDir(Quaternion(-M_PI/2.0f, Vector(0.0, 1.0, 0.0))); 87 87 88 88 entityList->add(a); … … 231 231 232 232 233 //b->shiftCoor(Vector(0.0, 0.0, iterata));233 b->shiftCoor(Vector(0.0, 0.0, iterata)); 234 234 235 235 … … 238 238 while( entity != NULL) 239 239 { 240 entity->tick(dt);240 //entity->tick(dt); 241 241 entity = iterator->nextElement(); 242 242 } … … 247 247 void Framework::moduleDraw() const 248 248 { 249 CDEngine::getInstance()->debugDraw(depth, drawMode);249 //CDEngine::getInstance()->debugDraw(depth, drawMode); 250 250 251 251 tIterator<WorldEntity>* iterator = entityList->getIterator(); -
orxonox/trunk/src/world_entities/environment.cc
r4714 r4718 35 35 this->model = (Model*)ResourceManager::getInstance()->load("models/reaplow.obj"/*"worlds/vulcania.obj"*/, OBJ, RP_CAMPAIGN); 36 36 37 this->obbTree = new OBBTree( 10, (sVec3D*)this->model->getVertexArray(), this->model->getVertexCount());37 this->obbTree = new OBBTree(7, (sVec3D*)this->model->getVertexArray(), this->model->getVertexCount()); 38 38 } 39 39
Note: See TracChangeset
for help on using the changeset viewer.