Changeset 10013 in orxonox.OLD for trunk/src/lib/collision_detection
- Timestamp:
- Dec 4, 2006, 6:42:46 PM (18 years ago)
- Location:
- trunk/src/lib/collision_detection
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/collision_detection/aabb_tree_node.cc
r9869 r10013 17 17 #include "aabb_tree_node.h" 18 18 #include "aabb.h" 19 20 19 #include "bv_tree.h" 20 21 #include "collision_tube.h" 21 22 22 23 #include "matrix.h" … … 532 533 (treeNode->nodeRight == NULL && treeNode->nodeLeft == NULL)) ) 533 534 { 534 nodeA->registerCollision(nodeA, nodeB, (BoundingVolume*)this->bvElement, (BoundingVolume*)treeNode->bvElement);535 CoRe::CollisionTube::getInstance()->registerCollisionEvent( nodeA, nodeB, (BoundingVolume*)this->bvElement, (BoundingVolume*)treeNode->bvElement); 535 536 } 536 537 -
trunk/src/lib/collision_detection/obb_tree_node.cc
r9869 r10013 18 18 #include "obb_tree.h" 19 19 #include "obb.h" 20 21 #include "collision_tube.h" 20 22 21 23 #include "matrix.h" … … 477 479 return; 478 480 481 #warning this should be done 482 // if( !CoRe::CollisionTube::getInstance()->isReactive( *nodeA, *nodeB) ) 483 // return; 484 479 485 // float distanceMax = this->bvElement->radius + ((OBBTreeNode*)treeNode)->bvElement->radius; 480 486 // float distance = fabs((nodeA->getAbsCoor() - nodeB->getAbsCoor()).len()); … … 566 572 (treeNode->nodeRight == NULL && treeNode->nodeLeft == NULL)) ) 567 573 { 568 //PRINTF(0)("----------------------------------------------\n\n\n\n\n\n--------------------------------\n\n\n");569 nodeA->registerCollision(nodeA, nodeB, (BoundingVolume*)this->bvElement, (BoundingVolume*)treeNode->bvElement);574 //PRINTF(0)("----------------------------------------------\n\n\n\n\n\n--------------------------------\n\n\n"); 575 CoRe::CollisionTube::getInstance()->registerCollisionEvent( nodeA, nodeB, (BoundingVolume*)this->bvElement, (BoundingVolume*)treeNode->bvElement); 570 576 } 571 577
Note: See TracChangeset
for help on using the changeset viewer.