Dear All,
When I create a sphere collision shape and draw it for debugging, is it normal to see two pyramids that are base to base. Is this a way that bullet makes approximation to a sphere? If yes, is there a way to control the approximation level. Or what am I doing wrong?
Regards,
Ugras
btSphereShape Question
-
Nacho
- Posts: 31
- Joined: Tue Mar 04, 2008 1:41 pm
Re: btSphereShape Question
It's normal to see two pyramids and no, that is not the way bullet makes approximation to a sphere. It's only for render purpose.
See btIDebugDraw::drawSphere. You can derivate your own DebugDrawer class and write your sphere draw function.
Nacho
See btIDebugDraw::drawSphere. You can derivate your own DebugDrawer class and write your sphere draw function.
Nacho
-
Ugras
- Posts: 34
- Joined: Wed Dec 30, 2009 8:30 pm
Re: btSphereShape Question
Thanks Nacho for the informative reply. I will check btIDebugDraw::drawSphere for further info.
Regards,
Ugras
Regards,
Ugras