In fact, my real problem is how to set a fixed airplane rotation of 15 degrees counter clockwise ("nose up") around the rotation axis (set at the geometrical center of the airplane) when i press Move Y UP, and how to set a fixed 15 degrees clockwise rotation (nose down) around rotation axis when I press Move Y DOWN. My single line code "set rotation ((action value) : (MaxRotationValue)) is a pityful idea, I have a lot to learn. But I noticed that when I use this code with the Xbox360 analog stick the effect is not so totally bad. Surely there is a very much better way to do this.
The rest of the code is totally ok because I have taken it from an Your tutorial on youtube, and you are a very clever coder, while I am still so bad as hell at coding... But I won't give up 😄 .
I need the airplane nose fixed rotation, because my game main character is a black cat on a propeller airplane that needs to sink world's greatest warships and planes, and so in the future I am planning to code bullets that goes diagonally low if the player fires when moving downwards, diagonally high when he moving highwards, and horizontally when stationary or moving left or right.
But before thinking at how to code bullets, I need the plane to look up and down when moving up and down.
Any Idea to code in a better way than mine the airplane nose up and down? Thanks as always for Your precious help