From 22cde3cef5ee19ba348c17393968c94a1727d16e Mon Sep 17 00:00:00 2001 From: "chappuis.daniel" Date: Fri, 14 Jan 2011 11:18:44 +0000 Subject: [PATCH] Bug corrected (found by fadilo) git-svn-id: https://reactphysics3d.googlecode.com/svn/trunk@409 92aac97c-a6ce-11dd-a772-7fcde58d38e6 --- src/collision/SATAlgorithm.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/collision/SATAlgorithm.cpp b/src/collision/SATAlgorithm.cpp index e47c782e..0b3222d7 100644 --- a/src/collision/SATAlgorithm.cpp +++ b/src/collision/SATAlgorithm.cpp @@ -176,6 +176,7 @@ bool SATAlgorithm::computeCollisionTest(const OBB* const obb1, const OBB* const } else if (penetrationDepth < minPenetrationDepth) { // Interval 1 and 2 overlap with a smaller penetration depth on this axis minPenetrationDepth = penetrationDepth; // Update the minimum penetration depth + normal = computeContactNormal(obb1->getAxis(2), boxDistance); // Compute the contact normal with the correct sign } // Axis B0