new Simulator(defaults)
Represents a Simulator.
Parameters:
Name | Type | Description |
---|---|---|
defaults |
Object | The default values to be used during setup |
- License:
- MIT
- Source:
Methods
addAxisHelper(options) → {Simulator}
Adds the axis helper.
Parameters:
Name | Type | Description |
---|---|---|
options |
Object | The options to be used during initialization |
Returns:
The Simulator
- Type
- Simulator
addGround(options) → {Simulator}
Adds the ground.
Parameters:
Name | Type | Description |
---|---|---|
options |
Object | The options to be used during initialization |
Returns:
The Simulator
- Type
- Simulator
addGUI() → {Simulator}
Adds the graphical user interface.
Returns:
The Simulator
- Type
- Simulator
addInfoBox() → {Simulator}
Adds the InfoBox.
Returns:
The Simulator
- Type
- Simulator
addLight(options) → {Simulator}
Adds the main light.
Parameters:
Name | Type | Description |
---|---|---|
options |
Object | The options to be used during initialization |
Returns:
The Simulator
- Type
- Simulator
addMainCamera(options) → {Simulator}
Adds the main camera.
Parameters:
Name | Type | Description |
---|---|---|
options |
Object | The options to be used during initialization |
Returns:
The Simulator
- Type
- Simulator
addRobotsManagers(options) → {Simulator}
Adds the robots' managers.
Parameters:
Name | Type | Description |
---|---|---|
options |
Object | The options to be used during initialization |
Returns:
The Simulator
- Type
- Simulator
initAltRenderer() → {Simulator}
Initializes the alternate renderer.
Returns:
The Simulator
- Type
- Simulator
initRenderer(options) → {Simulator}
Initializes the main renderer.
Parameters:
Name | Type | Description |
---|---|---|
options |
Object | The options to be used during initialization |
Returns:
The Simulator
- Type
- Simulator
initRenderStats() → {Simulator}
Initializes the Stats information block.
Returns:
The Simulator
- Type
- Simulator
initScene() → {Simulator}
Initializes the scene.
Returns:
The Simulator
- Type
- Simulator
initSimulation()
Initializes the whole simulation.
onUpdate()
Loops on the robots' managers, calling the update() method for each of them.