Method GetAttachPointVelocity
GetAttachPointVelocity(IAttachPointVelocityProvider, Transform)
Retrieves the current linear velocity of the attachment point, transformed by the XR Origin.
Declaration
public static Vector3 GetAttachPointVelocity(this IAttachPointVelocityProvider provider, Transform xrOriginTransform)
Parameters
| Type | Name | Description |
|---|---|---|
| IAttachPointVelocityProvider | provider | The IAttachPointVelocityProvider to retrieve the velocity from. |
| Transform | xrOriginTransform | The XR Origin Transform for relative calculation. |
Returns
| Type | Description |
|---|---|
| Vector3 | Returns the transformed current linear velocity of the attachment point as a Vector3. |