Starting/ModelExplorer/Assets/HoloToolkit/Input/Scripts/GazeManager.cs
/// <summary>
/// Calculates the Raycast hit position and normal.
/// </summary>
Calculates the Raycast hit position and normal.
Calculates the Raycast hit position and normal .
private void UpdateRaycast()
    {
        RaycastHit hitInfo;
        Hit = Physics.Raycast(gazeOrigin,
                       gazeDirection,
                       out hitInfo,
                       MaxGazeDistance,
                       RaycastLayerMask);
        HitInfo = hitInfo;
        if (Hit)
        {
            Position = hitInfo.point;
            Normal = hitInfo.normal;
        }
        else
        {
            Position = gazeOrigin + (gazeDirection * MaxGazeDistance);
            Normal = gazeDirection;
        }
    }
private void UpdateRaycast ( ) { RaycastHit hitInfo ; Hit = Physics . Raycast ( gazeOrigin , gazeDirection , out hitInfo , MaxGazeDistance , RaycastLayerMask ) ; HitInfo = hitInfo ; if ( Hit ) { Position = hitInfo . point ; Normal = hitInfo . normal ; } else { Position = gazeOrigin + ( gazeDirection * MaxGazeDistance ) ; Normal = gazeDirection ; } }
Calculates the Raycast hit position and normal.
Calculates the Raycast hit position and normal .
// If raycast hit a hologram... // If raycast did not hit a hologram... // Save defaults ...