Object goes slightly below ground after hit

Post Reply
lcrivell
Posts: 11
Joined: Sun Jan 10, 2016 5:08 pm

Object goes slightly below ground after hit

Post 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
UnderGround.jpg (39.86 KiB) Viewed 3694 times
Is this due to some elasticity in objects or to calculation precision that needs to be higher, or any other possibility ?
Thanks !
benelot
Posts: 350
Joined: Sat Jul 04, 2015 10:33 am
Location: Bern, Switzerland
Contact:

Re: Object goes slightly below ground after hit

Post 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?
lcrivell
Posts: 11
Joined: Sun Jan 10, 2016 5:08 pm

Re: Object goes slightly below ground after hit

Post 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 !
Post Reply