Disables pointer-based raycasting and removes all pointer event listeners and the frame update callback.
Enables pointer-based raycasting and adds all necessary pointer event listeners and the frame update callback.
Removes the explicit occlusion-object restriction so that all scene objects are checked again.
Begins tracking a list of scene objects for pointer intersection detection. If the raycaster is not yet listening for pointer movements, this method automatically attaches pointer event listeners
(pointermove, click, pointercancel, pointerdown, pointerleave, pointerup).
Registers and executes a low-level extension function with access to the public Raycast API.
Function that receives the current Raycast instance and can use its public members and methods.
The Raycast class manages pointer-based raycasting in a
THREE.Scene. It tracks specified objects, detects cursor intersections with them, and triggers intersection and non-intersection events via the application state. The class dynamically enables or disables pointer listeners depending on the number of tracked objects. It also handles pointer events (click, down, up, move, enter, leave) for the intersected 3D objects.