Hi!
My spaceship has a script including this line of code:
function FixedUpdate() {
...
transform.Rotate(Vector3.right,Input.GetAxis("Vertical")*Time.deltaTime*-rotSpeed);
...
}
The problem is, that whenever the ship’s x-axis rotation reaches 90 or 270 (facing upwards or downwards) it snaps to that value and I can’t rotate it anymore. The y-axis rotation works fine though. What’s wrong with it? Thanks for the help.