Jump to content

Quaternions and gimbal lock?


Maya01

Recommended Posts

Hey Houdini people, 

I am currently trying to wrap my head around rotations in Houdini and struggling with gimbal lock. I have an object flying around in space and I want to try and take away all but maybe 50% of the rotation and snap it to the origin. This is fine, but if my object rotates further then 90 degrees, it flips. I know this is due to gimbal lock and I have been trying to understand things better and find a solution. I read that using quaternions can fix gimbal lock but I am not sure how to approach this. I am using them in my file but I seem to be not getting something right, as my object still flips. I would be really grateful if someone could help me with this and explain this to me as I really want to understand what's going on. 

I attached an example file :)

Thank you!

gimbal_lock.hipnc

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...