docs.unity.cn
Search Results for

    Show / Hide Table of Contents

    Class XRHandProcessingUtility

    Utility methods for processing joints from a XRHandSubsystem.

    Inheritance
    object
    XRHandProcessingUtility
    Inherited Members
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    Namespace: UnityEngine.XR.Hands.Processing
    Assembly: solution.dll
    Syntax
    public static class XRHandProcessingUtility

    Methods

    Name Description
    GetRawJointArray(XRHand)

    Gets the NativeArray of XRHandJoints contained in the invoking hand.

    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.

    SetCorrespondingHand(XRHandSubsystem, XRHand)

    Sets the subsystem's hand corresponding to hand passed in, which must have been initially retrieved from the XRHandSubsystem's leftHand or rightHand property.

    SetLinearVelocity(ref XRHandJoint, Vector3)

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

    SetPose(ref XRHandJoint, Pose)

    Sets the pose that can be retrieved from TryGetPose(out Pose) and sets the flag for that pose to be valid.

    SetRootPose(ref XRHand, Pose)

    Sets the rootPose of the invoking XRHand.

    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)