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


NameDescriptionType
posThe camera's positionVec2

Methods

---0

Set

set() None

Set the camera as the active camera.