09-04-2019, 08:19 AM
(This post was last modified: 09-04-2019, 08:19 AM by josemendez.)
(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().