use new convex hull drawing code for btConvexTriangleMeshShape
This commit is contained in:
@@ -2,7 +2,10 @@
|
|||||||
|
|
||||||
#include "ConvexDecompositionDemo.h"
|
#include "ConvexDecompositionDemo.h"
|
||||||
#include "GlutStuff.h"
|
#include "GlutStuff.h"
|
||||||
|
#include "GLDebugDrawer.h"
|
||||||
|
#include "btBulletDynamicsCommon.h"
|
||||||
|
|
||||||
|
GLDebugDrawer gDebugDrawer;
|
||||||
|
|
||||||
int main(int argc,char** argv)
|
int main(int argc,char** argv)
|
||||||
{
|
{
|
||||||
@@ -13,6 +16,7 @@ int main(int argc,char** argv)
|
|||||||
|
|
||||||
convexDecompDemo->initPhysics(filename);
|
convexDecompDemo->initPhysics(filename);
|
||||||
|
|
||||||
|
convexDecompDemo->getDynamicsWorld()->setDebugDrawer(&gDebugDrawer);
|
||||||
|
|
||||||
|
|
||||||
convexDecompDemo->clientResetScene();
|
convexDecompDemo->clientResetScene();
|
||||||
|
|||||||
@@ -621,6 +621,7 @@ void GL_ShapeDrawer::drawOpenGL(btScalar* m, const btCollisionShape* shape, cons
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/*
|
||||||
if (shape->getShapeType() == CONVEX_TRIANGLEMESH_SHAPE_PROXYTYPE)
|
if (shape->getShapeType() == CONVEX_TRIANGLEMESH_SHAPE_PROXYTYPE)
|
||||||
{
|
{
|
||||||
btConvexTriangleMeshShape* convexMesh = (btConvexTriangleMeshShape*) shape;
|
btConvexTriangleMeshShape* convexMesh = (btConvexTriangleMeshShape*) shape;
|
||||||
@@ -632,6 +633,8 @@ void GL_ShapeDrawer::drawOpenGL(btScalar* m, const btCollisionShape* shape, cons
|
|||||||
convexMesh->getMeshInterface()->InternalProcessAllTriangles(&drawCallback,aabbMin,aabbMax);
|
convexMesh->getMeshInterface()->InternalProcessAllTriangles(&drawCallback,aabbMin,aabbMax);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
glDisable(GL_DEPTH_BUFFER_BIT);
|
glDisable(GL_DEPTH_BUFFER_BIT);
|
||||||
|
|||||||
Reference in New Issue
Block a user