81 camPos.up.y = ae::q20_12_t{1};
185 if (!
path ||
path->keyframes.size() < 2)
214 (span > 0) ?
math.div(ae::q20_12_t{pathFrame - kf0.time}, ae::q20_12_t{span}) : ae::q20_12_t{1};
229 ae::broadcastEvent(
camPos);
Manages the camera for a 3D environment view.
ae::q20_12_t getMovementAngle() const
Returns the angle that maps the UP key to "move away from camera".
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
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
Holds global variables used game-wide.
volatile u32 systemKeysHeld
A single keyframe in a camera path.
Vec3< ae::q20_12_t > target
Look-at position.
int time
Frame index at which this keyframe is reached.
Vec3< ae::q20_12_t > eye
Camera eye position.
Sets the pointer to a CameraPath.
Event payload to set the character position data.
CharacterPosition charPos
Activates the CameraSystem update loop.
Deactivates the CameraSystem update loop.