pmndrs / use-cannon

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

Fix errors on object removal #208

Closed David-Beale closed 3 years ago

David-Beale commented 3 years ago

Removing objects/rays currently causes the app to crash

drcmda commented 3 years ago

@David-Beale this breaks the trigger mesh demo for some reason

David-Beale commented 3 years ago

@David-Beale this breaks the trigger mesh demo for some reason

@drcmda Looks like the break happened here: https://github.com/pmndrs/use-cannon/pull/206

drcmda commented 3 years ago

right, i just realised, sorry. i was using the wrong tool (worker.tsx history instead of commit history).