Closed calvind777 closed 3 years ago
Bug Demo: https://codesandbox.io/s/use-cannon-applyforce-bug-report-forked-b5vim
I encountered this in my own project as well, and changing useSphere to useBox worked perfectly. You can also observe that bumping down the @react-three/fiber version to 2.2.0 fixes the crash.
useSphere
useBox
@react-three/fiber
2.2.0
Interesting, if you remove the debug wrapper it doesn't crash.
should be fixed https://github.com/pmndrs/use-cannon/commit/21b046c80574871ae5feeac398f1159824f9c87b
Bug Demo: https://codesandbox.io/s/use-cannon-applyforce-bug-report-forked-b5vim
I encountered this in my own project as well, and changing
useSphere
touseBox
worked perfectly. You can also observe that bumping down the@react-three/fiber
version to2.2.0
fixes the crash.