Flint Engine
Modular C++20 2D game engine powered by SDL3
Loading...
Searching...
No Matches

◆ setTargetCenter()

void Flint::Camera::setTargetCenter ( Vec2f center)

Soft‑lock camera centre on a target (uses current smoothing).

Parameters
centerTarget centre in world coordinates.

Call once per frame with your player/target centre in world coords.