#### Archived

This topic is now archived and is closed to further replies.

# what is gimbal lock?

This topic is 5714 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

## Recommended Posts

Could someone give me some example, or point me to some article or something? I know that gimbal lock is one of the main reasons that someone should use quaternions and I have read many quaternions tuts, but I cannot understand why the extra effort. I want some examples...... wherever we ride it''''s metal we bring

##### Share on other sites
I found this page which seems to explain it. Thing is though, I tend to use Euler method and I''ve never experienced it. I think it has something to do with the order each axis-rotation is done.

I''m going to get to a quaternion library eventually though, as really you only need to make the effort once to have code that can be reused again and again.

http://www.edharriss.com/tutorials/tutorial_xsi_gimbal/xsi_gimbal.html

##### Share on other sites
You might also want to look at the math & physics forum FAQ, it will tell you all you need to know about euler angles and gimbal lock...

Gimbal lock will only occur when using all three axes of rotation. When using yaw, pitch, and roll...

##### Share on other sites
http://www.j3d.org/matrix_faq/matrfaq_latest.html#Q34

As long as you restrict the movement of the "camera" on a specific axis, you won''t experience gimbal lock. Restricting rotation on an axis works perfect for FPS''s with euler angles, as these do not permit complete rotation around when looking "up" for instance.

I believe this is how it works - in my mind anyway As my mind is a lonley place, please feel free to correct me

##### Share on other sites
quote:
original post by: mr_dejao
http://www.j3d.org/matrix_faq/matrfaq_latest.html#Q34

As long as you restrict the movement of the "camera" on a specific axis, you won''t experience gimbal lock. Restricting rotation on an axis works perfect for FPS''s with euler angles, as these do not permit complete rotation around when looking "up" for instance.

I believe this is how it works - in my mind anyway As my mind is a lonley place, please feel free to correct me

that''s as correct as it gets , in case you had any doubts...

##### Share on other sites
thank you guys, that was very helpful. Generally I had no difficulty with quaternions. As I have said, Ive read some tuts, and I have implemented my own quaternion class so I can make any transform I want. The gimbal lock thing was my only question and now I am sutisfied. Thanks again!

wherever we ride it''''s metal we bring

1. 1
2. 2
3. 3
4. 4
Rutin
13
5. 5

• 26
• 10
• 9
• 9
• 11
• ### Forum Statistics

• Total Topics
633694
• Total Posts
3013373
×