Capítulo 310 de 859
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).
true, the camera automatically moves forward (and does not stop) when initially translated.true, you can only look around by performing a drag interaction.import { FlyControls } from 'three/addons/controls/FlyControls.js';
Constructor
| Signature |
|---|
new FlyControls( object : Object3D, domElement : HTMLElement ) |
Properties
| Property | Description |
|---|---|
.autoForward : boolean | If set to true, the camera automatically moves forward (and does not stop) when initially translated. |
.dragToLook : boolean | If set to true, you can only look around by performing a drag interaction. |
.movementSpeed : number | The movement speed. |
.rollSpeed : number | The rotation speed. |