Interface XrHandTrackingOptions
handAlpha?: number;
handColor?: readonly [number, number, number];
handMeshBaseUrl?: string;
handMeshes?: boolean;
handMeshLeftFilename?: string;
handMeshRightFilename?: string;
jointColor?: readonly [number, number, number];
jointMeshFactory?: XrHandJointMeshFactory;
jointScale?: number;
}
Properties
Optionalhand Alpha
Hand-mesh alpha (< 1 = translucent). Default 1 (opaque). A translucent hand
shows its own far fingers through the near ones (nearer fragments can't occlude
farther ones once alpha blending disables depth writes), so the default is solid.
Optionalhand Color
Hand-mesh diffuse tint. Default Babylon's hand purple.
Optionalhand Mesh Base Url
Base URL the hand GLBs are fetched from (must end in /). Defaults to Babylon's CDN.
Optionalhand Meshes
Load Babylon.js's rigged hand mesh (skinned to the joints) instead of only the
joint spheres. Default true. The spheres still show while the mesh loads and if
it can't be loaded. Set false for the lightweight dots-only visual.
Optionalhand Mesh Left Filename
Left-hand GLB filename. Default l_hand_rhs.glb.
Optionalhand Mesh Right Filename
Right-hand GLB filename. Default r_hand_rhs.glb.
Optionaljoint Color
Diffuse colour of the default joint spheres. Defaults to a light blue-white.
Optionaljoint Mesh Factory
Custom per-joint mesh builder (see XrHandJointMeshFactory). Defaults to a low-poly lit sphere. The returned mesh is scaled to the joint radius each frame.
Optionaljoint Scale
Multiplier on each joint's reported radius, to fatten/thin the dots. Default 1.
Options for handTracking / createXrHandTracking.