GazeStabilizer Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
GazeStabilizer iterates over samples of Raycast data and helps stabilize the user's gaze for precision targeting.
public ref class GazeStabilizer : Microsoft::MixedReality::Toolkit::Physics::BaseRayStabilizer
[System.Serializable]
public class GazeStabilizer : Microsoft.MixedReality.Toolkit.Physics.BaseRayStabilizer
[<System.Serializable>]
type GazeStabilizer = class
inherit BaseRayStabilizer
Public Class GazeStabilizer
Inherits BaseRayStabilizer
- Inheritance
- Attributes
Constructors
GazeStabilizer() |
Properties
StablePosition |
The stabilized position. |
StableRay |
The stabilized position. |
StableRotation |
The stabilized rotation. |
StoredStabilitySamples |
Number of samples that you want to iterate on. |
Methods
UpdateStability(Vector3, Quaternion) |
Call this each frame to smooth out changes to a position and rotation, if supported. (Inherited from BaseRayStabilizer) |
UpdateStability(Vector3, Vector3) |
Updates the StablePosition and StableRotation based on GazeSample values. Call this method with RaycastHit parameters to get stable values. |