Want to let car 'drive' but that doesn't work, instead the camera moves

The problem is that OrbitControls seems to interfere with a custom keydown event listener. If I remove OrbitControls, it’s possible to control the car with the arrow keys.

https://jsfiddle.net/p65ex38t/22/

If you want both types of controls, you have to enhance OrbitControls with your custom code. The following example might also be useful for you:

https://threejs.org/examples/#webgl_materials_cars

1 Like