Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 8842 in orxonox.OLD for branches/multi_player_map/src/lib


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

mulitplayer distances

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  
    3838    const int*          triangleIndexes;            //!< Array with the triangle indexes in modelInfo
    3939    int                 triangleIndexesLength;      //!< length of the indexes array
     40
     41    float               radius;                     //!< the radius of the box (longest axis)
    4042};
    4143
  • branches/multi_player_map/src/lib/collision_detection/obb_tree_node.cc

    r8838 r8842  
    364364    }
    365365  }
     366  this->bvElement->radius = longestAxis;
    366367  PRINTF(4)("\nLongest Axis is: Nr %i with a half-length of:%11.2f\n", longestAxisIndex, longestAxis);
    367368
     
    453454  if( unlikely(treeNode == NULL || nodeA == NULL || nodeB == NULL))
    454455    return;
     456
     457
     458  float distanceMax = nodeA->radius + nodeB->radius;
     459  float distance = fabs((nodeA->getAbsCoor() - nodeB->getAbsCoor()).len());
     460
     461
    455462
    456463  PRINTF(4)("collideWith\n");
Note: See TracChangeset for help on using the changeset viewer.