Assuming I have a method for rotating my object/picture thing
rotate(int rotation); // 0 - 360… 0 = looks down, 90 = looks left, 180 = looks up, 270 = looks right
now the image is for example in the center of the screen and on mouse click or move, whatever, should the image rotate so that it look towards the cursor (mouse position)
you sure understand what i mean.
now… I just cannot comeup with a algorithm to do that, someone got an idea ? =)