20#include <aegis/system.hpp>
21#include <etl/vector.h>
26 Event::ConfigureCamera,
29 Event::SetCharacterPosition,
32 public ae::Singleton<CameraSystem>
45 void update(ae::q20_12_t )
override;
CameraMode
Controls how the camera behaves each frame.
Generic events used across multiple systems.
ae::q20_12_t getMovementAngle() const
Returns the angle that maps the UP key to "move away from camera".
CameraMode getMode() const
Returns the current camera mode.
bool isPathComplete() const
Returns true once the Path playback has reached its last keyframe.
ae::q20_12_t angleIncrement
void on_receive(const Event::ConfigureCamera &config)
ETL message handler to configure the camera settings.
Vec3< ae::q20_12_t > targetPos
Event::CameraPosition getCameraPosition() const
Returns the camera position.
ae::q20_12_t getAngle() const
Returns the current orbit angle in radians.
ae::q20_12_t freeCameraSpeed
Vec3< ae::q20_12_t > currentPos
void update(ae::q20_12_t) override
Core update loop that advances camera state and broadcasts the resulting gluLookAt arguments.
Event::CameraPosition camPos
CharacterPosition charPos
void on_receive_unknown(const etl::imessage &msg)
Fallback handler for unhandled ETL messages.
Holds routerIDs used for systems.
constexpr etl::message_router_id_t kCameraSystemRouterID
An ordered list of keyframes defining a camera animation.
Output of CameraSystem::update(ae::q20_12_t), consumed by gluLookAt().
Sets the pointer to a CameraPath.
Event payload to set the character position data.
Activates the CameraSystem update loop.
Deactivates the CameraSystem update loop.