Closed hazem3500 closed 3 years ago
Hey there, I can't reproduce this upon cleaning up your example (updating dependencies, etc), but the world
is not defined error it later produced may be just fixed in master. Could you try that?
applyForce: (force: number[], worldPoint: number[]) => void
can it be you're feeding it classes?
Oh, yeah, I should've said: I also passed number arrays.
Edit: closing as I can't reproduce.
I'm also having this same issue (not with applyForce, with useSphere), when converting a functioning component that uses useBox
to use useSphere
instead. Will try to make a working example in a sandbox
Calling
applyForce
orapplyLocalForce
gives an errorExample
Live Demo