Changeset 5028 in orxonox.OLD for orxonox/trunk/src/lib/collision_detection/obb_tree_node.cc
- Timestamp:
- Aug 15, 2005, 8:59:02 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/lib/collision_detection/obb_tree_node.cc
r4836 r5028 22 22 #include "vector.h" 23 23 #include "abstract_model.h" 24 #include " p_node.h"24 #include "world_entity.h" 25 25 26 26 #include <math.h> … … 620 620 621 621 622 void OBBTreeNode::collideWith(BVTreeNode* treeNode, PNode* nodeA, PNode* nodeB)622 void OBBTreeNode::collideWith(BVTreeNode* treeNode, WorldEntity* nodeA, WorldEntity* nodeB) 623 623 { 624 624 PRINTF(3)("collideWith\n"); … … 647 647 this->nodeRight->collideWith(((OBBTreeNode*)treeNode)->nodeRight, nodeA, nodeB); 648 648 } 649 } 650 } 651 } 652 653 654 655 bool OBBTreeNode::overlapTest(OBB* boxA, OBB* boxB, PNode* nodeA, PNode* nodeB) 649 650 /* so there is a collision and this is the last box in the tree (i.e. leaf) */ 651 if( unlikely(this->nodeRight == NULL && this->nodeLeft == NULL)) 652 { 653 //nodeA->collidesWith() 654 } 655 } 656 } 657 } 658 659 660 661 bool OBBTreeNode::overlapTest(OBB* boxA, OBB* boxB, WorldEntity* nodeA, WorldEntity* nodeB) 656 662 { 657 663 /* first check all axis */
Note: See TracChangeset
for help on using the changeset viewer.