WebXRController

Represents an XR input

Hierarchy

  • WebXRController

Index

Constructors

constructor

Find examples in Playground

Properties

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

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