Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Copy position from one rope to another
#13
(31-01-2022, 05:14 PM)josemendez Wrote: This approach won’t work, because there’s no guarantee that particle #N in the first solver will be the same as particle #N in the second solver (they might even belong to different actors). Particles are allocated to actors as they get added to the solver, this happens using standard Unity callbacks (OnEnable, Awake, etc) and callback order in Unity for different objects is undefined.

If you want to copy particle positions, do it on a per-actor basis. That’s what the actor.solverIndices array is for.

It seems to work better, thanks Sonrisa
Reply


Messages In This Thread
RE: Copy position from one rope to another - by lufydad - 31-01-2022, 05:51 PM