Import
InteractiveGroup is an addon, and must be imported explicitly, see Installation#Addons.
import { InteractiveGroup } from 'three/addons/interactive/InteractiveGroup.js';
Properties
.controllers : Array.<Group>
An array of XR controllers.
.element : HTMLElement
The internal raycaster.
Default is null.
Methods
.disconnect()
Disconnects this interactive group from the DOM and all XR controllers.
.disconnectXrControllerEvents()
Disconnects this interactive group from all XR controllers.
.disconnectionPointerEvents()
Disconnects this interactive group from all Pointer and Mouse Events.
.listenToPointerEvents( renderer : WebGPURenderer | WebGLRenderer, camera : Camera )
Calling this method makes sure the interactive group listens to Pointer and Mouse events.
The target is the domElement of the given renderer. The camera is required for the internal
raycasting so 3D objects can be detected based on the events.
| renderer |
The renderer. |
| camera |
The camera. |
.listenToXRControllerEvents( controller : Group )
Calling this method makes sure the interactive group listens to events of the given XR controller.
| controller |
The XR controller. |