Obi Official Forum
Make softbody really bouncy. - Printable Version

+- Obi Official Forum (https://obi.virtualmethodstudio.com/forum)
+-- Forum: Obi Users Category (https://obi.virtualmethodstudio.com/forum/forum-1.html)
+--- Forum: Obi Softbody (https://obi.virtualmethodstudio.com/forum/forum-12.html)
+--- Thread: Make softbody really bouncy. (/thread-1063.html)



Make softbody really bouncy. - hecali_aj - 09-04-2019

Is there a way to make a softbody really bouncy? I'm trying to make a ball bounce on a softbody and I want the ball to not lose velocity when it hits the rigidbody.


RE: Make softbody really bouncy. - josemendez - 09-04-2019

(09-04-2019, 01:11 PM)hecali_aj Wrote: Is there a way to make a softbody really bouncy? I'm trying to make a ball bounce on a softbody and I want the ball to not lose velocity when it hits the rigidbody.

Hi,

Collisions in Obi are always perfectly inelastic (no restitution). So there's currently no built-in way to fake bounciness, the ball will (or won't) bounce on the softbody depending on its stiffness, just like in real life.

You could however plug into the collisions callback and apply restitution yourself. See:
http://obi.virtualmethodstudio.com/tutorials/scriptingcollisions.html