mixed-reality-extension-sdk
mixed-reality-extension-sdk copied to clipboard
Quaternion.FromEulerAngles(-90, 0, 0) does not create the correct rotation
When applying the rotation Quaternion.FromEulerAngles(-90, 0, 0), the resulting rotation is not correct.
The arguments to this method are in radians, not degrees. Multiply your literals by MRE.DegreesToRadians
.
I think that since multiple people have been tripped up by this problem, we may want to rename the function to something more obvious - maybe offer both FromEulerAnglesInRadians and FromEulerAnglesInDegrees or something like that. Radians are mathematically more correct, but I think more people intuitively understand degrees.