Model inside another model - which collision shape to use?

Please don't post Bullet support questions here, use the above forums instead.
Tsch3ch
Posts: 3
Joined: Wed Aug 25, 2010 12:03 pm

Model inside another model - which collision shape to use?

Post by Tsch3ch »

Hello to everyone,

I am trying to build something like a "flower in a vase" or "thing in a box" or similar scenes. What types of collision shapes do you normally use, to create such scenes? Of course box shapes won't do the job and i already tried the BvHTriangleMeshShape, which was no satisfying at all, because it totally ruined my fps ;). I already found out, that the TriangleMeshShape is only suitable for static meshes. However, only my ground is static, the vase and the flower are dynamic.
Do i have to use something like a GImpactShape? Or how would you achieve this task?
I am very sorry if this is an ultra noob question, but I am an ultra noob to Bullet (by the way: I am using the JAVA port).
And also I would like to excuse myself, if this topic has already been discussed in detail. My search resulted in one topic, which was not satisfying for me...

Thank you in advance!
Johan Gidlund
Posts: 26
Joined: Mon Jun 01, 2009 2:21 pm
Location: Sweden

Re: Model inside another model - which collision shape to us

Post by Johan Gidlund »

If you can get your hands on a decent convex decomposition tool that will probably be your best choice.
The list of convex shapes it creates will of course be an approximation of the actual shape but it should be sufficient for most cases and is fast.