Method SetLinearVelocity
SetLinearVelocity(ref XRHandJoint, Vector3)
Sets the velocity that can be retrieved from TryGetLinearVelocity(out Vector3) and sets the flag for that data to be valid.
Declaration
public static void SetLinearVelocity(this ref XRHandJoint joint, Vector3 linearVelocity)
Parameters
| Type | Name | Description |
|---|---|---|
| XRHandJoint | joint | The invoking joint for this extension method. To call this method,
call |
| Vector3 | linearVelocity | The linear velocity to set for the |
Remarks
After manipulating data for a particular joint, be sure to assign it back to the array you got it from, as you can only manipulate copies of objects from a NativeArray.