UNPKG

glodrei

Version:

useful add-ons for react-three-fiber

13 lines (9 loc) 371 B
--- title: meshBounds sourcecode: src/core/meshBounds.tsx --- [![](https://img.shields.io/badge/-storybook-%23ff69b4)](https://drei.vercel.app/?path=/story/misc-meshbounds--mesh-bounds-st) A very fast, but often good-enough bounds-only raycast for meshes. You can use this if performance has precedence over pointer precision. ```jsx <mesh raycast={meshBounds} /> ```