1#ifndef _CAMERACONTROLLERCOMPONENT_HPP_
2#define _CAMERACONTROLLERCOMPONENT_HPP_
27 virtual void Update(
float deltaTime) = 0;
virtual void SetEnabled(bool enabled)
virtual bool IsEnabled() const
~CameraController() override=default
Math::Vector3D translationInput
Math::Vector2D MousePosition
Camera * GetCamera()
Casts the owning GameObject to Camera; valid only when attached to one.
CameraController(GameObject *object)
virtual void ToggleCursor(bool enable)=0
Shows or hides the OS cursor and, typically, toggles relative mouse mode.
virtual void UpdateCamera(float deltaTime)=0
Applies accumulated input to the camera's position/orientation.
Math::Vector3D rotationInput
virtual void Update(float deltaTime)=0
virtual void UpdateInput(float deltaTime)=0
Polls raw input devices and updates translation/rotation input state.
virtual void SetSensitivity(float sensitivity)
Math::Vector2D LastMousePosition
virtual bool Initialize()
One-time setup, called after the component is attached and the owner is initialized.
virtual float GetSensitivity() const
Component(GameObject *object)
Root namespace for everything the engine exposes.