Creates an instance of CameraFlyBehaviour.
Protected_The rate at which the camera accelerates to moveSpeed.
Protected_Protected_Current accumulated pitch (vertical rotation) in degrees.
Protected_Current accumulated yaw (horizontal rotation) in degrees.
Protected_Current forward/backward velocity.
Protected_A flag indicating if the behaviour has been initialized.
Protected_Protected_Current strafe (left/right) velocity.
Protected_Current up/down velocity.
Protected_Indicates whether the behaviour is currently active.
An inactive behaviour will not have its update method called.
The multiplier applied to moveSpeed when the boost key is held down.
The mouse button mappings for camera controls.
The dampening factor for movement. A higher value means movement stops faster. Value between 0 and 1.
The key mappings for movement controls.
The maximum speed at which the camera can move.
The parent entity to which this behaviour is attached.
The render layer this behaviour belongs to. This is used to determine the rendering order of the entity.
The dampening factor for rotation. A higher value means rotation snaps faster. Value between 0 and 1.
The sensitivity of mouse input for camera rotation.
The sensitivity of the mouse scroll wheel for moving forward and backward.
Gets the transform component of the parent entity. This provides easy access to the position, rotation, and scale of the entity.
ProtectedapplyProtectedApplies the calculated movement velocities to the entity's transform.
The transform to modify.
The time elapsed since the last frame.
ProtectedapplyProtectedApplies the calculated rotation velocities to the entity's transform.
The transform to modify.
The time elapsed since the last frame.
Creates a clone of the behaviour. This method should be overridden by subclasses to implement deep cloning of the behaviour.
ProtecteddeserializeCleans up resources used by the behaviour. This method is called when the behaviour is about to be destroyed.
Draws any visual representation of the behaviour. This is often used for debugging purposes, such as drawing bounding boxes or other gizmos.
Deserializes the behaviour's state from a JSON object. This is used for loading a scene or entity state.
The JSON object to deserialize from.
ProtectedgetInitializes the behaviour. This method is called once when the behaviour is first added to an entity.
ProtectedserializeSerializes the behaviour's state to a JSON object. This is used for saving the scene or entity state.
Updates the camera's state based on input.
The time elapsed since the last update in seconds.
Updates the behaviour specifically for editor mode. This method is called on every frame when the engine is in editor mode.
The time elapsed since the last frame in seconds.
ProtectedupdateUpdates the forward/backward velocity based on input.
The acceleration to apply for this frame.
The maximum speed.
The velocity below which movement stops completely.
ProtectedupdateProtectedMain input processing loop called every frame.
The time elapsed since the last frame.
ProtectedupdateProtectedUpdates all movement velocities based on key inputs.
The time elapsed since the last frame.
ProtectedupdateProtectedUpdates the camera's pan velocity based on mouse movement.
ProtectedupdateProtectedUpdates the forward velocity based on mouse scroll wheel input.
ProtectedupdateUpdates the strafe (left/right) velocity based on input.
The acceleration to apply for this frame.
The maximum speed.
The velocity below which movement stops completely.
ProtectedupdateUpdates the up/down velocity based on input.
The acceleration to apply for this frame.
The maximum speed.
The velocity below which movement stops completely.
StaticinstanciateInstantiates a new CameraFlyBehaviour instance.
A new instance of CameraFlyBehaviour.
CameraFlyBehaviour