Options
All
  • Public
  • Public/Protected
  • All
Menu

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

since

5.0.0

Hierarchy

  • HandConstraintBehavior

Implements

Index

Constructors

Properties

gazeProximityRadius: number

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

Sets the HandConstraintVisibility level for the hand constraint

handedness: XRHandedness

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

lerpTime: number

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

nodeOrientationMode: HandConstraintOrientation

Orientation mode of the node attached to this behavior

palmUpStrictness: number

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

Offset distance from the hand in meters

targetZone: HandConstraintZone

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

zoneOrientationMode: HandConstraintOrientation

Orientation mode of the 4 zones around the hand

Accessors

  • get name(): string
  • gets or sets behavior's name

    Returns string

Methods

  • Attaches the hand constraint to a TransformNode

    Parameters

    Returns void

  • detach(): void
  • Detaches the behavior from the TransformNode

    Returns void

  • disable(): void
  • Disable the behavior

    Returns void

  • enable(): void
  • Enable the behavior

    Returns void

  • init(): void
  • Initializes the hand constraint behavior

    Returns void

  • Links the behavior to the XR experience in which to retrieve hand transform information.

    Parameters

    Returns void

Legend

  • Constructor
  • Property
  • Method
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Property
  • Method
  • Static method

Settings

Theme