Camera

Represents a 2D camera used for rendering.

Constructor

Represents a 2D camera used for rendering.

Properties


NameDescriptionType
posGet or set the camera's position.Vec2

Methods


Set

set() None

Set this camera as the active one for rendering.

Only one camera can be active at a time.