WebXRHandTracking

WebXR Hand Joint tracking feature, available for selected browsers and devices

Hierarchy

Implements

Index

Constructors

constructor

Find examples in Playground

Properties

disableAutoAttach

Find examples in Playground
disableAutoAttach: boolean

Should auto-attach be disabled?

isDisposed

Find examples in Playground
isDisposed: boolean

Is this feature disposed?

onHandAddedObservable

Find examples in Playground
onHandAddedObservable: Observable<WebXRHand>

This observable will notify registered observers when a new hand object was added and initialized

onHandRemovedObservable

Find examples in Playground
onHandRemovedObservable: Observable<WebXRHand>

This observable will notify its observers right before the hand object is disposed

Readonly options

Find examples in Playground

options to use when constructing this feature

xrNativeFeatureName

Find examples in Playground
xrNativeFeatureName: string

The name of the native xr feature name (like anchor, hit-test, or hand-tracking)

Static Readonly Name

Find examples in Playground
Name: string

The module's name

Static Readonly Version

Find examples in Playground
Version: number

The (Babylon) version of this module. This is an integer representing the implementation version. This number does not correspond to the WebXR specs version

Accessors

attached

Find examples in Playground
  • get attached(): boolean

Methods

attach

Find examples in Playground
  • attach(): boolean
  • attach this feature Will usually be called by the features manager

    Returns boolean

    true if successful.

detach

Find examples in Playground
  • detach(): boolean

dispose

Find examples in Playground
  • dispose(): void

getHandByControllerId

Find examples in Playground
  • Get the hand object according to the controller id

    Parameters

    • controllerId: string

      the controller id to which we want to get the hand

    Returns Nullable<WebXRHand>

    null if not found or the WebXRHand object if found

getHandByHandedness

Find examples in Playground
  • Get a hand object according to the requested handedness

    Parameters

    Returns Nullable<WebXRHand>

    null if not found or the WebXRHand object if found

isCompatible

Find examples in Playground
  • isCompatible(): boolean

Generated using TypeDoc