Page 1 of 1

GLDebugDrawer vs GL_ShapeDrawer

Posted: Thu Aug 28, 2014 6:54 pm
by ipburbank
Hello,
I'm having some trouble understanding why both of these exist, and what the difference is:
GLDebugDrawer and GL_ShapeDrawer

Sorry for such a simple question,
Istvan.

Re: GLDebugDrawer vs GL_ShapeDrawer

Posted: Fri Aug 29, 2014 3:56 pm
by Erwin Coumans
GLDebugDrawer inherits from btIDebugDraw and is mainly for debugging physics in wireframe. Typically you would use your application's 'wireframe' drawLine routines to implement this. It can help visualize coordinate frames, constraint limits and such.

The GL_ShapeDrawer can convert arbitrary Bullet collision shapes into OpenGL and draw them. Usually your application has its own fancy rendering, so you won't need to worry about this class. It is just the Bullet demo framework simple rendering.