Closed CodyJasonBennett closed 3 years ago
Might be related: https://github.com/pmndrs/use-cannon/issues/235
It seems this is a major point of confusion. I'll go ahead and change the args for useSphere
to an array with a single entry.
Just to confirm, I updated to v4 and it works. https://codesandbox.io/s/u327l?file=/src/index.js
Thanks @bjornstar
useSphere
will default to using default sphere construct args, and it seems that we cannot override this by explicitly passingargs
into the hook. Furthermore, this will work if you specifyargs: [n]
but only where n >= 1.Here's a recreation I picked up from the Discord from @andersonleite: