threejs-interaction

Implement raycasting, camera controls, and object selection in Three.js scenes.

Updated Feb 2, 2026
One-click install
npx skills add https://github.com/nicolasieber-tm/threejs-skills --skill threejs-interaction
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: threejs-interaction
Source: https://github.com/nicolasieber-tm/threejs-skills/tree/main/skills/threejs-interaction
Command: npx skills add https://github.com/nicolasieber-tm/threejs-skills --skill threejs-interaction

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill enables interactive user input in Three.js scenes by implementing raycasting for object selection, camera controls for navigation, and input handling for mouse and touch interactions.

Core Features & Use Cases

  • Raycasting for click detection: identify and respond to user interactions with scene objects.
  • Camera controls integration: combine OrbitControls and other controls to navigate the scene.
  • Selection and interaction patterns: select, hover, and manipulate objects with input events.
  • Use Case: build an interactive product configurator or a 3D data explorer with clickable elements.

Quick Start

Start with a basic scene and enable raycasting + controls to wire up user input and interactions.

Frequently Asked Questions about threejs-interaction

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I enable mouse click object selection in a Three.js scene?

Enable mouse click object selection in a Three.js scene by using a Raycaster to intersect pointer coordinates with 3D meshes. This Skill implements raycasting and event handling to detect and respond to user interactions with scene objects.

What is the best way to add camera controls for navigating a WebGL scene?

The best way to navigate a WebGL scene is by integrating camera controls like OrbitControls. This Skill provides integration patterns to smoothly navigate Three.js scenes across both desktop and mobile contexts.

Does Three.js raycasting work for touch interactions on mobile devices?

Yes, Three.js raycasting works for touch interactions on mobile devices. This Skill supports input handling for both mouse and touch events, enabling object picking and tap interactions across desktop and mobile contexts.

How do I build an interactive 3D product configurator with Three.js?

Build an interactive 3D product configurator by combining raycasting for object selection, input event handling, and camera controls. This Skill provides the selection and interaction patterns needed to select, hover, and manipulate 3D elements.

Can I use OrbitControls and raycasting together without input conflicts?

Yes, you can use OrbitControls and raycasting together. This Skill combines camera navigation controls with raycaster-based picking, managing input events to handle object selection while maintaining smooth scene navigation.