collision-points-3d

Implement collision detection and surface snapping for 3D widgets using WebXR APIs.

Updated Jan 19, 2026
One-click install
npx skills add https://github.com/hkcm91/StickerNestV4 --skill collision-points-3d
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: collision-points-3d
Source: https://github.com/hkcm91/StickerNestV4/tree/main/.claude/skills/collision-points-3d
Command: npx skills add https://github.com/hkcm91/StickerNestV4 --skill collision-points-3d

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires three-mesh-bvh, @react-three/xr, @react-three/rapier, @react-three/drei, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill enables precise placement and interaction of widgets within 3D and XR environments by implementing robust collision detection and surface snapping.

Core Features & Use Cases

  • 3D Environment Integration: Load and interact with custom 3D environments for widget placement.
  • Surface Snapping: Automatically align widgets to detected surfaces like walls, floors, and tables.
  • Use Case: Imagine placing virtual monitors on the walls of a VR meeting room; this skill ensures they snap perfectly to the wall surface and don't float in space.

Quick Start

Use the collision-points-3d skill to enable snapping for widgets onto detected XR planes and custom 3D environment surfaces.

Frequently Asked Questions about collision-points-3d

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

FAQPage Schema
How do I snap virtual widgets to 3D surfaces in WebXR?

Surface snapping in 3D environments works by using raycasting to detect planes and custom meshes, then automatically aligning widgets to those surfaces. This ensures accurate placement on walls and floors without floating.

How does collision detection work with three-mesh-bvh for surface snapping?

Collision detection with three-mesh-bvh generates snap points by raycasting against custom 3D geometry and XR planes. This mechanism accurately identifies intersecting surfaces to facilitate precise widget alignment in VR and AR environments.

Can I use react-three-rapier for collision detection in VR environments?

Yes, react-three-rapier is supported for collision detection in VR environments. It works alongside three-mesh-bvh and WebXR APIs to enable accurate surface snapping and widget interaction within custom 3D environments.

What's the best way to place virtual monitors on walls in a 3D environment?

The best way to place virtual monitors on walls is by using surface snapping with raycasting. This detects the wall geometry and automatically snaps the monitor to the surface, ensuring precise alignment without floating in space.

Do I need @react-three/xr to load custom 3D environments for widget placement?

Yes, @react-three/xr is required to load and interact with custom 3D environments for widget placement. It provides the WebXR APIs necessary for detecting planes and meshes used in raycasting and surface snapping.