(25-02-2020, 04:35 PM)josemendez Wrote: Hi,
It's hard to tell, but in your video the highest velocity seems to stop updating right when the rope particles stop moving. Isn't this the expected result?
I'm sorry for the ambiguity of that gif, but its the very thin line which the script is attached to, not the one with the big particles. I basically thinned the line renderer and disabled the particle renderer in order to show you the velocity gizmos of the rope.
EDIT: also, this script runs on fixed update - shouldn't the velocity be set to 0 if the rope is not moving instead of not updating?
On a completely still rope, this;
Code:
Debug.Log(rope.solver.velocities[solverIndex].magnitude)
returns a value around 0,5. Why is this not 0?
I'll change the other things in the script you suggested - I'm not the greatest when it comes to physics and movement so I just learn by mistakes