(21-07-2023, 11:22 AM)josemendez Wrote: You need to call solver.SetConstraintsDirty(Oni.ConstraintType.Stitch); afterwards, otherwise changes to stitch constraints at runtime won't have any effect.
Thanks! I got it working!
But with actor.SetConstraintsDirty(Oni.ConstraintType.Stitch), because I couldn't find the method in solver.
Another thing I found was that I have to use my VR headset to see it unstitch. For some reason if I go to (Unity) Scene view during runtime (and not paused), the unstitching happens but there is no particle movement.
Quote:This is a basic programming pitfall: removing elements from a collection while iterating trough it will skip elements unless you're careful.
Ah! Thanks for the explanation and the workaround!