API

Class HandConstraintBehaviorSince

Hand constraint behavior that makes the attached TransformNode follow hands in XR experiences. 5.0.0

Implements

Index
gazeProximityRadius: number = 0.15

The radius in meters around the center of the hand that the user must gaze inside for the attached node to be enabled and appear. Used with HandConstraintVisibility.GAZE_FOCUS

handConstraintVisibility: HandConstraintVisibility = HandConstraintVisibility.PALM_AND_GAZE

Sets the HandConstraintVisibility level for the hand constraint

handedness: XRHandedness = "none"

Set the hand this behavior should follow. If set to "none", it will follow any visible hand (prioritising the left one).

lerpTime: number = 100

Rate of interpolation of position and rotation of the attached node. Higher values will give a slower interpolation.

nodeOrientationMode: HandConstraintOrientation = HandConstraintOrientation.HAND_ROTATION

Orientation mode of the node attached to this behavior

palmUpStrictness: number = 0.95

A number from 0.0 to 1.0, marking how restricted the direction the palm faces is for the attached node to be enabled. A 1 means the palm must be directly facing the user before the node is enabled, a 0 means it is always enabled. Used with HandConstraintVisibility.PALM_UP

targetOffset: number = 0.1

Offset distance from the hand in meters

targetZone: HandConstraintZone = HandConstraintZone.ULNAR_SIDE

Where to place the node regarding the center of the hand.

zoneOrientationMode: HandConstraintOrientation = HandConstraintOrientation.HAND_ROTATION

Orientation mode of the 4 zones around the hand