Page 1 of 1

Object goes slightly below ground after hit

Posted: Wed Jan 20, 2016 9:10 am
by lcrivell
Hi,
I have multiple objects (all rigid bodies). When one is lying on the ground and gets hit by another falling object, then the lying object is going timely under the ground and then pushes the above object up again as can be seen on this orthographic view:
UnderGround.jpg
Is this due to some elasticity in objects or to calculation precision that needs to be higher, or any other possibility ?
Thanks !

Re: Object goes slightly below ground after hit

Posted: Thu Jan 21, 2016 3:59 pm
by benelot
Hi,

The problem is due to the penetration depth in order to properly detect a collision. From what I know it is possible to tune the penetration depth to a lower value which might fix your issue.

It could also be an issue that your timestep is too small, but for general simulation, a step of 1/60.0f will be ok.

Does that answer your question?

Re: Object goes slightly below ground after hit

Posted: Thu Jan 21, 2016 5:09 pm
by lcrivell
Hi,
Thanks for your answer. My Maya simulation runs at 30 fps, so the parameters I send to stepSimulation are 1/30 and 10. Are these good enough or should I go to 60fps anyway ?
Thanks !