[name] enables a navigation similar to fly modes in DCC tools like Blender. You can arbitrarily transform the camera in 3D space without any limitations (e.g. focus on a specific target).
[name] is an add-on, and must be imported explicitly. See [link:#manual/introduction/Installation Installation / Addons].
import { FlyControls } from 'three/addons/controls/FlyControls.js';
[example:misc_controls_fly misc / controls / fly ]
[page:Camera object]: The camera to be controlled.
[page:HTMLDOMElement domElement]: The HTML element used for event listeners. (optional)
Creates a new instance of [name].
Fires when the camera has been transformed by the controls.
See the base [page:Controls] class for common properties.
If set to `true`, the camera automatically moves forward (and does not stop) when initially translated. Default is `false`.
If set to `true`, you can only look around by performing a drag interaction. Default is `false`.
The movement speed. Default is `1`.
The rotation speed. Default is `0.005`.
See the base [page:Controls] class for common methods.
[link:https://github.com/mrdoob/three.js/blob/master/examples/jsm/controls/FlyControls.js examples/jsm/controls/FlyControls.js]