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:
parent
c57651a789
commit
22cde3cef5
|
@ -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
|
else if (penetrationDepth < minPenetrationDepth) { // Interval 1 and 2 overlap with a smaller penetration depth on this axis
|
||||||
minPenetrationDepth = penetrationDepth; // Update the minimum penetration depth
|
minPenetrationDepth = penetrationDepth; // Update the minimum penetration depth
|
||||||
|
normal = computeContactNormal(obb1->getAxis(2), boxDistance); // Compute the contact normal with the correct sign
|
||||||
}
|
}
|
||||||
|
|
||||||
// Axis B0
|
// Axis B0
|
||||||
|
|
Loading…
Reference in New Issue
Block a user