glodrei
Version:
useful add-ons for react-three-fiber
13 lines (9 loc) • 371 B
text/mdx
title: meshBounds
sourcecode: src/core/meshBounds.tsx
[](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} />
```