Changeset 6911 in orxonox.OLD for branches/current_cd/src/lib/collision_detection/obb_tree.cc
- Timestamp:
- Jan 31, 2006, 7:12:41 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/current_cd/src/lib/collision_detection/obb_tree.cc
r6909 r6911 31 31 * standard constructor 32 32 */ 33 OBBTree::OBBTree(int depth, const modelInfo &modelInf)33 OBBTree::OBBTree(int depth, const modelInfo* modelInf) 34 34 : BVTree() 35 35 { 36 36 this->depth = depth; 37 37 this->init(); 38 this->spawnBVTree( modelInf);38 this->spawnBVTree(*modelInf); 39 39 } 40 40 … … 92 92 * @param nodeB: Pnode of object B 93 93 */ 94 void OBBTree::collideWith( const WorldEntity& entity1, const WorldEntity& entity2) const94 void OBBTree::collideWith(WorldEntity* entity1, WorldEntity* entity2) 95 95 { 96 if( likely(entity2 .getOBBTree() != NULL) )97 this->rootNode->collideWith(*(((OBBTree*)entity2 .getOBBTree())->getRootNode()), entity1, entity2);96 if( likely(entity2->getOBBTree() != NULL) ) 97 this->rootNode->collideWith(*(((OBBTree*)entity2->getOBBTree())->getRootNode()), entity1, entity2); 98 98 } 99 99
Note: See TracChangeset
for help on using the changeset viewer.