27-01-2022, 01:44 PM
(This post was last modified: 27-01-2022, 01:44 PM by josemendez.)
(27-01-2022, 01:40 PM)NorkQ Wrote: Hi, thank you so much josemendez this is working !
But there are some problems here I guess. When the rope streching,
swelling is streching also. Here is the video of problem:
You can make the sine wave relative to rope length, instead of relative to particle index. This way when particles separate due to stretching, the bulge won't stretch with them.
Simply accumulate the distance from one particle to the next, and use that instead of "i" in "Mathf.Sin(i + time)".
cheers,