Replies: 2 comments 1 reply
|
You can set up the properties for the default raycaster through the |
1 reply
|
like @mattrossman said you can use layers, but you can also switch it off completely: <instancedMesh raycast={null} />even better, you can make raycast cheap: import { meshBounds } from '@react-three/drei'
<instancedMesh raycast={meshBounds} />now it will make a single bounds check to determine if the object has been pierced, which is very fast. https://codesandbox.io/s/r3f-basic-demo-8fpip |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Is there any way to ignore pointer raycasting ?
Complex objects (eg. InstancedMesh) may take several ms for a raycast.
How to save unnecessary computation?
All reactions