pmndrs / use-cannon

👋💣 physics based hooks for @react-three/fiber
https://cannon.pmnd.rs
2.74k stars 153 forks source link

Debug does not work with instancedMesh #364

Closed krispya closed 2 years ago

krispya commented 2 years ago

The Debug component doesn't outline instancedMesh. Here is a Codesandbox with a mix of non-instanced and instanced meshes (inside the Boxes component): https://codesandbox.io/s/use-cannon-sampler-test-gixxzl?file=/src/Boxes.js

Here is a cleaner example: https://codesandbox.io/s/use-cannon-debug-instance-example-s912po

bjornstar commented 2 years ago

Fixed by #366