Initialize the simulation world. This function is to be called before the robot code.
This function is used to describe the simulation environment and the controllers.
The callback function takes in no parameters and returns a world created by createWorld.
The world should be configured with the physics, renderer, timer and console.
The controllers should be added to the world using addControllerToWorld.
The world should be saved to the context using saveToContext.
Parameters
worldFactory: (() => World)
A callback function that returns the world object. Type signature: () => World
Initialize the simulation world. This function is to be called before the robot code. This function is used to describe the simulation environment and the controllers.
The callback function takes in no parameters and returns a world created by createWorld. The world should be configured with the physics, renderer, timer and console. The controllers should be added to the world using addControllerToWorld. The world should be saved to the context using saveToContext.