I have quaternion data that I am trying to switch from a right-handed Y-up coordinate space, to a left-handed Z-up coordinate space. From reading up on this, what I need to do is switch the chirality
.
The only info i can find is this
And i cannot wrap my head around it.
Say that I have my Quaternion as:
public static float[] quat= new float[4](0.70711,0.70711,0,0);
In c# code, how do i switch the chirality?
I have tried negating the axis, and simply swapping the Z
and Y
values. I have tried multiplying the quaternion by a another quaternion equaling 90 degrees, as suggested in that link. and still see incorrect rotations.
Thank you.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…