Orientation relations between 2 objects on stage
I have 2 simple objects on stage: 1 is a static circle with a sharp tip (to show direction of the object) and 1 moving circle (moves according to users mouse or just a constant random move).
I want the static circle orientation to change according to moving circle position (so the sharp tip will always point at the moving circle).
What I did is divide the stage to 8 sections, each is linked to a specific orientation of the static circle.
It works, however it is very rough and I need it a lot more smooth.
I am sure there is a better way to do this, I just can't find it...
Any suggestions will be welcomed.