編集

次の方法で共有


GazeStabilizer Class

Definition

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
GazeStabilizer
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.

Applies to