API

Class WebXRHand

Representing a single hand (with its corresponding native XRHand object)

Implements

Index
onHandMeshSetObservable: Observable<WebXRHand> = ...

This observable will notify registered observers when the hand object has been set with a new mesh. you can get the hand mesh using webxrHand.handMesh

An optional rig mapping for the hand mesh. If not provided (but a hand mesh is provided), it will be assumed that the hand mesh's bones are named directly after the WebXR bone names.

xrController: WebXRInputSource

The controller to which the hand correlates.

  • Update this hand from the latest xr frame.

    Parameters

    • xrFrame: XRFrame

      The latest frame received from WebXR.

    • referenceSpace: XRReferenceSpace

      The current viewer reference space.

    • xrCamera: WebXRCamera

      the xr camera, used for parenting

    Returns void