Options
All
  • Public
  • Public/Protected
  • All
Menu

Class WebXRWalkingLocomotion

A module that will enable VR locomotion by detecting when the user walks in place.

Hierarchy

Implements

Index

Constructors

constructor

Properties

disableAutoAttachSearch playground for disableAutoAttach

disableAutoAttach: boolean

Should auto-attach be disabled?

isDisposedSearch playground for isDisposed

isDisposed: boolean

Is this feature disposed?

xrNativeFeatureNameSearch playground for xrNativeFeatureName

xrNativeFeatureName: string

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

Accessors

attached

  • get attached(): boolean

locomotionTarget

  • The target to be articulated by walking locomotion. When the walking locomotion feature detects walking in place, this element's X and Z coordinates will be modified to reflect locomotion. This target should be either the XR space's origin (i.e., the parent node of the WebXRCamera) or the WebXRCamera itself. Note that the WebXRCamera path will modify the position of the WebXRCamera directly and is thus discouraged.

    Returns WebXRCamera | TransformNode

  • The target to be articulated by walking locomotion. When the walking locomotion feature detects walking in place, this element's X and Z coordinates will be modified to reflect locomotion. This target should be either the XR space's origin (i.e., the parent node of the WebXRCamera) or the WebXRCamera itself. Note that the WebXRCamera path will modify the position of the WebXRCamera directly and is thus discouraged.

    Parameters

    Returns any

Static Name

  • get Name(): string
  • The module's name.

    Returns string

Static Version

  • get Version(): number
  • The (Babylon) version of this module. This is an integer representing the implementation version. This number has no external basis.

    Returns number

Methods

attachSearch playground for attach

  • attach(): boolean
  • Attaches the feature. Typically called automatically by the features manager.

    Returns boolean

    true if attach succeeded, false otherwise

detachSearch playground for detach

  • detach(): boolean
  • Detaches the feature. Typically called automatically by the features manager.

    Returns boolean

    true if detach succeeded, false otherwise

disposeSearch playground for dispose

  • dispose(): void

isCompatibleSearch playground for isCompatible

  • isCompatible(): boolean
  • Checks whether this feature is compatible with the current WebXR session. Walking locomotion is only compatible with "immersive-vr" sessions.

    Returns boolean

    true if compatible, false otherwise

Legend

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