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 unlockRightEye()
        {
            eye = StereoTargetEyeMask.Right;

            observables.ApplyCommandsToRightSide();

            cameraRig.SetRightEyeRotationAndPosition();
            cameraRig.StraightenLeftEye();
            cameraRig.SetLeftEyePositionOnly();
        }
コード例 #3
0
        protected void unlockRightEye()
        {
            eye = StereoTargetEyeMask.Right;

            cameraRig.SetRightEyeRotationAndPosition();

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

            rightEyeIsStrabismic = true;

            // relock left eye
            cameraRig.StraightenLeftEye();
            cameraRig.SetLeftEyePositionOnly();
        }