pmndrs / react-three-rapier

🤺 Rapier physics in React
https://react-three-rapier.pmnd.rs
MIT License
1.1k stars 62 forks source link

Mouse events not called on instanced meshes #719

Open AlexPagnotta opened 1 week ago

AlexPagnotta commented 1 week ago

Hi!

I've noticed a weird behaviour when trying to attach a mouse event (onClick for example) on an instanced mesh, sometimes the event is not triggered on some of the meshes, from what I see it seems to be related to camera angle somehow, but not sure. I see the same thing on one of your demos, attached a video below.

https://github.com/user-attachments/assets/81b55f09-5c10-4ab8-86d9-3f43dded3a8b