Skip to main content
gamedev.net
🔒 Locked

Gimballock

Started by level10boy 4 replies 250+ views
Original Post
level10boy
level10boy
Anybody know a way around gimballock, which is the effect you get when producing a matrix that rotates around three axis in one go. For example, after rotating a cube around all three axis, up and down just aint what it should be. Thanks
level10boy
level10boy
Just trying to rotate a craft around all three axis at the same time. This is OK but when I go to translate the object again things behave very strange. Just want a fix.
Psybr
Psybr
maybe you should do the transformations for each axis seperately, although there might be cases where you would want to transform in all three axes simultaneously.
atreyu
atreyu
If you''re just worried about Gimbal Lock with the camera I have some code in the thread: "I need advice on D3DTS_WORLD transforms" that does the job...If you want to transform *objects* with this method then you''re in the same boat as me. I have no clue why it won''t work correctly.

Email me if you want a copy of my camera class.
BSXrider
BSXrider
Can someone explain this problem more clearly to me? I''m intrigued...

- seb

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.