Changeset 6921 in orxonox.OLD for branches/current_cd/src/lib/collision_detection/obb_tree_node.cc
- Timestamp:
- Jan 31, 2006, 11:05:36 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/current_cd/src/lib/collision_detection/obb_tree_node.cc
r6919 r6921 515 515 516 516 517 void OBBTreeNode::collideWith(const BVTreeNode& treeNode, WorldEntity* nodeA, WorldEntity* nodeB) 518 { 517 void OBBTreeNode::collideWith(BVTreeNode* treeNode, WorldEntity* nodeA, WorldEntity* nodeB) 518 { 519 if( unlikely(treeNode == 1)) 520 return; 521 519 522 PRINTF(3)("collideWith\n"); 520 523 /* if the obb overlap, make subtests: check which node is realy overlaping */ … … 772 775 } 773 776 774 if( this->nodeLeft == NULL ||this->nodeRight == NULL)777 if( this->nodeLeft == NULL && this->nodeRight == NULL) 775 778 depth = 0; 779 776 780 if( !(drawMode & DRAW_SINGLE && depth != 0)) 777 781 { 782 PRINTF(0)("debug poly draw: depth: %i, mode: %i\n", depth, drawMode); 783 778 784 Vector cen = this->bvElement->center; 779 785 Vector* axis = this->bvElement->axis;
Note: See TracChangeset
for help on using the changeset viewer.