Skip to main content

XR8.HandController.configure()

XR8.HandController.configure({ nearClip, farClip, coordinates })

Description

Configures what processing is performed by HandController.

Parameters

ParameterTypeDefaultDescription
nearClip [Optional]Number0.01The distance from the camera of the near clip plane, i.e. the closest distance to the camera at which scene objects are visible.
farClip [Optional]Number1000The distance from the camera of the far clip plane, i.e. the farthest distance to the camera at which scene objects are visible.
maxDetections [Optional]Number1The maximum number of hands to detect. The only available option is 1.
enableWrists [Optional]BooleanfalseIf true, runs wrist detection simultaneosly with Hand Tracking and returns wrist attachment points.
coordinates [Optional]CoordinatesThe camera configuration.

The Coordinates object has the following properties:

ParameterTypeDefaultDescription
origin [Optional]{position: {x, y, z}, rotation: {w, x, y, z}}{position: {x: 0, y: 0, z: 0}, rotation: {w: 1, x: 0, y: 0, z: 0}}The position and rotation of the camera.
scale [Optional]Number1Scale of the scene.
axes [Optional]String'RIGHT_HANDED'Can be either 'LEFT_HANDED' or 'RIGHT_HANDED'.
mirroredDisplay [Optional]BooleanFalseIf true, flip left and right in the output.

IMPORTANT: XR8.HandController cannot be used at the same time as XR8.XrController.

Returns

None

Example

  XR8.HandController.configure({
coordinates: {mirroredDisplay: false},
})