- Timestamp:
- Aug 16, 2005, 8:28:04 PM (19 years ago)
- Location:
- orxonox/trunk/src
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/lib/collision_detection/cd_engine.cc
r5038 r5042 29 29 #include "quadtree.h" 30 30 #include "quadtree_node.h" 31 31 32 32 33 -
orxonox/trunk/src/lib/collision_detection/obb_tree_node.cc
r5038 r5042 626 626 PRINT(3)("Checking OBB %i vs %i: ", this->getIndex(), treeNode->getIndex()); 627 627 if( unlikely(treeNode == NULL)) return; 628 628 629 if( this->overlapTest(this->bvElement, ((OBBTreeNode*)treeNode)->bvElement, nodeA, nodeB)) 629 630 { 630 //PRINTF(0)("collision @ lvl %i, object %s vs%s\n", this->depth, nodeA->getClassName(), nodeB->getClassName());631 PRINTF(3)("collision @ lvl %i, object %s vs. %s\n", this->depth, nodeA->getClassName(), nodeB->getClassName()); 631 632 632 633 /* check if left node overlaps */ … … 653 654 if( unlikely(this->nodeRight == NULL && this->nodeLeft == NULL)) 654 655 { 656 PRINT(0)("COLLISOIN\n"); 655 657 nodeA->collidesWith(nodeB); 656 658 nodeB->collidesWith(nodeA); -
orxonox/trunk/src/world_entities/environment.cc
r5033 r5042 36 36 37 37 if(this->obbTree == NULL) 38 this->obbTree = new OBBTree( 5, (sVec3D*)this->model->getVertexArray(), this->model->getVertexCount());38 this->obbTree = new OBBTree(4, (sVec3D*)this->model->getVertexArray(), this->model->getVertexCount()); 39 39 } 40 40 -
orxonox/trunk/src/world_entities/npc.cc
r5034 r5042 34 34 this->loadModel("models/ships/bolido.obj"); 35 35 if(this->obbTree == NULL) 36 this->obbTree = new OBBTree( 5, (sVec3D*)this->model->getVertexArray(), this->model->getVertexCount());36 this->obbTree = new OBBTree(4, (sVec3D*)this->model->getVertexArray(), this->model->getVertexCount()); 37 37 } 38 38 -
orxonox/trunk/src/world_entities/world_entity.cc
r5033 r5042 74 74 this->model = (Model*)ResourceManager::getInstance()->load(fileName, OBJ, RP_CAMPAIGN); 75 75 PRINTF(4)("creating obb tree\n"); 76 this->obbTree = new OBBTree( 5, (sVec3D*)this->model->getVertexArray(), this->model->getVertexCount());76 this->obbTree = new OBBTree(4, (sVec3D*)this->model->getVertexArray(), this->model->getVertexCount()); 77 77 } 78 78 else
Note: See TracChangeset
for help on using the changeset viewer.