From 8acb0910ebd2fb19713947a8e209c898a1f5b4d4 Mon Sep 17 00:00:00 2001 From: "chappuis.daniel" Date: Thu, 8 Jul 2010 07:30:41 +0000 Subject: [PATCH] Set the cutoff to 0.99 to correct a bug git-svn-id: https://reactphysics3d.googlecode.com/svn/trunk@347 92aac97c-a6ce-11dd-a772-7fcde58d38e6 --- sources/reactphysics3d/collision/SATAlgorithm.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sources/reactphysics3d/collision/SATAlgorithm.cpp b/sources/reactphysics3d/collision/SATAlgorithm.cpp index 68fe2e69..3e35c1dd 100644 --- a/sources/reactphysics3d/collision/SATAlgorithm.cpp +++ b/sources/reactphysics3d/collision/SATAlgorithm.cpp @@ -88,7 +88,7 @@ bool SATAlgorithm::computeCollisionTest(const OBB* const obb1, const OBB* const // 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 double minPenetrationDepth = DBL_MAX; // Minimum penetration depth detected among all separated axis - const double cutoff = 0.999999; // 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. // 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