From 0ef218424c3351f64aaf762c7a65916928ac2eda Mon Sep 17 00:00:00 2001 From: ejcoumans Date: Wed, 27 Jun 2007 03:27:13 +0000 Subject: [PATCH] enable general drawing of concave meshes for heightfields/planes, not just trianglemeshes --- Demos/OpenGL/GL_ShapeDrawer.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Demos/OpenGL/GL_ShapeDrawer.cpp b/Demos/OpenGL/GL_ShapeDrawer.cpp index cb3254cdb..d9e1b17e3 100644 --- a/Demos/OpenGL/GL_ShapeDrawer.cpp +++ b/Demos/OpenGL/GL_ShapeDrawer.cpp @@ -506,10 +506,10 @@ void GL_ShapeDrawer::drawOpenGL(btScalar* m, const btCollisionShape* shape, cons else { #else - if (shape->getShapeType() == TRIANGLE_MESH_SHAPE_PROXYTYPE||shape->getShapeType() == GIMPACT_SHAPE_PROXYTYPE) + if (shape->isConcave())//>getShapeType() == TRIANGLE_MESH_SHAPE_PROXYTYPE||shape->getShapeType() == GIMPACT_SHAPE_PROXYTYPE) // if (shape->getShapeType() == TRIANGLE_MESH_SHAPE_PROXYTYPE) { - btConcaveShape* concaveMesh = (btTriangleMeshShape*) shape; + btConcaveShape* concaveMesh = (btConcaveShape*) shape; //btVector3 aabbMax(btScalar(1e30),btScalar(1e30),btScalar(1e30)); //btVector3 aabbMax(100,100,100);//btScalar(1e30),btScalar(1e30),btScalar(1e30));