I have a quaternion from an IMU that id like to represent in unity. The issue is that the sensor uses a right handed coordinate system while unity uses a left handed coordinate system. In order to have the rotations of the IMU reflect in unity correctly, I would need to remap the axis. How can I do this by altering the quaternion components?
Specifically, I would need to map
sensor unity
forward x z
up z y
right -y x
I have seen multiple questions regarding this question especially this one.
Convert quaternion to a different coordinate system
However, it only explains a specific case where its a right hand to right hand remapping.
If possible, include an explanation without mathematics equations of how you would map any coordinate system to any other coordinate system.
cos
, the w component will never change regardless of what you are remapping to? – DarkDestry Apr 28 '18 at 15:15