Skip to content

clampCameraToLimits

clampCameraToLimits(cam): void

Defined in: src/modules/camera/camera.ts:124

Clamp the camera so its view stays within the limit* world rect (Godot Camera2D.limit_*). When the limit span is narrower than the view on an axis, the camera centres on that axis’s limit midpoint.

Camera

void