Added btCapsuleShape. This could already be simulated by simply adding 2 spheres to the btMultiSphereShape, but this was bad documented/unknown.

For tapered capsules, you can still use btMultiSphereShape, just pass 2 spheres with different radius.
This commit is contained in:
ejcoumans
2007-01-30 00:09:08 +00:00
parent 7b5301bb43
commit 581468ceec
7 changed files with 275 additions and 36 deletions

View File

@@ -25,7 +25,7 @@ class GL_ShapeDrawer
static void drawOpenGL(btScalar* m, const btCollisionShape* shape, const btVector3& color,int debugMode);
static void drawCoordSystem();
static void drawCylinder(float radius,float halfHeight, int upAxis);
};
void OGL_displaylist_register_shape(btCollisionShape * shape);