Correct the cutoff coefficient to 0.99

git-svn-id: https://reactphysics3d.googlecode.com/svn/trunk@353 92aac97c-a6ce-11dd-a772-7fcde58d38e6
This commit is contained in:
chappuis.daniel 2010-07-19 19:22:11 +00:00
parent 730c2d33f5
commit b0f2dbadcd

View File

@ -26,7 +26,6 @@
#include <cfloat> #include <cfloat>
#include <cmath> #include <cmath>
#include <cassert> #include <cassert>
#include <iostream> // TODO : Delete this
// We want to use the ReactPhysics3D namespace // We want to use the ReactPhysics3D namespace
using namespace reactphysics3d; using namespace reactphysics3d;
@ -88,7 +87,7 @@ bool SATAlgorithm::computeCollisionTest(const OBB* const obb1, const OBB* const
// The contact normal point out of OBB1 toward OBB2 // The contact normal point out of OBB1 toward OBB2
bool side; // True if the interval 1 is at the left of interval 2 if a collision occurs and false otherwise bool side; // True if the interval 1 is at the left of interval 2 if a collision occurs and false otherwise
double minPenetrationDepth = DBL_MAX; // Minimum penetration depth detected among all separated axis double minPenetrationDepth = DBL_MAX; // Minimum penetration depth detected among all separated axis
const double cutoff = 0.9; // Cutoff for cosine of angles between box axes const double cutoff = 0.99; // Cutoff for cosine of angles between box axes
bool existsParallelPair = false; // True if there exists two face normals that are parallel. bool existsParallelPair = false; // True if there exists two face normals that are parallel.
// This is used because if a parallel pair exists, it is sufficient // This is used because if a parallel pair exists, it is sufficient
// to test only the face normals of the OBBs for separation. Two nearly // to test only the face normals of the OBBs for separation. Two nearly