GLDebugDrawer vs GL_ShapeDrawer

Post Reply
ipburbank
Posts: 2
Joined: Tue Aug 26, 2014 8:25 pm

GLDebugDrawer vs GL_ShapeDrawer

Post 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.
User avatar
Erwin Coumans
Site Admin
Posts: 4221
Joined: Sun Jun 26, 2005 6:43 pm
Location: California, USA
Contact:

Re: GLDebugDrawer vs GL_ShapeDrawer

Post 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.
Post Reply