This is a demo which I did at work for a game involving a rope catching on platforms. The line intersection math comes from this tutorial on vectors which I've been developing into classes. I used a bit of a hacky method of getting the rope to unstick by defining a PI number of radians where the rope would detatch. The code is short (and a little incomplete in places) but it's a tricky morning of headscratching I really wanted to document. Download source.