• Add a controller to the world.

    The controller is a unit of computation modelled after Unity's MonoBehaviour. It is used to encapsulate the logic of the simulation. Controllers can be used to create robots, sensors, actuators, and other objects in the simulation.

    The controller should be added to the world using this function in order for the simulation to access the controller's logic.

    *This is a Utility function and should be called within init_simulation.

    Parameters

    • controller: Controller
    • world: World

    Returns void