File: FlyControls.md | Updated: 11/15/2025
This class 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).
FlyControls is an addon, and must be imported explicitly, see Installation#Addons.
import { FlyControls } from 'three/addons/controls/FlyControls.js';
Constructs a new controls instance.
object | The object that is managed by the controls.
---|---
domElement | The HTML element used for event listeners. Default is null.
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.
Fires when the camera has been transformed by the controls.