C# Class HoloToolkit.Unity.GazeStabilizer

GazeStabilizer iterates over samples of Raycast data and helps stabilize the user's gaze for precision targeting.
Inheritance: UnityEngine.MonoBehaviour
显示文件 Open project: Microsoft/HoloToolkit-Unity Class Usage Examples

Public Methods

Method Description
UpdateHeadStability ( Vector3 position, Quaternion rotation ) : void

Updates the StableHeadPosition and StableHeadRotation based on GazeSample values. Call this method with Raycasthit parameters to get stable values.

Private Methods

Method Description
Awake ( ) : void

Method Details

UpdateHeadStability() public method

Updates the StableHeadPosition and StableHeadRotation based on GazeSample values. Call this method with Raycasthit parameters to get stable values.
public UpdateHeadStability ( Vector3 position, Quaternion rotation ) : void
position UnityEngine.Vector3 Position value from a RaycastHit point.
rotation UnityEngine.Quaternion Rotation value from a RaycastHit rotation.
return void