Show / Hide Table of Contents

    Class SimulatedHandUtils

    Inheritance
    Object
    SimulatedHandUtils
    Inherited Members
    Object.ToString()
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Namespace: Microsoft.MixedReality.Toolkit.Input
    Assembly: cs.temp.dll.dll
    Syntax
    public class SimulatedHandUtils

    Methods

    CalculateJointRotations(Handedness, Vector3[], Quaternion[])

    Compute the rotation of each joint, with the forward vector of the rotation pointing along the joint bone, and the up vector pointing up.

    The rotation of the base joints (thumb base, pinky base, etc) as well as the wrist joint is set to point in the direction of palm forward.

    Assumption: the position of each joint has been copied from handData joint positions

    Declaration
    public static void CalculateJointRotations(Handedness handedness, Vector3[] jointPositions, Quaternion[] jointOrientationsOut)
    Parameters
    Type Name Description
    Handedness handedness
    Vector3[] jointPositions
    Quaternion[] jointOrientationsOut

    GetPalmForwardVector(Vector3[])

    Gets vector corresponding to +z.

    Declaration
    public static Vector3 GetPalmForwardVector(Vector3[] jointPositions)
    Parameters
    Type Name Description
    Vector3[] jointPositions
    Returns
    Type Description
    Vector3

    GetPalmRightVector(Handedness, Vector3[])

    Declaration
    public static Vector3 GetPalmRightVector(Handedness handedness, Vector3[] jointPositions)
    Parameters
    Type Name Description
    Handedness handedness
    Vector3[] jointPositions
    Returns
    Type Description
    Vector3

    GetPalmUpVector(Handedness, Vector3[])

    Gets the vector corresponding to +y.

    Declaration
    public static Vector3 GetPalmUpVector(Handedness handedness, Vector3[] jointPositions)
    Parameters
    Type Name Description
    Handedness handedness
    Vector3[] jointPositions
    Returns
    Type Description
    Vector3
    Back to top Generated by DocFX