mrtk_developmentreleases/2.0.0releases/2.1.0releases/2.2.0

    Show / Hide Table of Contents

    Class GazeStabilizer

    GazeStabilizer iterates over samples of Raycast data and helps stabilize the user's gaze for precision targeting.

    Inheritance
    Object
    BaseRayStabilizer
    GazeStabilizer
    Implements
    IBaseRayStabilizer
    Inherited Members
    BaseRayStabilizer.UpdateStability(Vector3, Quaternion)
    Object.ToString()
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Namespace: Microsoft.MixedReality.Toolkit.Physics
    Assembly: cs.temp.dll.dll
    Syntax
    public class GazeStabilizer : BaseRayStabilizer, IBaseRayStabilizer

    Constructors

    GazeStabilizer()

    Declaration
    public GazeStabilizer()

    GazeStabilizer()

    Declaration
    public GazeStabilizer()

    Properties

    StablePosition

    The stabilized position.

    Declaration
    public override Vector3 StablePosition { get; }
    Property Value
    Type Description
    Vector3
    Overrides
    BaseRayStabilizer.StablePosition

    StablePosition

    The stabilized position.

    Declaration
    public override Vector3 StablePosition { get; }
    Property Value
    Type Description
    Vector3
    Overrides
    BaseRayStabilizer.StablePosition

    StableRay

    The stabilized position.

    Declaration
    public override Ray StableRay { get; }
    Property Value
    Type Description
    Ray
    Overrides
    BaseRayStabilizer.StableRay

    StableRay

    The stabilized position.

    Declaration
    public override Ray StableRay { get; }
    Property Value
    Type Description
    Ray
    Overrides
    BaseRayStabilizer.StableRay

    StableRotation

    The stabilized rotation.

    Declaration
    public override Quaternion StableRotation { get; }
    Property Value
    Type Description
    Quaternion
    Overrides
    BaseRayStabilizer.StableRotation

    StableRotation

    The stabilized rotation.

    Declaration
    public override Quaternion StableRotation { get; }
    Property Value
    Type Description
    Quaternion
    Overrides
    BaseRayStabilizer.StableRotation

    StoredStabilitySamples

    Number of samples that you want to iterate on.

    Declaration
    public int StoredStabilitySamples { get; }
    Property Value
    Type Description
    Int32

    StoredStabilitySamples

    Number of samples that you want to iterate on.

    Declaration
    public int StoredStabilitySamples { get; }
    Property Value
    Type Description
    Int32

    Methods

    UpdateStability(Vector3, Vector3)

    Updates the StablePosition and StableRotation based on GazeSample values. Call this method with RaycastHit parameters to get stable values.

    Declaration
    public override void UpdateStability(Vector3 gazePosition, Vector3 gazeDirection)
    Parameters
    Type Name Description
    Vector3 gazePosition

    Position value from a RaycastHit point.

    Vector3 gazeDirection

    Direction value from a RaycastHit rotation.

    Overrides
    BaseRayStabilizer.UpdateStability(Vector3, Vector3)

    UpdateStability(Vector3, Vector3)

    Updates the StablePosition and StableRotation based on GazeSample values. Call this method with RaycastHit parameters to get stable values.

    Declaration
    public override void UpdateStability(Vector3 gazePosition, Vector3 gazeDirection)
    Parameters
    Type Name Description
    Vector3 gazePosition

    Position value from a RaycastHit point.

    Vector3 gazeDirection

    Direction value from a RaycastHit rotation.

    Overrides
    BaseRayStabilizer.UpdateStability(Vector3, Vector3)

    Implements

    IBaseRayStabilizer
    In This Article
    • Constructors
      • GazeStabilizer()
      • GazeStabilizer()
    • Properties
      • StablePosition
      • StablePosition
      • StableRay
      • StableRay
      • StableRotation
      • StableRotation
      • StoredStabilitySamples
      • StoredStabilitySamples
    • Methods
      • UpdateStability(Vector3, Vector3)
      • UpdateStability(Vector3, Vector3)
    • Implements
    Back to top Generated by DocFX