docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class AttachPointVelocityProviderExtensions

    Extension methods for IAttachPointVelocityProvider.

    Inheritance
    object
    AttachPointVelocityProviderExtensions
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    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
    IAttachPointVelocityProvider

    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.

    See Also
    IAttachPointVelocityProvider

    See Also

    IAttachPointVelocityProvider
    In This Article
    Back to top
    Copyright © 2025 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)