02-07-2021, 01:58 PM
(This post was last modified: 02-07-2021, 02:00 PM by josemendez.)
Yes, this looks like it raytraces to find a new anchor point. This is how the classic ninja rope in the Worms series was done, how Umihara Kawase does it, also how ZenBound does it... and is a bit of a step up from a simple spring. Still no physics involved (no friction forces, no cable slack, no vibration modes, etc). Has the advantage that it's extremely cheap compared to actual simulation, which is what Obi does.
The basic algorithm is covered here:
https://www.reddit.com/r/Unity2D/comment..._mechanic/
The basic algorithm is covered here:
https://www.reddit.com/r/Unity2D/comment..._mechanic/