Rope for a crab

Our game is about exploration in the underwater depths (yeah, kinda unoriginal but beautiful and full of vibe!). It's too easy to get lost under water, so we've implemented a rollback mechanics. Player is tied to the start location with a rope, that you can unwind any time, to return.
Rope is implemented as a Unity's line renderer. It has of a list of points. We add new point to the list when player moves away. But we also need to shrink the rope, for it to behave somewhat realistically. So we iterate through the triples of points and calculate vectors to straighten them into the line (this vector has a limited magnitude, so that it doesn't shrink in an instant).
We also do raycasts to check if the rope would collide with scenery. And just skip points if their shrinking causes a collision. Alse, just for optimization sake, I have added garbage collection, removing points that are to close to each other.
Try it out :arrow_down: to see if it helps you navigate a stunning underwater environment and uncover it's secrets!
https://ldjam.com/events/ludum-dare/57/crab-with-a-hook
