Hi all, I’m having an issue getting this scene to work. I’m referencing code from tpl-r3f - CodeSandbox
I have a ball that can be controlled with WASD. This is using drei KeyboardControls. Using Rapier to import Cannon.
Here’s the code for the ball t4/ball.tsx at 6c06b2647d35467c2083d2d023860a16c383960d · victorsh/t4 · GitHub
And here’s the code for the scene
t4/rapier-scene.tsx at 6c06b2647d35467c2083d2d023860a16c383960d · victorsh/t4 · GitHub
The issue that I’m having is that once the ball stops moving, the ball no longer moves again. When the scene first loads, I can move the ball with WASD. I logged the functions connected to keyboard and it seems to be working fine. Within ball.tsx, I can see that torque and impulse are being applied.
Any help is much appreciated!