seika.camera

Camera2D

Engine representation of a 2D camera.

Properties

None.


Signals

None.


Methods

@staticmethod
set_zoom(zoom: seika.math.Vector2) -> None:

Sets the camera's zoom.

@staticmethod
get_zoom() -> seika.math.Vector2:

Gets the camera's zoom.

@staticmethod
set_viewport_position(zoom: seika.math.Vector2) -> None:

Sets the camera's viewport position.

@staticmethod
get_viewport_position() -> seika.math.Vector2:

Gets the camera's viewport position.

@staticmethod
set_offset(zoom: seika.math.Vector2) -> None:

Sets the camera's offset.

@staticmethod
get_offset() -> seika.math.Vector2:

Gets the camera's offset.


Camera3D

Engine representation of a 3D camera.

Properties

None.


Signals

None.


Methods

@staticmethod
move_left(speed: float) -> None:

Move the camera left by a certain speed.

@staticmethod
move_right(speed: float) -> None:

Move the camera right by a certain speed.

@staticmethod
move_up(speed: float) -> None:

Move the camera up by a certain speed.

@staticmethod
move_down(speed: float) -> None:

Move the camera down by a certain speed.

@staticmethod
add_yaw(speed: float) -> None:

Adds yaw to the camera to rotate based on the passed in speed.

@staticmethod
add_pitch(speed: float) -> None:

Adds pitch to the camera to rotate based on the passed in speed.