UxrFingerNodeDescriptor Structure
Stores a bone’s right, up and forward vectors in local coordinates of its parent. Right, up and forward vectors will always point to this directions independently of how the transforms have been set up in order to guarantee poses can be reused by other hands that use a different coordinate system.
Namespace: UltimateXR.Manipulation.HandPoses
Assembly: UltimateXR (in UltimateXR.dll) Version: 0.0.0.0
Syntax
C#
[SerializableAttribute]
public struct UxrFingerNodeDescriptor
The UxrFingerNodeDescriptor type exposes the following members.
Constructors
Name | Description | |
---|---|---|
UxrFingerNodeDescriptor | Creates a well-known axes system for a node, to handle transforms independently of the coordinate system being used by a hand rig. |
Properties
Name | Description | |
---|---|---|
Forward | Gets the universal forward vector. The vector that points in our well-known forward direction, in the coordinate system of the finger. | |
Right | Gets the universal right vector. The vector that points in our well-known right direction, in the coordinate system of the finger. | |
TransformRelativeToHand | Gets the original relative transform to the hand bone. We use it mainly to compute UxrGrabbableObject preview meshes more conveniently. | |
Up | Gets the universal up vector. The vector that points in our well-known up direction, in the coordinate system of the finger. |
Methods
Name | Description | |
---|---|---|
Compute | Creates a well-known axes system for a node, to handle transforms independently of the coordinate system being used by a hand rig. | |
Equals | Checks if the content of two FingerNodeDescriptors is equal (they describe the same axes). | |
InterpolateTo | Interpolates the axes data towards another descriptor. | |
Mirror | Mirrors the descriptor. Useful to switch between left and right hand data. |
Extension Methods
Name | Description | |
---|---|---|
ThrowIfNull | Throws an exception if the object is null. (Defined by ObjectExt.) |