Floating point exception in GjkPairDetector::GetClosestPoint
Posted: Fri Jun 16, 2006 3:44 am
I'm trying to run the CcdPhysicsDemo and I get a floating point exception in GjkPairDetector::GetClosestPoints, line 82 in my version of the sources:
It's caused by squaredDistance * input.m_maximumDistanceSquared where
the multiply results in +INF which triggers the exception.
Is this on purpose? What happens with the compare when one side is INF?
Code: Select all
if ((delta > SimdScalar(0.0)) && (delta * delta > squaredDistance * input.m_maximumDistanceSquared))
Code: Select all
squaredDistance = SIMD_INFINITY
input.m_maximumDistanceSquared = 1.0E+30
Is this on purpose? What happens with the compare when one side is INF?