14-11-2022, 04:36 PM
(This post was last modified: 14-11-2022, 04:36 PM by josemendez.)
(14-11-2022, 03:50 PM)michele_lf Wrote: Hello!
I am trying to simulate drag being applied to a moving softbody.
I am applying a force to the ObiActor using ObiActor.AddForce(force, ForceMode.Impulse) and I would like to see the same drag effect I can apply to a standard rigidbody in unity.
I tried adding an obi rigidbody component and increase the drag on the unity rigidbody but it seems to be disconnected from the ObiActor. If I apply the force to the unity rigidbody would that work with the softbody?
What is the best way of achieving this?
Many thanks!
Hi,
Rigidbodies and softbodies are completely unrelated to each other, drag applied to one of them won't affect the other.
Obi has a built-in atmospheric drag simulation, that can be enabled per solver. To enable it increase the solver's "damping" parameter to a non-zero value:
http://obi.virtualmethodstudio.com/manua...olver.html
If you want to implement your own advanced damping/drag system, you can also do so by using the particles API and adding your own external forces to each particle. See:
http://obi.virtualmethodstudio.com/manua...icles.html
kind regards,