Engine²
Open-source game engine written in C++.
Loading...
Searching...
No Matches
DontMoveBehavior.hpp
Go to the documentation of this file.
1#pragma once
2
5#include "core/Core.hpp"
8
9namespace CameraMovement::Utils {
10
15 public:
16 DontMoveBehavior() = default;
17 ~DontMoveBehavior() override = default;
18
20 Object::Component::Camera &camera, float deltaTime) override
21 {
22 // Intentionally does nothing to keep the camera static
23 }
24};
25
26} // namespace CameraMovement::Utils
CameraManager is a resource that manages the active camera entity.
Definition CameraManager.hpp:24
void Update(Engine::Core &core, Resource::CameraManager &manager, Object::Component::Transform &transform, Object::Component::Camera &camera, float deltaTime) override
Update the camera behavior.
Definition DontMoveBehavior.hpp:19
The core is the place where all the data of the engine is stored. It contains the registry (entities)...
Definition Core.hpp:33
Definition CameraManager.hpp:12
Definition Camera.hpp:10
Definition Transform.hpp:18