private void ResetEyeMisalignment()
 {
     Debug.Log("Resetting eye misalignment");
     cameraRig.StraightenLeftEye();
     cameraRig.StraightenRightEye();
     cameraRig.Rotate(eyeMask, misalignmentRotation);
     //misalignedEye.transform.rotation = Quaternion.identity;
     //misalignedEye.transform.Rotate(misalignmentRotation);
 }
        private void unlockLeftEye()
        {
            eye = StereoTargetEyeMask.Left;

            observables.ApplyCommandsToLeftSide();

            cameraRig.SetLeftEyeRotationAndPosition();
            cameraRig.StraightenRightEye();
            cameraRig.SetRightEyePositionOnly();
        }
Пример #3
0
        protected void unlockLeftEye()
        {
            eye = StereoTargetEyeMask.Left;

            cameraRig.SetLeftEyeRotationAndPosition();

            cameraRig.config.leftEyeIsStrabismic  = true;
            cameraRig.config.rightEyeIsStrabismic = false;
            cameraRig.config.Sync();

            rightEyeIsStrabismic = false;

            // relock right eye
            cameraRig.StraightenRightEye();
            cameraRig.SetRightEyePositionOnly();
        }