I am trying to create a simple ball shooter game, the cylinder which is acting as a gun can be rotated about the local x and z axis to fire up/down and left/right. The problem comes when you combine several rotations, you end up looking at the world at a very odd angle. I tried locking the y rotation but this didn’t help.
Is there a way of panning up/down and left/right without ending up at an odd angle to the horizon?
ballshooter.blend (571 KB)
(up, down, left and right arrows to pan, spacebar to shoot)