Changeset 6140 in orxonox.OLD for branches/collision_detection
- Timestamp:
- Dec 16, 2005, 6:47:33 PM (19 years ago)
- Location:
- branches/collision_detection/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/collision_detection/src/lib/collision_detection/obb_tree_node.cc
r5932 r6140 469 469 if( tmpDist > 0.0f) 470 470 partition1.push_back(box.triangleIndexes[i]); /* positive numbers plus zero */ 471 else 471 else if( tmpDist < 0.0f) 472 472 partition2.push_back(box.triangleIndexes[i]); /* negatice numbers */ 473 else { 474 partition1.push_back(box.triangleIndexes[i]); /* 0.0f? unprobable... */ 475 partition2.push_back(box.triangleIndexes[i]); 476 } 473 477 } 474 478 PRINTF(3)("\nPartition1: got \t%i Vertices \nPartition2: got \t%i Vertices\n", partition1.size(), partition2.size()); -
branches/collision_detection/src/world_entities/world_entity.cc
r5718 r6140 101 101 this->model = (Model*)ResourceManager::getInstance()->load(fileName, OBJ, RP_CAMPAIGN, &scaling); 102 102 103 this->buildObbTree( 4);103 this->buildObbTree(10); 104 104 } 105 105 else
Note: See TracChangeset
for help on using the changeset viewer.