Drawing Axis

kmon7485
Posts: 11
Joined: Mon Jan 04, 2010 5:48 am

Drawing Axis

Post by kmon7485 »

Hi everyone,

I noticed in the examples for Bullet that you can draw the axis for joint constraints, as well as the axis that is associated with a rigid body.
Does anyone know how one might go about doing a similar thing, but instead of using Glut using openRAVE for plotting?

Cheers

kmon
User avatar
Erwin Coumans
Site Admin
Posts: 4221
Joined: Sun Jun 26, 2005 6:43 pm
Location: California, USA

Re: Drawing Axis

Post by Erwin Coumans »

Just derive your own class from btIDebugDraw and implement the drawLine method.

Thanks,
Erwin
kmon7485
Posts: 11
Joined: Mon Jan 04, 2010 5:48 am

Re: Drawing Axis

Post by kmon7485 »

Oh my god I feel so stupid, I didn't even know that class existed.
I'm also fairly new with C/Bullet, so how would one go about deriving this class?

Thank you very much Erwin, you are a true champion!