Disable prediction
Enable velocity-based look-ahead. Call updatePrediction() each frame.
Optionalconfig: PredictionConfigOptionalconfig: FollowConfigCinematic: move camera along a path of points
Get current bounds lock
Get camera scroll position (center of view)
Get current prediction offset (add to camera follow offset)
Get the visible world bounds of the camera
Get current zoom level
Check if a world position is visible in the camera
Reset camera to default state
Convert screen coordinates to world coordinates
Set camera rotation
Shake the camera in a specific direction
Shake from a world position (direction = position → camera center)
Heavy shake — big explosion, boss attack
Light shake — UI feedback, minor hit
Medium shake — damage taken, explosion nearby
Smoothly transition to a new bounds lock
Release bounds lock and restore world bounds
Update prediction offset based on target velocity. Call each frame. Adjusts the follow offset to lead the camera in the movement direction.
Clean up camera state