Three.js - Fly Controls



These are flight simulator-like controls. Move and steer with the keyboard and the mouse. You can arbitrarily transform the camera in 3D space without any limitations (e.g., focus on a specific target).

const controls = new THREE.FlyControls(camera, render.domElement)
Advertisements