Options
All
  • Public
  • Public/Protected
  • All
Menu

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

Hierarchy

Index

Constructors

Properties

disableAutoAttach: boolean

Should auto-attach be disabled?

isDisposed: boolean

Is this feature disposed?

onHandAddedObservable: Observable<WebXRHand>

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

onHandRemovedObservable: Observable<WebXRHand>

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

Options to use when constructing this feature.

xrNativeFeatureName: string

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

DEFAULT_HAND_MODEL_BASE_URL: string

The base URL for the default hand model.

DEFAULT_HAND_MODEL_LEFT_FILENAME: string

The filename to use for the default left hand model.

DEFAULT_HAND_MODEL_RIGHT_FILENAME: string

The filename to use for the default right hand model.

DEFAULT_HAND_MODEL_SHADER_URL: string

The URL pointing to the default hand model NodeMaterial shader.

Name: "xr-hand-tracking" = "xr-hand-tracking"

The module's name

Version: 1 = 1

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

  • get attached(): boolean
  • Is this feature attached

    Returns boolean

Methods

  • attach(): boolean
  • Attach this feature. Will usually be called by the features manager.

    Returns boolean

    true if successful.

  • detach(): boolean
  • Detach this feature. Will usually be called by the features manager.

    Returns boolean

    true if successful.

  • dispose(): void
  • Dispose this feature and all of the resources attached.

    Returns void

  • 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

  • Get a hand object according to the requested handedness

    Parameters

    Returns Nullable<WebXRHand>

    null if not found or the WebXRHand object if found

  • isCompatible(): boolean
  • Check if the needed objects are defined. This does not mean that the feature is enabled, but that the objects needed are well defined.

    Returns boolean

Legend

  • Constructor
  • Property
  • Method
  • Property
  • Method
  • Inherited constructor
  • Inherited property
  • Static property
  • Static method

Settings

Theme