Class AttachPointVelocityProviderExtensions
Extension methods for IAttachPointVelocityProvider.
Inherited Members
Namespace: UnityEngine.XR.Interaction.Toolkit.Attachment
Assembly: Unity.XR.Interaction.Toolkit.dll
Syntax
[MovedFrom("UnityEngine.XR.Interaction.Toolkit.Interaction")]
public static class AttachPointVelocityProviderExtensions
  Methods
GetAttachPointAngularVelocity(IAttachPointVelocityProvider, Transform)
Retrieves the current angular velocity of the attachment point, transformed by the XR Origin.
Declaration
public static Vector3 GetAttachPointAngularVelocity(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 angular velocity of the attachment point as a Vector3.  | 
      
See Also
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.  |