class
CameraControllerSystem
Drives the TransformComponent of every entity that owns a CameraControllerComponent. Reads from an InputManager wired in via SetInputManager() — typically EditorLayer (for PIE) and RuntimeLayer hand over their input source. Without an InputManager the system still runs the input-free modes (Follow, the target-tracking parts of FirstPerson / TopDown) so non-input-driven behaviours survive running the system in tooling contexts.
- Module
- Camera
- Header
#include "Camera/CameraControllerSystem.h"- Namespace
Mowo
Type aliases
| Alias | Description |
|---|---|
using CameraCollisionSweep = std::function<bool(const Vec3& from, const Vec3& to, float radius, uint32_t layerMask, float& outFraction)> | Spring-arm sweep for ThirdPersonOrbit collision, injected by the Game tier (Scene) so the Camera module stays below Physics. Returns true when the segment from from to to, swept with a sphere of radius and filtered by layerMask, hits geometry — writing the 0..1 hit fraction to outFraction. Unset = no collision (full arm). |
Public functions
| Returns | Name | Description |
|---|---|---|
bool | DeclaresComponentAccess | |
ComponentMask | GetReadMask | |
ComponentMask | GetWriteMask | |
void | Update | |
void | SetInputManager | |
InputManager* | GetInputManager | |
void | SetCollisionSweep | |
bool | HasCollisionSweep |
Function details
DeclaresComponentAccess
C++
bool DeclaresComponentAccess() const overrideGetReadMask
C++
ComponentMask GetReadMask() const overrideGetWriteMask
C++
ComponentMask GetWriteMask() const overrideUpdate
C++
void Update(float deltaTime) overrideSetInputManager
C++
void SetInputManager(InputManager* input)GetInputManager
C++
InputManager* GetInputManager() constSetCollisionSweep
C++
void SetCollisionSweep(CameraCollisionSweep sweep)HasCollisionSweep
C++
bool HasCollisionSweep() constGenerated from Camera/CameraControllerSystem.h via camera.json · Oct 26, 2026Version 1.0.0