Hi , How can I create a collision shap like a bottle or a cup.
I mean does it has any API to do this. Or I just made it by Maya, and then import it.
Thanks!
How can I create an arbitrary collision shape?
Re: How can I create an arbitrary collision shape?
There's no API to do this but the SDK contains a few examples.
- Your first choice is to look at maya to produce a .bullet file and load it up. See Bullet/Demos/SerializeDemo.
- OBJ parsing, see Bullet/Demos/ConvexDecompositionDemo. That's a bit crude in my opinion but it works.
Re: How can I create an arbitrary collision shape?
I use this tool with a lowpoly obj file:
http://bulletphysics.org/Bullet/phpBB3/ ... php?t=7159
then I load the resulting .bcs file as my collision shape
http://bulletphysics.org/Bullet/phpBB3/ ... php?t=7159
then I load the resulting .bcs file as my collision shape