Obi Official Forum

Full Version: Softbody to joints at runtime
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello. I would like to make tutorial human, but applied obi softbody to only joints of arms and legs. Can I do that in one mesh(without dividing body parts) at runtime on script?
(15-02-2019, 02:34 AM)Richard Wrote: [ -> ]Hello. I would like to make tutorial human, but applied obi softbody to only joints of arms and legs. Can I do that in one mesh(without dividing body parts) at runtime on script?

Yes, but you need to somehow identify which vertices /particle of your mesh are part of the arms or legs.

How to do this is completely up to you. You could use vertex colors as IDs, a special texture, or even threshold by distance to a certain collider. Once you know which particles should be left out of the simulation, simply set their inverse masses to 0 and call softbody.Optimize().