I am trying to make an asteroids movement using the mouse and I cannot find the way to test the position of the mouse pointer relative to the angle of the spaceship AND the side of its horizontal (left or right) and vertical (front or back) axis.
I made this to make it more clear. Use the blue circle to move the "spaceship" and the red square to make it turn.
Can anybody help with this?