I am working on a form of path-finding for my game. On a move command, it will calculate a path for the player using "nodes".
What i'm trying to work out is this: my player moves to node 1, and then cuts at a sharp angle to node 2 (following the red path here: http://i.imgur.com/FOgFuOv.png), which looks a bit odd. I am trying to gradually curve the player around objects (using the nodes as a guide) so that the player follows something more like the green path shown in the image, instead.
Can anyone think of a formula/approach to get the player to curve it's position gradually as it approaches a node?
(Using: player.x, player.y, node1.x, node1.y, node2.x, node2.y)
I think the Sine behavior might be of use, but this one's got me stumped.