ドキュメント

Unity Engine

Download Unity

Unity Engine

TryGetVelocity(out Vector3)

Attempt to retrieve a vector representing the current velocity of the tracked node.
読み終わるまでの所要時間 1 分最終更新 18日前

Definition

  • Type: Method
  • Namespace: UnityEngine.XR
  • Assembly: UnityEngine.XRModule

TryGetVelocity(Vector3)

public bool TryGetVelocity(out Vector3 velocity)

Parameters

velocity

A Vector3 that the method sets to the current velocity of the tracked node, or to Vector3.zero if the velocity isn't available.

Returns

Type

Description

boolTrue if the velocity was set in the output parameter. False if the velocity is not available due to limitations of the underlying platform or if the node is not presently tracked.