Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 5925 in orxonox.OLD


Ignore:
Timestamp:
Dec 4, 2005, 11:38:36 PM (19 years ago)
Author:
patrick
Message:

collision_detection: first few boxes are now much tighter.

File:
1 edited

Legend:

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

    r5923 r5925  
    391391    {
    392392      tmpVec = (sVec3D*)(&modelInf.pVertices[modelInf.pTriangles[triangleIndexes[j]].indexToVertices[i]]);
    393       tmpLength = p0.distancePoint(*tmpVec);
     393      tmpLength = p1.distancePoint(*tmpVec);
    394394      if( tmpLength > maxLength[1])
    395395        maxLength[1] = tmpLength;
     
    408408    {
    409409      tmpVec = (sVec3D*)(&modelInf.pVertices[modelInf.pTriangles[triangleIndexes[j]].indexToVertices[i]]);
    410       tmpLength = p0.distancePoint(*tmpVec);
     410      tmpLength = p2.distancePoint(*tmpVec);
    411411      if( tmpLength > maxLength[2])
    412412        maxLength[2] = tmpLength;
Note: See TracChangeset for help on using the changeset viewer.