more tweaking to get GJK more reliable

This commit is contained in:
ejcoumans
2006-11-15 02:23:45 +00:00
parent b5afb11282
commit dcdfbe1680
2 changed files with 17 additions and 1 deletions

View File

@@ -192,7 +192,7 @@ void btGjkPairDetector::getClosestPoints(const ClosestPointInput& input,Result&
normalInB = pointOnA-pointOnB;
float lenSqr = m_cachedSeparatingAxis.length2();
//valid normal
if (lenSqr < 0.00001)
if (lenSqr < 0.0001)
{
m_degenerateSimplex = 5;
}