Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 7597 in orxonox.OLD for branches/cd/src/lib/collision_detection


Ignore:
Timestamp:
May 11, 2006, 5:34:14 PM (19 years ago)
Author:
patrick
Message:

cd: plane forumula reformulated since there was a small bug in it.

File:
1 edited

Legend:

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

    r7590 r7597  
    120120  this->calculateBoxCovariance(*this->bvElement, modelInf, triangleIndexes, length);
    121121  this->calculateBoxEigenvectors(*this->bvElement, modelInf, triangleIndexes, length);
    122   this->calculateBoxAxis(*this->bvElement, modelInf, triangleIndexes, length);
    123   this->calculateBoxAxis(*this->bvElement, modelInf, triangleIndexes, length);
     122//   this->calculateBoxAxis(*this->bvElement, modelInf, triangleIndexes, length);
     123//   this->calculateBoxAxis(*this->bvElement, modelInf, triangleIndexes, length);
    124124  this->calculateBoxAxis(*this->bvElement, modelInf, triangleIndexes, length);
    125125
     
    365365    box.halfLength[i] = (maxLength[i] - minLength[i]) / 2.0f;                 // min length is negative
    366366  }
     367
    367368  // FIXME: += anstatt -= ????????? verwirr
    368   box.center.x += centerOffset[0];
    369   box.center.y += centerOffset[1];
    370   box.center.z += centerOffset[2];
     369  box.center.x -= centerOffset[0];
     370  box.center.y -= centerOffset[1];
     371  box.center.z -= centerOffset[2];
    371372
    372373  PRINTF(3)("\n");
Note: See TracChangeset for help on using the changeset viewer.