編輯

共用方式為


GazeStabilizer.UpdateStability(Vector3, Vector3) Method

Definition

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

public:
 override void UpdateStability(UnityEngine::Vector3 gazePosition, UnityEngine::Vector3 gazeDirection);
public override void UpdateStability (UnityEngine.Vector3 gazePosition, UnityEngine.Vector3 gazeDirection);
override this.UpdateStability : UnityEngine.Vector3 * UnityEngine.Vector3 -> unit
Public Overrides Sub UpdateStability (gazePosition As Vector3, gazeDirection As Vector3)

Parameters

gazePosition
UnityEngine.Vector3

Position value from a RaycastHit point.

gazeDirection
UnityEngine.Vector3

Direction value from a RaycastHit rotation.

Applies to