WebXRHand

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

Hierarchy

  • WebXRHand

Implements

Index

Constructors

constructor

Find examples in Playground
  • Construct a new hand object

    Parameters

    • xrController: WebXRInputSource

      the controller to which the hand correlates

    • trackedMeshes: AbstractMesh[]

      the meshes to be used to track the hand joints

    Returns WebXRHand

Properties

handPartsDefinition

Find examples in Playground
handPartsDefinition: object

Hand-parts definition (key is HandPart)

Type declaration

  • [key: string]: number[]

Readonly trackedMeshes

Find examples in Playground
trackedMeshes: AbstractMesh[]

the meshes to be used to track the hand joints

Readonly xrController

Find examples in Playground
xrController: WebXRInputSource

the controller to which the hand correlates

Methods

dispose

Find examples in Playground
  • dispose(): void

getHandPartMeshes

Find examples in Playground
  • Get meshes of part of the hand

    Parameters

    • part: HandPart

      the part of hand to get

    Returns AbstractMesh[]

    An array of meshes that correlate to the hand part requested

updateFromXRFrame

Find examples in Playground
  • Update this hand from the latest xr frame

    Parameters

    • xrFrame: XRFrame

      xrFrame to update from

    • referenceSpace: XRReferenceSpace

      The current viewer reference space

    • Optional scaleFactor: number

      optional scale factor for the meshes

    Returns void

Generated using TypeDoc