Is there an easy way to make a rope/line2D bend when going around a corner?
note that I am also using a RayCast2D to make the line 2D draw. The line starts from the player and extends to the collisionpoint of the raycast
Cheers.

(what I am trying to achieve)

Mathematically, a line (and a raycast) is a purely straight thing.

The easiest way to smoothly go around a corner is a linear interpolation.
Bezier and curves are a way to better parametrize the path of an object.

    What are you trying to accomplish? It sounds like you want path finding. A* (A star) would be fine for this. You can give it the start point and the end point, and it will find the shortest distance without going through solid objects. Then you can take that point array and draw several connected lines.

      Pixophir Thanks for the reply, it doesn't have to bend smoothly. Just edited my post with a video example...