Class WebXRInput
Implements
Constructors
constructor
-
new WebXRInput(
xrSessionManager: WebXRSessionManager,
xrCamera: WebXRCamera,
_options?: IWebXRInputOptions,
): WebXRInputInitializes the WebXRInput
Parameters
- xrSessionManager: WebXRSessionManager
the xr session manager for this session
- xrCamera: WebXRCamera
the WebXR camera for this session. Mainly used for teleportation
- _options: IWebXRInputOptions = {}
= initialization options for this xr input
Returns WebXRInput
- xrSessionManager: WebXRSessionManager
Properties
controllers
XR controllers being tracked
on Controller Added Observable
Event when a controller has been connected/added
on Controller Removed Observable
Event when a controller has been removed/disconnected
xr Camera
the WebXR camera for this session. Mainly used for teleportation
xr Session Manager
the xr session manager for this session
XR input used to track XR inputs such as controllers/rays