Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Obi Softbody IndexOutOfRangeException in a job
#1
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.
Reply
#2
(9 hours ago)Aroosh Wrote: 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.

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
Reply