Hi!
I’m trying to rotate my dibily, so it’s facing the point I specify. Currently, when it’s facing north it’s at 90 degrees.
I ran a test using this code, with very inaccurate results.
dibily.setRotation((float)Math.toDegrees(Math.atan2(input.getMouseX(), input.getMouseY())));
This is a fairly simple problem on these forums - I have lost my reference for trig and the likes in a hardware error, and I can’t recall the exact procedure.
Thanks guys!
Skål! 8)