Replace all hardcoded 1e30(f) by BT_LARGE_FLOAT, defined in btScalar.h as 1e18(f) so that its square still fits in FLT_MAX
Thanks to Ole K. for reporting! http://code.google.com/p/bullet/issues/detail?id=206
This commit is contained in:
@@ -217,8 +217,8 @@ void CollisionDemo::displayCallback(void) {
|
||||
}
|
||||
debugDrawer.drawTransform(input.m_transformA,10.0);
|
||||
btGjkPairDetector convexConvex(shapePtr[0],shapePtr[1],&sGjkSimplexSolver,&epaSolver);
|
||||
input.m_maximumDistanceSquared = 1e30;
|
||||
gjkOutput.m_distance = 1e30f;
|
||||
input.m_maximumDistanceSquared = BT_LARGE_FLOAT;
|
||||
gjkOutput.m_distance = BT_LARGE_FLOAT;
|
||||
convexConvex.getClosestPoints(input, gjkOutput, 0);
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user