WebXRController

Represents an XR input

Hierarchy

  • WebXRController

Index

Constructors

constructor

Find examples in Playground

Properties

Optional gamepadController

Find examples in Playground
gamepadController: WebVRController

If available, this is the gamepad object related to this controller. Using this object it is possible to get click events and trackpad changes of the webxr controller that is currently being used.

Optional grip

Find examples in Playground

Represents the part of the controller that is held. This may not exist if the controller is the head mounted display itself, if thats the case only the pointer from the head will be availible

inputSource

Find examples in Playground
inputSource: XRInputSource

The underlying input source for the controller

onDisposeObservable

Find examples in Playground
onDisposeObservable: Observable<__type>

Event that fires when the controller is removed/disposed

pointer

Find examples in Playground
pointer: AbstractMesh

Pointer which can be used to select objects or attach a visible laser to

Methods

dispose

Find examples in Playground
  • dispose(): void
  • Disposes of the object

    Returns void

getScene

Find examples in Playground
  • Get the scene associated with this controller

    Returns Scene

    the scene object

getWorldPointerRayToRef

Find examples in Playground
  • getWorldPointerRayToRef(result: Ray): void
  • Gets a world space ray coming from the controller

    Parameters

    • result: Ray

      the resulting ray

    Returns void

updateFromXRFrame

Find examples in Playground
  • Updates the controller pose based on the given XRFrame

    Parameters

    Returns void

Generated using TypeDoc