Jump to content
  • Advertisement
Sign in to follow this  
ryan20fun

quarernion rotation goed wiered

This topic is 2811 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

Hi all,
I am hopeing some you more advanced programmers could help me,
I am trying to rotate my 3d model/object with a quaternion,
but it gets scaled instead, I'm Using directx and here is the tiny piece of code I'm trying

D3DXMatrixRotationQuaternion(&xyz,&Rotation);
World = xyz;

Rotation is a D3DXQUATERNION
And xyz and World is a D3DXMATRIXA16

Thanks for the awnsours

Share this post


Link to post
Share on other sites
Advertisement
Stop posting programming questions in the GDNet Comments, Suggestions and Ideas forum. Moved to For Beginners.

Share this post


Link to post
Share on other sites
Make sure you're constructing your quaternions correctly, and if you're applying incremental rotations, be sure to normalize the quaternion occasionally to prevent drift.

Other than that though, we'll probably need more information.

Share this post


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

  • Advertisement
×

Important Information

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

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!