I'm trying to figure out if this approach avoids the so-called Gimbal lock. From what I can google, the phenomenon seems to appear when setting the yaw (y-rot) = 90° (π/2), but this doesn't seem to lock any of the other axis - does this mean I don't need to implement quaternion rotation to avoid the Gimbal lock?
ACCEPTED ANSWER: Nope, in this implementation the lock appears when the variable "PITCH"=90 =================================================== I'm rotating (in 2D) and projecting (in 3D) one axis out of the time; roll=xy-rot, pitch=yz-rot and yaw=zx-rot