+ Internal improvements for collision shapes

1) add AabbCaching versions of btPolyhedralConvexShape and btMultiSphereShape (this speeds up btMultiSphereShape 'getAabb', and reduces size of btBoxShape)
2) btCylinderShape doesn't derive from btBoxShape anymore
+ Minor fixes in drawing for btMultiSphereShape, btBoxShape.
+ Don't re-generate btDebugFont every frame
+ Disabled velocity prediction for btDbvtBroadphase. Previous default can be restored using btDbvtBroadphase->setVelocityPrediction(1./2.);
This commit is contained in:
erwin.coumans
2009-05-22 01:03:45 +00:00
parent c680791ce9
commit 2f1014268b
25 changed files with 380 additions and 90 deletions

View File

@@ -20,13 +20,16 @@ subject to the following restrictions:
extern unsigned char sFontData[];
static GLuint sTexture = -1;
static int sScreenWidth = 0;
static int sScreenHeight = 0;
static int sScreenWidth = -1;
static int sScreenHeight = -1;
void GLDebugResetFont(int screenWidth,int screenHeight)
{
if ((sScreenWidth == screenWidth) && (sScreenHeight == screenHeight))
return;
sScreenWidth = screenWidth;
sScreenHeight = screenHeight;