Community程式設計與開發github.com

cloudai-x/threejs-interaction

Three.js 互動 - 光線投射、控制、滑鼠/觸控輸入、物件選取。用於處理使用者輸入、實作點擊偵測、加入攝影機控制,或建立互動式 3D 體驗。

threejs-interaction 是什麼?

此技能提供 Three.js 互動功能的完整支援,包括光線投射 (raycasting)、控制項、滑鼠與觸控輸入,以及物件選取。開發者可以輕鬆實作點擊偵測、加入攝影機控制 (如 OrbitControls),或建立高度互動的 3D 體驗。此技能支援所有常見的 Three.js 應用場景,從簡單的物件選取到複雜的使用者互動邏輯。它會自動處理輸入事件與 Three.js 場景的對應,並提供直觀的 API 來觸發自訂行為。使用此技能可大幅簡化互動邏輯的開發流程,讓您專注於創造沉浸式的 3D 使用者體驗。

相容平台~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/cloudai-x/threejs-skills/tree/main/skills/threejs-interaction

Installed? Explore more 程式設計與開發 skills: steipete/bluebubbles, steipete/eightctl, steipete/blucli · View all 6 →

在你喜歡的 AI 中提問

開啟一個已預先載入此 Agent Skill 的新對話。

說明文件

threejs-interaction 是做什麼的?

Three.js 互動 - 光線投射、控制、滑鼠/觸控輸入、物件選取。用於處理使用者輸入、實作點擊偵測、加入攝影機控制,或建立互動式 3D 體驗。

Individual skills in this repo

This repo contains 9 individual skills — each has its own dedicated page.

cloudai-x/threejs-animation

Three.js animation - keyframe animation, skeletal animation, morph targets, animation mixing. Use when animating objects, playing GLTF animations, creating procedural motion, or blending animations.

cloudai-x/threejs-fundamentals

Three.js scene setup, cameras, renderer, Object3D hierarchy, coordinate systems. Use when setting up 3D scenes, creating cameras, configuring renderers, managing object hierarchies, or working with transforms.

cloudai-x/threejs-geometry

Three.js geometry creation - built-in shapes, BufferGeometry, custom geometry, instancing. Use when creating 3D shapes, working with vertices, building custom meshes, or optimizing with instanced rendering.

cloudai-x/threejs-lighting

Three.js lighting - light types, shadows, environment lighting. Use when adding lights, configuring shadows, setting up IBL, or optimizing lighting performance.

cloudai-x/threejs-loaders

Three.js asset loading - GLTF, textures, images, models, async patterns. Use when loading 3D models, textures, HDR environments, or managing loading progress.

cloudai-x/threejs-materials

Three.js materials - PBR, basic, phong, shader materials, material properties. Use when styling meshes, working with textures, creating custom shaders, or optimizing material performance.

cloudai-x/threejs-postprocessing

Three.js post-processing - EffectComposer, bloom, DOF, screen effects. Use when adding visual effects, color grading, blur, glow, or creating custom screen-space shaders.

cloudai-x/threejs-shaders

Three.js shaders - GLSL, ShaderMaterial, uniforms, custom effects. Use when creating custom visual effects, modifying vertices, writing fragment shaders, or extending built-in materials.

cloudai-x/threejs-textures

Three.js textures - texture types, UV mapping, environment maps, texture settings. Use when working with images, UV coordinates, cubemaps, HDR environments, or texture optimization.

相關技能