threejs-interaction - Handle interaction in Three.js scenes
Handle raycasting, camera controls, mouse and touch input, object selection, and interactive 3D scene behaviors in Three.js.
Tags
Updated: 2026-10-01Capabilities
Typical Inputs
What this skill does
- Perform raycasting
- Convert pointer coordinates
- Handle touch input
- Configure camera controls
- Transform selected objects
- Drag scene objects
- Select scene objects
Inputs
- Three.js scene
- Camera
- Renderer DOM element
- Interactive objects
- Mouse events
- Touch events
- Keyboard events
Outputs
- Raycast intersections
- Selected object state
- Camera control state
- Object transform state
- Drag events
- Pointer lock state
Requirements
- JavaScript runtime
- Three.js
- Three.js control addons
- Browser input events
