Class GazeStabilizer
GazeStabilizer iterates over samples of Raycast data and helps stabilize the user's gaze for precision targeting.
Implements
Inherited Members
Namespace: Microsoft.MixedReality.Toolkit.Physics
Assembly: cs.temp.dll.dll
Syntax
public class GazeStabilizer : BaseRayStabilizer, IBaseRayStabilizer
Constructors
GazeStabilizer()
Declaration
public GazeStabilizer()
Properties
StablePosition
The stabilized position.
Declaration
public override Vector3 StablePosition { get; }
Property Value
Type | Description |
---|---|
Vector3 |
Overrides
StableRay
The stabilized position.
Declaration
public override Ray StableRay { get; }
Property Value
Type | Description |
---|---|
Ray |
Overrides
StableRotation
The stabilized rotation.
Declaration
public override Quaternion StableRotation { get; }
Property Value
Type | Description |
---|---|
Quaternion |
Overrides
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. |