Beispiel #1
0
        virtual protected void UpdateGaze()
        {
            if (!fetchGaze)
            {
                eyeConvergeRay.error = ErrorCode.Data_NoUpdate;
                eyeRays.left.error   = ErrorCode.Data_NoUpdate;
                eyeRays.right.error  = ErrorCode.Data_NoUpdate;
            }

            eyeConvergeRay = GetWorldSpaceConvergence(FoveManager.GetHmdCombinedGazeRay());
            eyeRays.left   = CalculateWorldGazeVector(eyeOffsets.left, FoveManager.GetHmdGazeVector(Eye.Left));
            eyeRays.right  = CalculateWorldGazeVector(eyeOffsets.right, FoveManager.GetHmdGazeVector(Eye.Right));
        }