I have a question about CalibrationInfo.SensorOrientation which is used in

Quaternion jointOrient = Quaternion.Inverse(CalibrationInfo.SensorOrientation) * (joint.ToQuaternionMirrored()) * modelJoint.baseRotOffset;
modelJoint.bone.rotation = jointOrient;

What is CalibrationInfo class and SensorOrientation variable? And when SensorOrientation will be set? because I print it every time it is called and its value is (0, 0, 0, 1).

Thank you

Hello. This variable only changes after calibration. Typically, calibration is used on mobile platforms for VR cases. After calibration, the angle at which the sensor is tilted is calculated. Then developers can apply this angle to the skeleton at their discretion.

1 Like