Sign in to follow this  
Followers 0
Alundra

[QUATERNION] right handed to left handed

3 posts in this topic

Hi all,

I convert my quaternion to a matrix using left handed coord system.

I have an input who is right handed, so the rotation needs to be inverted on each axis.

When I input my quaternion, if I change w to -w it's ok, inverted axis works too.

What is the more correct, invert the w or invert (x,y,z) ?

 

Thanks

Edited by Alundra
0

Share this post


Link to post
Share on other sites

It's the same. q and -q both represent the same rotation (although if you interpolate you need to make sure the [4d] dot-product of the quaternions you interpolate between dot(q0, q1) is > 0 to go the short way round (i.e. less than 180 degrees)).

0

Share this post


Link to post
Share on other sites

-q = ( -x, -y; -z; -w )

all components of the quaternion are inverted.
I was talking about just changing the real or the imaginary part of the quaternion.
0

Share this post


Link to post
Share on other sites

No, you were asking whether

 

q = (x, y, z, -w)

 

was more correct than

 

-q = (-x, -y, -z, w)

 

the answer is neither: they both represent the same rotation/orientation.

Edited by Paradigm Shifter
0

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