Changeset 8849 in orxonox.OLD for branches/multi_player_map/src/lib/collision_detection
- Timestamp:
- Jun 28, 2006, 1:49:00 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/multi_player_map/src/lib/collision_detection/obb_tree_node.cc
r8845 r8849 489 489 if( this->overlapTest(this->nodeLeft->bvElement, treeNode->bvElement, nodeA, nodeB)) 490 490 { 491 bool bAdvance = false; 491 492 if( treeNode->nodeLeft != NULL) 492 493 this->nodeLeft->collideWith(treeNode->nodeLeft, nodeA, nodeB); 494 else 495 bAdvance = true; 496 493 497 if( treeNode->nodeRight != NULL) 494 498 this->nodeLeft->collideWith(treeNode->nodeRight, nodeA, nodeB); 499 else 500 bAdvance = true; 501 502 if( bAdvance) 503 this->nodeLeft->collideWith(treeNode, nodeA, nodeB); // go down the other tree also 495 504 } 496 505 } … … 501 510 if( this->overlapTest(this->nodeRight->bvElement, treeNode->bvElement, nodeA, nodeB)) 502 511 { 512 bool bAdvance = false; 513 503 514 if( treeNode->nodeLeft != NULL) 504 515 this->nodeRight->collideWith(treeNode->nodeLeft, nodeA, nodeB); 516 else 517 bAdvance = true; 518 505 519 if( treeNode->nodeRight != NULL) 506 520 this->nodeRight->collideWith(treeNode->nodeRight, nodeA, nodeB); 521 else 522 bAdvance = true; 523 524 if( bAdvance) 525 this->nodeRight->collideWith(treeNode, nodeA, nodeB); // go down the other tree also 507 526 } 508 527 } … … 523 542 (treeNode->nodeRight == NULL && treeNode->nodeLeft == NULL)) ) 524 543 { 525 PRINTF(0)("----------------------------------------------\\n\n\n\n\n\n--------------------------------\n\n\n");544 // PRINTF(0)("----------------------------------------------\n\n\n\n\n\n--------------------------------\n\n\n"); 526 545 nodeA->registerCollision(nodeA, nodeB, (BoundingVolume*)this->bvElement, (BoundingVolume*)treeNode->bvElement); 527 546 }
Note: See TracChangeset
for help on using the changeset viewer.