Class HandConstraintBehaviorSince
Implements
Constructors
constructor
-
Builds a hand constraint behavior
Returns HandConstraintBehavior
Properties
gaze Proximity Radius
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
hand Constraint Visibility
Sets the HandConstraintVisibility level for the hand constraint
handedness
Set the hand this behavior should follow. If set to "none", it will follow any visible hand (prioritising the left one).
lerp Time
Rate of interpolation of position and rotation of the attached node. Higher values will give a slower interpolation.
node Orientation Mode
Orientation mode of the node attached to this behavior
palm Up Strictness
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
target Offset
Offset distance from the hand in meters
target Zone
Where to place the node regarding the center of the hand.
zone Orientation Mode
Orientation mode of the 4 zones around the hand
Accessors
attached Node
-
Attached node of this behavior
Returns Nullable<TransformNode>
name
-
get name(): string
gets or sets behavior's name
Returns string
Methods
attach
-
Attaches the hand constraint to a
TransformNodeParameters
- node: TransformNode
defines the node to attach the behavior to
Returns void
- node: TransformNode
detach
-
Detaches the behavior from the
TransformNodeReturns void
disable
-
Disable the behavior
Returns void
enable
-
Enable the behavior
Returns void
init
-
Initializes the hand constraint behavior
Returns void
link To XR Experience
-
Links the behavior to the XR experience in which to retrieve hand transform information.
Parameters
- xr: WebXRExperienceHelper | WebXRFeaturesManager
xr experience
Returns void
- xr: WebXRExperienceHelper | WebXRFeaturesManager
Hand constraint behavior that makes the attached
TransformNodefollow hands in XR experiences. 5.0.0