Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jun 28, 2006, 11:27:51 AM (18 years ago)
Author:
patrick
Message:

radius now works

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/multi_player_map/src/lib/collision_detection/obb_tree_node.cc

    r8842 r8843  
    456456
    457457
    458   float distanceMax = nodeA->radius + nodeB->radius;
     458  float distanceMax = this->bvElement->radius + ((OBBTreeNode*)treeNode)->bvElement->radius;
     459
    459460  float distance = fabs((nodeA->getAbsCoor() - nodeB->getAbsCoor()).len());
     461
     462  PRINTF(5)(" %s vs %s: distanceMax: %f, distance: %f\n", nodeA->getClassName(), nodeB->getClassName(), distanceMax, distance);
    460463
    461464
Note: See TracChangeset for help on using the changeset viewer.