Changeset 4661 in orxonox.OLD for orxonox/trunk/src/lib
- Timestamp:
- Jun 20, 2005, 6:47:54 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/lib/collision_detection/obb_tree_node.cc
r4660 r4661 392 392 for(int j = 0; j < length; ++j) 393 393 { 394 tmpLength = fabs(p 1.distancePoint(vertices[j]));394 tmpLength = fabs(p0.distancePoint(vertices[j])); 395 395 if( tmpLength > halfLength[0]) 396 396 halfLength[0] = tmpLength; … … 408 408 for(int j = 0; j < length; ++j) 409 409 { 410 tmpLength = fabs(p 1.distancePoint(vertices[j]));410 tmpLength = fabs(p2.distancePoint(vertices[j])); 411 411 if( tmpLength > halfLength[2]) 412 412 halfLength[2] = tmpLength; … … 431 431 for(int j = 0; j < length; ++j) 432 432 { 433 tmpLength = p 0.distancePoint(vertices[j]);433 tmpLength = p1.distancePoint(vertices[j]); 434 434 if( tmpLength > maxLength[1]) 435 435 maxLength[1] = tmpLength; … … 442 442 for(int j = 0; j < length; ++j) 443 443 { 444 tmpLength = p 0.distancePoint(vertices[j]);444 tmpLength = p2.distancePoint(vertices[j]); 445 445 if( tmpLength > maxLength[2]) 446 446 maxLength[2] = tmpLength; … … 455 455 for(int i = 0; i < 3; ++i) 456 456 { 457 PRINTF(0)("max: %f, min: %f \n", maxLength[i], minLength[i]); 457 458 center[i] = (maxLength[i] - minLength[i]) / 2.0f; // min length is negative 458 459 offset[i] = halfLength[i] - center[i];
Note: See TracChangeset
for help on using the changeset viewer.