Problem - Mesh outside of the bounding box

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

Problem - Mesh outside of the bounding box

Post by Tsch3ch »

Hello everyone,

at first i'd like to say sorry, if my topic doesn't belong in here or if i accidently break a forum rule. I am currently writing my diploma thesis, which is mainly about converting plain text into a 3D scene. And with the help of Bullet (I am using the JAVA port), i just wanted to give my scene a little optical kick ;).
However, right now I'm facing the problem that i can't get my meshes to lie within my bounding boxes. I added two pictures, so that you can get an idea, what my issue is all about.
As you can see, it is not a dimension problem of my bounding boxes since they fit perfectly in size. But I just can't get my bounding boxes to surround my meshes correctly.
So I just wanted to ask if anyone of you has a little tip for me, what might be the problem.

Thank you in anticipation!
You do not have the required permissions to view the files attached to this post.
User avatar
jarno
Posts: 57
Joined: Tue Mar 16, 2010 1:42 am

Re: Problem - Mesh outside of the bounding box

Post by jarno »

You need to apply an offset to the collision shapes. The collision shapes are created relative to the centre of mass of the mesh, not the origin of the mesh.
Tsch3ch
Posts: 3
Joined: Wed Aug 25, 2010 12:03 pm

Re: Problem - Mesh outside of the bounding box

Post by Tsch3ch »

Aaaah, thank you very much, that solved my problem! And sorry for the late answer, I've been quite busy the last few days...

Again, thank you very much!