Camera
A class for managing the camera's position and view in the scene.
Constructor
-
Camera() -
Camera(pos: Vec2) -
Camera(x: float, y: float)
Parameters
pos: The camera's initial position.x: The x-coordinate of the camera's initial position.y: The y-coordinate of the camera's initial position.
Properties
| Name | Description | Type |
|---|---|---|
pos | The camera's position | Vec2 |
Methods
---0
Set
set() → NoneSet the camera as the active camera.