This documentation is for a prerelease version of O3DE. Click here to switch to the latest release, or select a version from the dropdown.

Version:

Fly Camera Input Component

Use the Fly Camera Input component to quickly add a controllable camera to your level. The Fly Camera Input component receives inputs from a mouse and keyboard, gamepad, or touch device. You can control the forward, backward, and lateral movement as well as the look direction of a camera component that is attached to the same entity as the Fly Camera Input component. Mouse X and Y-axis movements control look direction. The keyboard keys W, A, S, and D control forward, left, backward, and right motion respectively.

Provider

Atom Bridge Gem

Dependencies

Camera component

Fly Camera Input properties

Fly Camera Input component properties

PropertyDescriptionValuesDefault
Move SpeedSets the movement speed of the camera.1.0 - 100.020.0
Rotation SpeedSets the rotational speed of the camera.1.0 - 100.05.0
Mouse SensitivitySets the input sensitivity of the mouse.0.0 - 1.00.025
Invert Rotation Input XInverts the value of X-axis rotation inputs (yaw, left-right look direction).BooleanDisabled
Invert Rotation Input YInverts the value of Y-axis rotation inputs (pitch, up-down look direction).BooleanDisabled
Is Initially EnabledIf set to enabled, the fly camera will be active and controllable when the parent entity is activated.BooleanEnabled

FlyCameraInputBus

Request NameDescriptionParameterReturnScriptable
GetIsEnabledReturns True, if the fly camera is active.NoneBooleanYes
SetIsEnabledIf True, sets the fly camera as active. If False, deactivates the fly camera.BooleanNoneYes

For more information, see Working with the Event Bus (EBus) system.