threejs-core-raycaster

Official

Precise Three.js raycasting for picking.

AuthorOpenAEC-Foundation
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Efficient, accurate mouse picking in Three.js scenes using Raycaster to test intersections against a target object set, while avoiding unnecessary traversal and ensuring reliable results for hover and click interactions.

Core Features & Use Cases

  • Raycaster-based mouse picking with setFromCamera and set origin/direction
  • intersectObject and intersectObjects with optional recursive traversal
  • InstancedMesh picking support via instanceId and per-instance data
  • Layer filtering using raycaster.layers to restrict tests to interactive objects
  • Performance guidance including throttling, array reuse, and selective testing

Quick Start

Initialize a Raycaster, convert your mouse coordinates to normalized device coordinates, and call intersectObjects or intersectObject on your target objects.

Dependency Matrix

Required Modules

None required

Components

references

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: threejs-core-raycaster
Download link: https://github.com/OpenAEC-Foundation/Three.js-Claude-Skill-Package/archive/main.zip#threejs-core-raycaster

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.