Hi everyone,

I'm having trouble remembering the formula to adjust the position of an object based on the rotation of another.

My current method is this; I have nodes set around the square itself to identify the 4 points I want to object to move to. I'm moving the object using the MoveTo plugin. Once the object reaches a node it's destination is set to the next node. This works well except for when the square rotates. The movement isn't smooth as it's simply following a straight-line path to the next node and not adjusting for the square's rotation.

The problem is I can't think of the formula I need to use to adjust the object's position based on the rotation of the square. Any help?

Here's the example (You'll need to click the black circle as the object in reference rotates around it. Once it hits the square you'll see what I mean):

https://dl.dropboxusercontent.com/u/47512624/games/Public/Love%20Triangle/Love%20Triangle%20-%20Proto/index.html

Thanks!