How can I create an arbitrary collision shape?

Post Reply
maxxfire
Posts: 1
Joined: Tue Dec 04, 2012 9:07 am

How can I create an arbitrary collision shape?

Post by maxxfire »

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!
MaxDZ8
Posts: 149
Joined: Fri Jun 24, 2011 8:53 am

Re: How can I create an arbitrary collision shape?

Post by MaxDZ8 »

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.
PgrAm
Posts: 12
Joined: Sun Apr 15, 2012 3:34 pm

Re: How can I create an arbitrary collision shape?

Post by PgrAm »

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