Class SimulatedHandUtils
Inheritance
SimulatedHandUtils
Assembly: cs.temp.dll.dll
public class SimulatedHandUtils
Methods
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 |
|
Gets vector corresponding to +z.
Declaration
public static Vector3 GetPalmForwardVector(Vector3[] jointPositions)
Parameters
Type |
Name |
Description |
Vector3[] |
jointPositions |
|
Returns
Declaration
public static Vector3 GetPalmRightVector(Handedness handedness, Vector3[] jointPositions)
Parameters
Type |
Name |
Description |
Handedness |
handedness |
|
Vector3[] |
jointPositions |
|
Returns
Gets the vector corresponding to +y.
Declaration
public static Vector3 GetPalmUpVector(Handedness handedness, Vector3[] jointPositions)
Parameters
Type |
Name |
Description |
Handedness |
handedness |
|
Vector3[] |
jointPositions |
|
Returns