Changeset 10033 in orxonox.OLD for trunk/src/lib/collision_detection
- Timestamp:
- Dec 7, 2006, 3:05:27 PM (18 years ago)
- Location:
- trunk/src/lib/collision_detection
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/collision_detection/cd_engine.cc
r9877 r10033 29 29 //#include "quadtree_node.h" 30 30 31 #include "bsp _manager.h"31 #include "bsp/bsp_manager.h" 32 32 #include "bsp_entity.h" 33 33 -
trunk/src/lib/collision_detection/obb_tree_node.cc
r10013 r10033 20 20 21 21 #include "collision_tube.h" 22 #include "world_entity.h" 22 23 23 24 #include "matrix.h" … … 479 480 return; 480 481 481 #warning this should be done 482 // if( !CoRe::CollisionTube::getInstance()->isReactive( *nodeA, *nodeB) ) 482 PRINTF(4)("collideWith\n"); 483 PRINTF(5)("Checking OBB %i vs %i: ", this->getIndex(), treeNode->getIndex()); 484 485 // check if these world entities have registered for a collision reaction between each other 486 // if( !nodeA->isReactive( *nodeB) && !nodeB->isReactive( *nodeA) ) 483 487 // return; 484 488 489 // now use bounding spheres as a first collision estimation 485 490 // float distanceMax = this->bvElement->radius + ((OBBTreeNode*)treeNode)->bvElement->radius; 486 491 // float distance = fabs((nodeA->getAbsCoor() - nodeB->getAbsCoor()).len()); 487 488 489 // if( distance < distanceMax) 490 // PRINTF(0)(" %s (%s: group %i) vs %s (%s: group %i): distanceMax: %f, distance: %f\n", nodeA->getClassCName(), nodeA->getName(), nodeA->getOMListNumber(), nodeB->getClassCName(), nodeB->getName(), nodeB->getOMListNumber(), distanceMax, distance); 491 492 493 PRINTF(4)("collideWith\n"); 494 PRINTF(5)("Checking OBB %i vs %i: ", this->getIndex(), treeNode->getIndex()); 492 // if( distance > distanceMax) 493 // return; 495 494 496 495 // for now only collide with OBBTreeNodes
Note: See TracChangeset
for help on using the changeset viewer.