Solution to the gimbal lock!!!

BlitzMax Modules Forums/MiniB3D/Solution to the gimbal lock!!!

[Disclaimer: this is from very very old memories of distant 3d experience. It may be bull***]

Nope. You are doing it with only one of the angles that is different of zero. In short, you're thinking in 2D.

Try with rotations where all the 3 angles (Pitch, Yaw and Roll) are different from 0, and see by yourself.
The problem is the final rotation depends on the order the 3 angles are applied (I can't remember what this order is in Blitz3D).
The first angle is applied on a given axis.
Then the second angle is applied on a second axis, but this axis is itself rotated already, so the result depends on the previous rotation.
Same for the final axis (rotation depends on the 2 previous rotations).

If the result of a single Pitch/Yaw/Roll already depends on the order of the axis rotations, you can imagine, that simply doing consecutive Pitch/Yaw/Roll rotations won't work great.