19-11-2021, 10:22 AM
(This post was last modified: 19-11-2021, 10:23 AM by josemendez.)
(19-11-2021, 10:14 AM)srid96 Wrote: am calculating rope' length in update function, if its less than 1, my game is over, something like that. Thats why i need to get rid of the torn piece, as in it doesn't depend on anything, not just resizing from cursor point. Sorry i wasnt clear.
Oh, ok. You can just remove the elements in the second piece, deactivating all particles referenced by these elements by calling rope.DeactivateParticle(index) and passing the index of the particle in the rope.