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

NameDescription
Public methodUxrFingerNodeDescriptor Creates a well-known axes system for a node, to handle transforms independently of the coordinate system being used by a hand rig.

Properties

NameDescription
Public propertyForward Gets the universal forward vector. The vector that points in our well-known forward direction, in the coordinate system of the finger.
Public propertyRight Gets the universal right vector. The vector that points in our well-known right direction, in the coordinate system of the finger.
Public propertyTransformRelativeToHand Gets the original relative transform to the hand bone. We use it mainly to compute UxrGrabbableObject preview meshes more conveniently.
Public propertyUp Gets the universal up vector. The vector that points in our well-known up direction, in the coordinate system of the finger.

Methods

NameDescription
Public methodCompute Creates a well-known axes system for a node, to handle transforms independently of the coordinate system being used by a hand rig.
Public methodEquals Checks if the content of two FingerNodeDescriptors is equal (they describe the same axes).
Public methodInterpolateTo Interpolates the axes data towards another descriptor.
Public methodMirror Mirrors the descriptor. Useful to switch between left and right hand data.

Extension Methods

NameDescription
Public Extension MethodThrowIfNull Throws an exception if the object is null. (Defined by ObjectExt.)

See Also

Reference

UltimateXR.Manipulation.HandPoses Namespace