Changeset 5043 in orxonox.OLD for orxonox/trunk/src/lib/collision_detection
- Timestamp:
- Aug 16, 2005, 8:29:43 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/lib/collision_detection/obb_tree_node.cc
r5042 r5043 629 629 if( this->overlapTest(this->bvElement, ((OBBTreeNode*)treeNode)->bvElement, nodeA, nodeB)) 630 630 { 631 PRINTF( 3)("collision @ lvl %i, object %s vs. %s\n", this->depth, nodeA->getClassName(), nodeB->getClassName());631 PRINTF(0)("collision @ lvl %i, object %s vs. %s: ", this->depth, nodeA->getClassName(), nodeB->getClassName()); 632 632 633 633 /* check if left node overlaps */ 634 634 if( likely( this->nodeLeft != NULL)) 635 635 { 636 PRINT(0)("l, "); 636 637 PRINT(3)("Checking OBB %i vs %i: ", this->nodeLeft->getIndex(), treeNode->getIndex()); 637 638 if( this->overlapTest(this->nodeLeft->bvElement, ((OBBTreeNode*)treeNode)->bvElement, nodeA, nodeB)) … … 644 645 if( likely( this->nodeRight != NULL)) 645 646 { 647 PRINT(0)("r, "); 646 648 PRINT(3)("Checking OBB %i vs %i: ", this->nodeRight->getIndex(), treeNode->getIndex()); 647 649 if(this->overlapTest(this->nodeRight->bvElement, ((OBBTreeNode*)treeNode)->bvElement, nodeA, nodeB)) … … 651 653 } 652 654 655 PRINT(0)("\n"); 653 656 /* so there is a collision and this is the last box in the tree (i.e. leaf) */ 654 657 if( unlikely(this->nodeRight == NULL && this->nodeLeft == NULL))
Note: See TracChangeset
for help on using the changeset viewer.