fixes in GJK/btGjkEpa2, thanks to Dev0 for reporting and Nathanael for fixing
This commit is contained in:
@@ -144,6 +144,13 @@ void btGjkPairDetector::getClosestPoints(const ClosestPointInput& input,Result&
|
||||
break;
|
||||
}
|
||||
|
||||
if(m_cachedSeparatingAxis.length2()<REL_ERROR2)
|
||||
{
|
||||
m_degenerateSimplex = 6;
|
||||
checkSimplex = true;
|
||||
break;
|
||||
}
|
||||
|
||||
btScalar previousSquaredDistance = squaredDistance;
|
||||
squaredDistance = m_cachedSeparatingAxis.length2();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user