Assume said object is an aircraft. I store three angles (in degrees) that describe where it's headed: yaw, pitch and roll - in that order. Let's say the plane is flying vertically, upwards. The angles would then be:
(0, 90, 0). Then, I command the plane to turn left; this results in the following angles:
(0, 0, 90).
- Given the plane's current angles and a command (turn left, right, up, or down), how can I calculate its new angles?
- Would it be easier if I were using a directional vector and an extra "up" vector (i.e., the normal of the surface that cuts the plane in half, horizontally)?