Class XRFingerShapeConfiguration
Configuration values for how to calculate XRFingerShape.
Defines minimum and maximum angles or distances between joints to normalize finger joints into each
XRFingerStateType's' 0
to 1
value.
Inherited Members
Namespace: UnityEngine.XR.Hands.Gestures
Assembly: Unity.XR.Hands.dll
Syntax
[Serializable]
public class XRFingerShapeConfiguration
Properties
maximumBaseCurlDegrees
The maximum degrees between vectors from the central flex joint to
its closest neighbors. When the angle between those two vectors is
greater than or equal to this value, the flex value will be 0
.
Declaration
public float maximumBaseCurlDegrees { get; set; }
Property Value
Type | Description |
---|---|
float |
maximumFullCurlDegrees1
The maximum degrees between vectors from the first extension joint to its closest neighbors.
Declaration
public float maximumFullCurlDegrees1 { get; set; }
Property Value
Type | Description |
---|---|
float |
maximumFullCurlDegrees2
The maximum degrees between vectors from the second extension joint to its closest neighbors.
Declaration
public float maximumFullCurlDegrees2 { get; set; }
Property Value
Type | Description |
---|---|
float |
maximumFullCurlDegrees3
The maximum degrees between vectors from the third extension joint to its closest neighbors. Ignored on the thumb.
Declaration
public float maximumFullCurlDegrees3 { get; set; }
Property Value
Type | Description |
---|---|
float |
maximumPinchDistance
The maximum distance between each finger tip and the thumb tip which allows for non-zero pinch values.
Declaration
public float maximumPinchDistance { get; set; }
Property Value
Type | Description |
---|---|
float |
maximumSpreadDegrees
The maximum degrees for splay between this finger and the next. Not used for the little finger.
Declaration
public float maximumSpreadDegrees { get; set; }
Property Value
Type | Description |
---|---|
float |
maximumTipCurlDegrees1
The maximum degrees between vectors from the first curl joint to its closest neighbors.
Declaration
public float maximumTipCurlDegrees1 { get; set; }
Property Value
Type | Description |
---|---|
float |
maximumTipCurlDegrees2
The maximum degrees between vectors from the second curl joint to its closest neighbors.
Declaration
public float maximumTipCurlDegrees2 { get; set; }
Property Value
Type | Description |
---|---|
float |
minimumBaseCurlDegrees
The minimum degrees between vectors from the central flex joint to
its closest neighbors. When the angle between those two vectors is
less than or equal to this value, the flex value will be 1
.
Declaration
public float minimumBaseCurlDegrees { get; set; }
Property Value
Type | Description |
---|---|
float |
minimumFullCurlDegrees1
The minimum degrees between vectors from the first extension joint to its closest neighbors.
Declaration
public float minimumFullCurlDegrees1 { get; set; }
Property Value
Type | Description |
---|---|
float |
minimumFullCurlDegrees2
The minimum degrees between vectors from the second extension joint to its closest neighbors.
Declaration
public float minimumFullCurlDegrees2 { get; set; }
Property Value
Type | Description |
---|---|
float |
minimumFullCurlDegrees3
The minimum degrees between vectors from the third extension joint to its closest neighbors. Ignored on the thumb.
Declaration
public float minimumFullCurlDegrees3 { get; set; }
Property Value
Type | Description |
---|---|
float |
minimumPinchDistance
The minimum distance between each finger tip and the thumb tip
to calculate pinch values for. Values below or equal to this will
result in a pinch value of 1
.
Declaration
public float minimumPinchDistance { get; set; }
Property Value
Type | Description |
---|---|
float |
minimumSpreadDegrees
The minimum degrees for splay between this finger and the next. Not used for the little finger.
Declaration
public float minimumSpreadDegrees { get; set; }
Property Value
Type | Description |
---|---|
float |
minimumTipCurlDegrees1
The minimum degrees between vectors from the first curl joint to its closest neighbors.
Declaration
public float minimumTipCurlDegrees1 { get; set; }
Property Value
Type | Description |
---|---|
float |
minimumTipCurlDegrees2
The minimum degrees between vectors from the second curl joint to its closest neighbors.
Declaration
public float minimumTipCurlDegrees2 { get; set; }
Property Value
Type | Description |
---|---|
float |