Current camera position in world space.
Zoom level of the camera.
Centres the camera on a target object. With world bounds, follows the target's rendered centre and keeps the viewport within the rectangle where it fits. If the viewport is larger than the world on an axis, centres that axis.
The object to follow.
Width of the viewport in pixels.
Height of the viewport in pixels.
Optionalbounds: CameraBounds
Optional world rectangle with finite coordinates and non-negative dimensions.
Eases towards the target's rendered world centre using elapsed game time. With bounds, constrains the current origin and the destination before easing. An oversized axis centres immediately, including when elapsed time is zero.
Returns the current viewport bounds in world space.
Width of the viewport in pixels.
Height of the viewport in pixels.
An object representing the x, y, width, and height of the visible area.
Resets the camera position to the origin (0, 0) and zoom to 1.
Manages the viewport and transformation of the game world.