sign-bit went wrong in case of 32-bit broadphase. Thanks DevO for reporting.

This commit is contained in:
ejcoumans
2007-06-01 01:21:44 +00:00
parent f1e929f8a4
commit 764087fc4f
2 changed files with 5 additions and 4 deletions

View File

@@ -24,13 +24,14 @@
#include "btOverlappingPairCache.h"
#include "btBroadphaseProxy.h"
//Enable BP_USE_FIXEDPOINT_INT_32 if you need more then 32767 objects
//#define BP_USE_FIXEDPOINT_INT_32 1
#ifdef BP_USE_FIXEDPOINT_INT_32
#define BP_FP_INT_TYPE unsigned int
#define BP_MAX_HANDLES 1500000 //arbitrary maximum number of handles
#define BP_HANDLE_SENTINEL 0xffffffff
#define BP_HANDLE_SENTINEL 0x7fffffff
#define BP_HANDLE_MASK 0xfffffffe
#else
#define BP_FP_INT_TYPE unsigned short int