persona-3-dual
A DS demake of Persona 3
Loading...
Searching...
No Matches
CameraEvents.hpp
Go to the documentation of this file.
1
7
8#pragma once
9
10#include "core/geometry.hpp"
11#include "types/CameraTypes.hpp"
12#include "types/aeTypes.hpp"
13
14#include <aegis/aegis.hpp>
15
16namespace Event
17{
21struct CameraPosition : public etl::message<EventID::CameraPosition>
22{
26};
27
34struct ConfigureCamera : public etl::message<EventID::ConfigureCamera>
35{
37
38 // Static / CCTV — fixed eye position
41
42 // Follow / Free
43 ae::q20_12_t initialAngle{0};
44 ae::q20_12_t distance{1.5};
45 ae::q20_12_t height{0.6};
46 ae::q20_12_t lookAhead{0.5};
47 ae::q20_12_t angleIncrement{0.05};
48 bool isRotationLocked = false;
49};
50
54struct SetCameraMode : public etl::message<EventID::SetCameraMode>
55{
58 {
59 }
60};
61
65struct SetCameraPath : public etl::message<EventID::SetCameraPath>
66{
68 SetCameraPath(CameraPath* iPath) : path(iPath)
69 {
70 }
71};
72
76struct StartCamera : public etl::message<EventID::StartCamera>
77{
78};
79
83struct StopCamera : public etl::message<EventID::StopCamera>
84{
85};
86} // namespace Event
CameraMode
Controls how the camera behaves each frame.
An ordered list of keyframes defining a camera animation.
Output of CameraSystem::update(ae::q20_12_t), consumed by gluLookAt().
Vec3< ae::q20_12_t > target
Look-at point.
Vec3< ae::q20_12_t > up
Up vector (default 0,1,0).
Vec3< ae::q20_12_t > eye
Camera eye position.
All parameters needed to configure a CameraSystem in one call.
Vec3< ae::q20_12_t > eye
ae::q20_12_t lookAhead
Distance ahead of the character for the look-at point.
ae::q20_12_t distance
Distance from character to camera eye.
ae::q20_12_t angleIncrement
Radians rotated per frame on L/R input.
ae::q20_12_t initialAngle
Starting orbit angle in radians.
bool isRotationLocked
Disable camera angle rotation on L/R input.
Vec3< ae::q20_12_t > target
Look-at point. Used by Static only.
ae::q20_12_t height
Eye height above the character origin.
SetCameraMode(CameraMode iMode)
SetCameraPath(CameraPath *iPath)
Activates the CameraSystem update loop.
Deactivates the CameraSystem update loop.