modules.world#

class modules.world.World(*args: Any, **kwargs: Any)#

Bases: Context

__init__(context) None#

Project manager

Parameters:

context (EmberEngine) – This is the main context of the application

addDefaultCamera() GameObject#
addDefaultCube() GameObject#
addDefaultLight() GameObject#
addEmptyGameObject() GameObject#
addGameObject(obj: GameObject) GameObject#
destroyAllGameObjects() None#
findGameObject(identifier: UUID | int | str | None = None) GameObject#

Try to find a gameObject by its uuid

Parameters:

identifier (Optional[Union[uid.UUID, int, str]) – This is a identifier of a gameObject that is looked for, datatype int : _uuid_gui, uid.UUID : uuid or str : name

Returns:

A GameObject object or None

Return type:

GameObject | None

removeGameObject(obj: GameObject)#