Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help  Obi Stitcher issue with RemoveStitch
#3
(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!
Reply


Messages In This Thread
RE: Obi Stitcher issue with RemoveStitch - by danazoid - 21-07-2023, 03:13 PM