Bug corrected (found by fadilo)

git-svn-id: https://reactphysics3d.googlecode.com/svn/trunk@409 92aac97c-a6ce-11dd-a772-7fcde58d38e6
This commit is contained in:
chappuis.daniel 2011-01-14 11:18:44 +00:00
parent c57651a789
commit 22cde3cef5

View File

@ -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