r3f-interaction
🎯Skillfrom enzed/r3f-skills
React Three Fiber interaction skills covering pointer events, camera controls, gestures, and selection for building interactive 3D web experiences.
Overview
R3F Interaction is a Claude Code skill that provides comprehensive guidance for handling user input and interaction in React Three Fiber (R3F) 3D applications. It covers pointer events, camera controls, gesture handling, selection, and creating interactive 3D experiences with click detection and hover effects.
Key Features
- Built-in Pointer Events - Full suite of pointer events (click, double-click, context menu, pointer down/up/move/over/out/enter/leave) directly on mesh elements with React-style event handling
- Rich Event Object - Access world coordinates, face normals, UV coordinates, ray intersection data, camera reference, and all intersections from a single event handler
- Event Propagation Control - Stop event propagation through 3D object hierarchies with
event.stopPropagation()and handle missed clicks withonPointerMissed - Hover Effects - Implement hover state changes with cursor style updates using
onPointerOverandonPointerOutevent pairs - OrbitControls Integration - Add camera controls from
@react-three/dreialongside interactive meshes for complete 3D navigation
Who is this for?
This skill is designed for React developers building interactive 3D web applications with React Three Fiber who need guidance on implementing user interactions, click detection, and camera controls. It is particularly useful for teams creating 3D product configurators, data visualizations, or interactive scenes that require responsive user input handling.
Same repository
enzed/r3f-skills(11 items)
Installation
npx vibeindex add enzed/r3f-skills --skill r3f-interactionnpx skills add enzed/r3f-skills --skill r3f-interaction~/.claude/skills/r3f-interaction/SKILL.mdSKILL.md
More from this repository10
React Three Fiber geometry skill for creating 3D shapes, custom meshes, BufferGeometry, point clouds, lines, and instanced rendering optimization with Drei
Provides accurate, up-to-date API references and idiomatic React patterns for React Three Fiber (R3F), Drei, and the 3D ecosystem to enhance AI coding assistant capabilities.
React Three Fiber post-processing skill covering bloom, depth of field, color grading, vignette, screen effects, and custom screen-space shaders via @react-three/postprocessing
React Three Fiber materials skill providing accurate, up-to-date API references for R3F, Drei, and the Three.js ecosystem with idiomatic React 3D patterns.
React Three Fiber physics skill for Rapier integration covering RigidBody, colliders, forces, joints, sensors, character controllers, and interactive physics-based experiences
React Three Fiber shader development skill providing accurate, up-to-date API references for R3F, Drei, and the Three.js ecosystem with idiomatic React 3D patterns.
React Three Fiber animation skill covering useFrame, useAnimations, spring physics, keyframes, procedural motion, and GLTF animation playback
React Three Fiber lighting skill covering light types, shadow configuration, Environment component, image-based lighting (IBL), and lighting performance optimization
Provides React Three Fiber texture handling guidance including useTexture hook usage, PBR texture sets, environment maps, cubemaps, HDR environments, and texture configuration best practices.
React Three Fiber asset loading skill covering useGLTF, useLoader, Suspense patterns, preloading strategies for 3D models, textures, and HDR environments