btGImpactShape penetrates each other?

thloh85
Posts: 26
Joined: Mon Feb 09, 2009 10:07 am

btGImpactShape penetrates each other?

Post by thloh85 »

Hello,

I'm currently facing a problem. I've created a few boxes (of the exact same size, width, height, depth) with btGImpactMeshShape triangles (convex triangles). Problem is, when they're dropped vertically together, they penetrates each other.
The video I uploaded shows my problem.
http://www.youtube.com/watch?v=C5u8AGNU9VE

Did anyone face this before? Can someone help me regarding this?
Thanks a lot in advance.
User avatar
projectileman
Posts: 109
Joined: Thu Dec 14, 2006 4:27 pm
Location: Colombia

Re: btGImpactShape penetrates each other?

Post by projectileman »

Hi.
The bad thing about GImpact collision meshes is that they are hollow in their interior. The triangles are just an thin surface like a paper, so this surface could be penetrated easily.

It's necessary to increase the mesh thickness by setting the collision margin of the GimpactShape with the method setMargin(0.3f)

Currently Gimpact Shapes don't support Continuous Collision Detection, so fast objects could pass through.
thloh85
Posts: 26
Joined: Mon Feb 09, 2009 10:07 am

Re: btGImpactShape penetrates each other?

Post by thloh85 »

Thanks, I think I've done something wrong in my current case.
For future reference:
Do not put btGImpactMeshShape into btCompoundShape, it causes the above case.

I've got another issue after fixing this, which I'll open another thread.

Thanks for the fast reply. :)