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:
@@ -340,8 +340,8 @@ void ConcaveDemo::clientMoveAndDisplay()
|
||||
|
||||
int i;
|
||||
int j;
|
||||
btVector3 aabbMin(1e30,1e30,1e30);
|
||||
btVector3 aabbMax(-1e30,-1e30,-1e30);
|
||||
btVector3 aabbMin(BT_LARGE_FLOAT,BT_LARGE_FLOAT,BT_LARGE_FLOAT);
|
||||
btVector3 aabbMax(-BT_LARGE_FLOAT,-BT_LARGE_FLOAT,-BT_LARGE_FLOAT);
|
||||
|
||||
for ( i=NUM_VERTS_X/2-3;i<NUM_VERTS_X/2+2;i++)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user