Gibmal Lock

Hello everybody, this is my first post in the forums.

I’m developing and x-wing type game, and I’ve run into problems when rotating the objects ( roll, pitch, yaw ). I’ve tried different things and I can’t seem to find a solution.

So if anyone can post some code illustrating how to properly perform roll, pitch and yaw rotations in opengl I’ll really appreciate it.

Thanks a lot in advance.

You can solve your problem by using Quaternions… Euler angles are cool also but you can’t work with them on more than 2 axis at a time…