Пример #1
0
 protected virtual void UpdateCameraRotationXR()
 {
     //On the legacy XRMode, the camera is automatically rotated with the movement of the HMD. In The XRPlugin mode, we
     //have to manually apply the rotation of the HMD to the camera.
     if (QuickSingletonManager.GetInstance <QuickVRManager>()._XRMode == QuickVRManager.XRMode.XRPlugin)
     {
         QuickVRNode vrNodeHead = QuickSingletonManager.GetInstance <QuickVRPlayArea>().GetVRNode(HumanBodyBones.Head);
         vrNodeHead.UpdateState();
         _camera.transform.localRotation = vrNodeHead.transform.localRotation;
     }
 }