Changeset 8842 in orxonox.OLD for branches/multi_player_map/src/lib
- Timestamp:
- Jun 28, 2006, 11:11:55 AM (18 years ago)
- Location:
- branches/multi_player_map/src/lib/collision_detection
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/multi_player_map/src/lib/collision_detection/bounding_volume.h
r7711 r8842 38 38 const int* triangleIndexes; //!< Array with the triangle indexes in modelInfo 39 39 int triangleIndexesLength; //!< length of the indexes array 40 41 float radius; //!< the radius of the box (longest axis) 40 42 }; 41 43 -
branches/multi_player_map/src/lib/collision_detection/obb_tree_node.cc
r8838 r8842 364 364 } 365 365 } 366 this->bvElement->radius = longestAxis; 366 367 PRINTF(4)("\nLongest Axis is: Nr %i with a half-length of:%11.2f\n", longestAxisIndex, longestAxis); 367 368 … … 453 454 if( unlikely(treeNode == NULL || nodeA == NULL || nodeB == NULL)) 454 455 return; 456 457 458 float distanceMax = nodeA->radius + nodeB->radius; 459 float distance = fabs((nodeA->getAbsCoor() - nodeB->getAbsCoor()).len()); 460 461 455 462 456 463 PRINTF(4)("collideWith\n");
Note: See TracChangeset
for help on using the changeset viewer.