docs.unity.cn
Search Results for

    Show / Hide Table of Contents

    Method GetAttachPointAngularVelocity

    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.

    In This Article
    Back to top
    Copyright © 2023 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)