Changeset 9406 in orxonox.OLD for trunk/src/lib/collision_detection/obb_tree_node.cc
- Timestamp:
- Jul 24, 2006, 11:09:47 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/collision_detection/obb_tree_node.cc
r9235 r9406 33 33 34 34 35 using namespace std; 35 36 36 37 37 … … 434 434 } 435 435 } 436 delete [] triangleCenter; 436 437 PRINTF(4)("\nPartition1: got \t%i Vertices \nPartition2: got \t%i Vertices\n", partition1.size(), partition2.size()); 437 438 … … 476 477 return; 477 478 478 float distanceMax = this->bvElement->radius + ((OBBTreeNode*)treeNode)->bvElement->radius;479 float distance = fabs((nodeA->getAbsCoor() - nodeB->getAbsCoor()).len());479 // float distanceMax = this->bvElement->radius + ((OBBTreeNode*)treeNode)->bvElement->radius; 480 // float distance = fabs((nodeA->getAbsCoor() - nodeB->getAbsCoor()).len()); 480 481 481 482 482 483 // if( distance < distanceMax) 483 // PRINTF(0)(" %s (%s: group %i) vs %s (%s: group %i): distanceMax: %f, distance: %f\n", nodeA->getClass Name(), nodeA->getName(), nodeA->getOMListNumber(), nodeB->getClassName(), nodeB->getName(), nodeB->getOMListNumber(), distanceMax, distance);484 // 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); 484 485 485 486 … … 504 505 if( this->overlapTest(this->bvElement, treeNode->bvElement, nodeA, nodeB)) 505 506 { 506 PRINTF(5)("collision @ lvl %i, object %s vs. %s, (%p, %p)\n", this->depth, nodeA->getClass Name(), nodeB->getClassName(), this->nodeLeft, this->nodeRight);507 PRINTF(5)("collision @ lvl %i, object %s vs. %s, (%p, %p)\n", this->depth, nodeA->getClassCName(), nodeB->getClassCName(), this->nodeLeft, this->nodeRight); 507 508 508 509 … … 806 807 if( this->obbTree->getOwner() != NULL) 807 808 { 808 PRINTF(4)("debug poly draw: depth: %i, mode: %i, entity-name: %s, class: %s\n", depth, drawMode, this->obbTree->getOwner()->get Name(), this->obbTree->getOwner()->getClassName());809 PRINTF(4)("debug poly draw: depth: %i, mode: %i, entity-name: %s, class: %s\n", depth, drawMode, this->obbTree->getOwner()->getCName(), this->obbTree->getOwner()->getClassCName()); 809 810 } 810 811 else
Note: See TracChangeset
for help on using the changeset viewer.