How to Get Oculus Sensor Rotation or HMD Rotation Relative to the Sensor

I’ve fixed my issue by calculating rotation of the Oculus relative to the simulator since I know both of their world rotation.