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.
Parameters
Section titled “Parameters”Returns
Section titled “Returns”void