xrGetInputSource(controller) → (nullable) {XRInputSource}
Get the XR input source for the given controller.
Parameters:
Name | Type | Description |
---|---|---|
controller |
v3d.Group | A group representing an XR controller (specifically the target ray space of the controller). Can be obtained by calling WebXRManager's getController() method (WebXRManager can be accessed through app's renderer.xr property). |
Returns:
The XR input source or null if not available.
- Type
- XRInputSource