Jump to content
  • Advertisement
Sign in to follow this  
kyok

Quaternion roll jerkiness

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

If you intended to correct an error in the post then please contact us.

Recommended Posts

So I am in the process of making my fps camera work as a 3rd person one as well. I am using euler angles and quaternions to handle my yaw, pitch and roll. I make quaternions out of the world x and y axes and use the camera's view vector as the z axis and I rotate about those using euler angles. Next I handle position changes by moving along the view vector, up or right vector. I'm running into a slight jerk when I simply roll my camera then move my camera (even just along the view vector), when I go to roll the camera again. Looks like the angles are off or the rotation vector is now wrong. Do I need to keep multiple rotation axes and angles for each roll I apply to the camera (I'd like to avoid this)? Am I supposed to recalculate the euler angle and how?

Share this post


Link to post
Share on other sites
Advertisement
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!