docs.unity.cn
Search Results for

    Show / Hide Table of Contents

    Method SetAngularVelocity

    SetAngularVelocity(ref XRHandJoint, Vector3)

    Sets the velocity that can be retrieved from TryGetAngularVelocity(out Vector3) and sets the flag for that data to be valid.

    Declaration
    public static void SetAngularVelocity(this ref XRHandJoint joint, Vector3 angularVelocity)
    Parameters
    Type Name Description
    XRHandJoint joint

    The invoking joint for this extension method. To call this method, call .SetAngularVelocity(modifiedVelocity) on an XRHandJoint.

    Vector3 angularVelocity

    The angular velocity to set for the joint.

    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.

    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)