Hi,
I am using a gamepad to control the movement and direction of my sprite.
My problem is that when I let go of the analog stick, my character turns to a random angle.
This is how I am determining the angle of my sprite:
r = Math.PI / 2 + Math.atan2(gamepad.getYLeft(), gamepad.getXLeft());
Thanks,
novasharp