Game development

Godot Camera2D bounds

Calculate the visible world rectangle for a centered, unrotated camera.

Your inputs

Start with an example

Your inputs stay in your browser.

Your result

Example result

How it works

Visible span = viewport size ÷ zoom. Subtract and add half that span around the effective camera center.

A 1280×720 viewport at zoom (2,2) shows 640×360 world units.

Limits

Use the effective rendered center after smoothing, offset and limits. Rotation, stretch transforms and top-left anchoring are excluded.