TryGetAngularVelocity(out Vector3)
Attempt to retrieve a Vector3 representing the current angular velocity of the tracked node.
阅读时间1 分钟最后更新于 11 天前
Definition
- Type: Method
- Namespace: UnityEngine.XR
- Assembly: UnityEngine.XRModule
TryGetAngularVelocity(Vector3)
public bool TryGetAngularVelocity(out Vector3 angularVelocity)
Parameters
A Vector3 that the method sets to the current angular velocity of the tracked node, or to Vector3.zero if the angular velocity isn't available.
Returns
Type | Description |
|---|---|
| bool | True if the angular velocity was set in the output parameter. False if the angular velocity is not available due to limitations of the underlying platform or if the node is not presently tracked. |