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:
erwin.coumans
2009-05-23 02:15:54 +00:00
parent 1e11223f6b
commit badf723257
51 changed files with 127 additions and 124 deletions

View File

@@ -155,7 +155,7 @@ void btOdeContactJoint::GetInfo2(Info2 *info)
// set LCP limits for normal
info->m_lowerLimit[0] = 0;
info->m_higherLimit[0] = 1e30f;//dInfinity;
info->m_higherLimit[0] = BT_LARGE_FLOAT;//dInfinity;
info->m_lowerLimit[1] = 0;
info->m_higherLimit[1] = 0.f;
info->m_lowerLimit[2] = 0.f;
@@ -208,7 +208,7 @@ void btOdeContactJoint::GetInfo2(Info2 *info)
// }
// set LCP bounds and friction index. this depends on the approximation
// mode
//1e30f
//BT_LARGE_FLOAT
info->m_lowerLimit[1] = -friction;//-j->contact.surface.mu;