How to avoid gimbal lock (c++)?

Ok, I realized that my hybrid solution works when I remove the camera lag!!! Thanks!! Can you put the hybrid solution instead in your answer? Then I’ll accept it :slight_smile: