GazeStabilizer Class

Definition

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

C++
public ref class GazeStabilizer : Microsoft::MixedReality::Toolkit::Physics::BaseRayStabilizer
Inheritance
GazeStabilizer
Attributes

Constructors

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.

Applies to

Ürün Sürümler
MRTK2 Unity 2018 2.5.0, 2.5.1, 2.5.2, 2.5.3, 2.5.4, 2.6.0, 2.7.0
MRTK2 Unity 2019 2.5.0, 2.5.1, 2.5.2, 2.5.3, 2.5.4, 2.6.0, 2.7.0, 2.8.0
MRTK2 Unity 2020 2.5.2, 2.5.3, 2.5.4, 2.6.0, 2.7.0, 2.8.0