I'm making a spaceship piloting game, and I'm trying to make the movement follow the laws of physics. The ship is able to control it's angular acceleration in pitch, yaw, and roll. The way I've implemented it, the ship rotates around it's local x, y, and z axis, however, I'm having a hard time wrapping my head around rotations in 3D to verify if this kind of movement is actually accurate.
For example, take the following scenario. From the perspective of the pilot, I'm yawing left at some angular speed x. If I look at the ship from outside in a "top down" (top relative to the pilot), I would see the ship rotating CCW with angular speed x. Then, let's say I roll clockwise 180 degrees from the perspective of the pilot. Here's where things get a bit trippy to me. My intuition, and what happens in game, both produce the following result: From the pilot's perspective, the ship is still yawing left at the same speed x. However, from the "top down" perspective, the ship would appear to be rotating CW with speed x. So, a 180 degree roll changed the ships rotation from CCW to CW. Does that make sense? Is angular momentum conserved here? So in a sense the way I've implemented it makes intuitive sense to the pilot (if I'm yawing left, and I do some rotation in another axis, my yaw shouldn't be affected so I should still be yawing left). However, to an "outside" perspective, this makes it look as if the ship is just sometimes randomly reversing rotational direction. On the other hand, if I make it intuitive for the outside perspective, in the earlier example I gave, the ship would instead be yawing right for the pilot after the roll maneuver, which would make it continue rotating CCW; making more sense to the "top down" view, but being trippier for the pilot.
I was really intrigued by this so I went to look for a physical example. I took a skateboard wheel and spun it so that it was spinning CCW, then flipped the board over, and indeed the wheel was now spinning CW to me. Still, this seems really suspicious to me, and I'm worried there may be a difference between the wheel and a spaceship, given that the first one is fixed on an axis, and the second one is just freely rotating in space.
Restating my question again, is it realistic for a 180 degree roll to seemingly reverse the rotation direction of a yaw movement?
Or more generally, is the case where the movement makes intuitive sense to the pilot the correct one? Or should it follow the intuition of the outside perspective?
(I'm not a physics person, so please don't be too hard on me if I've used some terminology wrong, hopefully my explanation makes my question clear even if the terminology is wrong)