gameObjects.camera#

class gameObjects.camera.Camera(*args: Any, **kwargs: Any)#

Bases: GameObject

__init__(context, *args, **kwargs)#

Class that handles camera objects, Derived from GameObject Class

Parameters:
  • context (EmberEngine) – This is the main context of the application

  • *args

    Additional positional arguments to be passed to the parent class or other parts of the system

  • **kwargs

    Additional keyword arguments to be passed to the parent class or other parts of the system

property far: float#

Get the ‘far’ parameter

property fov: float#

Get the ‘field-of-view’ parameter

property near: float#

Get the ‘near’ parameter

onStart() None#

Executes whenever the object is added to scene

onUpdate() None#

Executes every frame, issuing draw commands

update_renderer_camera()#

If this camera is the current active one, update the projection matrix