Options
All
  • Public
  • Public/Protected
  • All
Menu

XR input used to track XR inputs such as controllers/rays

Hierarchy

  • WebXRInput

Implements

Index

Constructors

  • Initializes the WebXRInput

    Parameters

    • xrSessionManager: WebXRSessionManager

      the xr session manager for this session

    • xrCamera: WebXRCamera

      the WebXR camera for this session. Mainly used for teleportation

    • Optional _options: IWebXRInputOptions

      = initialization options for this xr input

    Returns WebXRInput

Properties

controllers: WebXRInputSource[]

XR controllers being tracked

onControllerAddedObservable: Observable<WebXRInputSource>

Event when a controller has been connected/added

onControllerRemovedObservable: Observable<WebXRInputSource>

Event when a controller has been removed/disconnected

xrCamera: WebXRCamera

the WebXR camera for this session. Mainly used for teleportation

xrSessionManager: WebXRSessionManager

the xr session manager for this session

Methods

  • dispose(): void
  • Disposes of the object

    Returns void

Legend

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

Settings

Theme