Gimpact collision response

nerdjock
Posts: 4
Joined: Thu Oct 15, 2009 10:31 am

Gimpact collision response

Post by nerdjock »

Hi guys,

I'm using Gimpact for colliding trimeshes. For my debug scene, I am using two unit cubes, one moving cube falling on top of one stationary one. The response seems to be working to some extent, but sometimes it is slightly wrong and sometimes it it quite wrong. "wrong" usually means it is too strong. For example, as I am using unit cubes, if I register the shapes as btBoxShapes of the same dimensions instead, the collision seems a lot more robust and response a lot better.

Also the response seems to differ somewhat depending on the margin I have set for the GIpactMeshShapes. For example, if I set this to 0.05 or higher, everything looks perfect (except for a gap between the colliding objects in my renderer). But if i set it lower, the response seems a bit off. i.e. the response for margin = 0.03 is different from margin = 0.01 and both are not correct.

Anyone have any suggestions. I am wondering if this is due to an error on my part (probably) or if this is a limitation of Gimpact?

Thanks very much