PDA

View Full Version : Gibmal Lock



DarkLore
04-19-2001, 10:50 PM
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.

Sylvain
04-20-2001, 12:03 AM
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..
http://www.flipcode.com/documents/matrfaq.html