![]() |
Obi Softbody IndexOutOfRangeException in a job - 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: Obi Softbody IndexOutOfRangeException in a job (/thread-4492.html) |
Obi Softbody IndexOutOfRangeException in a job - Aroosh - 09-05-2025 Hello I get an Index out of range exception when I use softbody with particles with inverse mass set to 0. I'll attach the screenshot with this thread. P.S: Need to make sure safety checks in jobs is on to see this error. RE: Obi Softbody IndexOutOfRangeException in a job - josemendez - 09-05-2025 (11 hours ago)Aroosh Wrote: Hello Changing the mass of softbody particles requires recalculating shape matching centers of mass, rest shapes, among other cached data. Make sure to call softbody.UpdateParticleProperties() after setting particle masses, as per the documentation: Quote:Recalculates the shape used as reference for transform position/orientation when there are no fixed particles, as well as the rest shape matching state. Should be called manually when changing the amount of fixed particles and/ or active particles. let me know if I can be of further help, kind regards |