Sign in to follow this  

quarernion rotation goed wiered

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

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
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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this