Let say I have a Spaceship in space.
I also have a asteroid in the same space.
I want a to be able to rotate a camera around the ship.
I want to be able to rotate the ship, here is the big problem. When I rotate around the first axle (Let say X) the whole system rotates so when I later want to rotate around some other axle it have moved and the ship don’t rotate as I want.
I rotate 90 degrees around X this moves Y to where Z was and Z to where Y was.
If I now want to rotate around Z the ship will rotate around Y.
And that is NOT what I want! ! !
What I am trying to do is a Ship that:
Turn its Nose UP or Down (its own X) when key pressed, however it is turned in any way.
Rotates around its own Z when LEFT/RIGHT key is pressed