Changeset 9406 in orxonox.OLD for trunk/src/lib/collision_detection
- Timestamp:
- Jul 24, 2006, 11:09:47 AM (18 years ago)
- Location:
- trunk/src/lib/collision_detection
- Files:
-
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/collision_detection/aabb.cc
r8724 r9406 19 19 #include "vector.h" 20 20 21 using namespace std; 21 22 22 23 23 -
trunk/src/lib/collision_detection/aabb_tree_node.cc
r8724 r9406 34 34 35 35 36 using namespace std; 36 37 37 38 38 … … 262 262 const int* triangleIndexes, int length) 263 263 { 264 265 Vector axis[3]; //!< the references to the obb axis266 264 Matrix covMat( box.covarianceMatrix ); //!< covariance matrix (in the matrix dataform) 267 265 … … 501 499 if( this->overlapTest(this->bvElement, treeNode->bvElement, nodeA, nodeB)) 502 500 { 503 PRINTF(5)("collision @ lvl %i, object %s vs. %s, (%p, %p)\n", this->depth, nodeA->getClassName(), nodeB->getClassName(), this->nodeLeft, this->nodeRight);501 PRINTF(5)("collision @ lvl %i, object %s::%s vs. %s::%s, (%p, %p)\n", this->depth, nodeA->getClassCName(), nodeA->getCName(), nodeB->getClassCName(), nodeA->getCName(), this->nodeLeft, this->nodeRight); 504 502 505 503 -
trunk/src/lib/collision_detection/bounding_sphere.cc
r7711 r9406 18 18 #include "bounding_sphere.h" 19 19 20 using namespace std; 20 21 21 22 22 -
trunk/src/lib/collision_detection/bounding_volume.cc
r7711 r9406 18 18 #include "bounding_volume.h" 19 19 20 using namespace std; 20 21 21 22 22 -
trunk/src/lib/collision_detection/bv_tree.cc
r7711 r9406 18 18 #include "bv_tree.h" 19 19 20 using namespace std; 20 21 21 22 22 -
trunk/src/lib/collision_detection/bv_tree_node.cc
r7711 r9406 18 18 #include "bv_tree_node.h" 19 19 20 using namespace std; 20 21 21 22 22 -
trunk/src/lib/collision_detection/cd_engine.cc
r9110 r9406 34 34 #include "bsp_entity.h" 35 35 36 using namespace std; 36 37 37 38 38 … … 45 45 46 46 this->bAbordOnFirstCollision = false; 47 47 48 48 this->terrain = NULL; 49 49 } … … 86 86 if( likely((*entity2) != this->terrain)) 87 87 { 88 PRINTF(5)("checking object %s (%s) against %s (%s)\n", (*entity1)->getClassName(), (*entity1)->getName(), (*entity2)->getClassName(), (*entity2)->getName()); 88 PRINTF(5)("checking object %s (%s) against %s (%s)\n", 89 (*entity1)->getClassCName(), (*entity1)->getCName(), (*entity2)->getClassCName(), (*entity2)->getCName()); 89 90 tree = (*entity1)->getOBBTree(); 90 91 if( likely(tree != NULL) && (*entity2)->getOBBTree() != NULL) … … 113 114 for(entityIterator = list1.begin(); entityIterator != list1.end(); entityIterator++) 114 115 { 115 // PRINTF(0)("Checking: %s a %s\n", (*entityIterator)->getName(), (*entityIterator)->getClass Name());116 // PRINTF(0)("Checking: %s a %s\n", (*entityIterator)->getName(), (*entityIterator)->getClassCName()); 116 117 (dynamic_cast<BspEntity*>(*bspIterator)->getBspManager())->checkCollision(*entityIterator); 117 118 } -
trunk/src/lib/collision_detection/obb.cc
r7711 r9406 19 19 #include "vector.h" 20 20 21 using namespace std; 21 22 22 23 23 -
trunk/src/lib/collision_detection/obb_tree.cc
r9235 r9406 25 25 #include "p_node.h" 26 26 27 using namespace std; 27 28 28 29 29 -
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.