Method TryGetLinearVelocity
TryGetLinearVelocity(out Vector3)
Retrieves the joint's linear velocity vector, if available.
Declaration
public bool TryGetLinearVelocity(out Vector3 linearVelocity)
Parameters
Type | Name | Description |
---|---|---|
Vector3 | linearVelocity | Assigned the tracked linear velocity of this joint, if successful. Set to zero, if unsuccessful. |
Returns
Type | Description |
---|---|
bool | Returns true if successful and the velocity was filled out with valid tracking data, returns false otherwise. |
Remarks
To transform to world space so that the vector has the correct direction relative to the user, rotate this by the rotation of the XROrigin.