Class: Simulator

Simulator

new Simulator(defaults)

Represents a Simulator.
Parameters:
Name Type Description
defaults Object The default values to be used during setup
Author:
  • Loris Tissino (http://loris.tissino.it)
License:
  • MIT
Source:

Methods

addAxisHelper(options) → {Simulator}

Adds the axis helper.
Parameters:
Name Type Description
options Object The options to be used during initialization
Source:
Returns:
The Simulator
Type
Simulator

addGround(options) → {Simulator}

Adds the ground.
Parameters:
Name Type Description
options Object The options to be used during initialization
Source:
Returns:
The Simulator
Type
Simulator

addGUI() → {Simulator}

Adds the graphical user interface.
Source:
Returns:
The Simulator
Type
Simulator

addInfoBox() → {Simulator}

Adds the InfoBox.
Source:
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
Source:
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
Source:
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
Source:
Returns:
The Simulator
Type
Simulator

initAltRenderer() → {Simulator}

Initializes the alternate renderer.
Source:
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
Source:
Returns:
The Simulator
Type
Simulator

initRenderStats() → {Simulator}

Initializes the Stats information block.
Source:
Returns:
The Simulator
Type
Simulator

initScene() → {Simulator}

Initializes the scene.
Source:
Returns:
The Simulator
Type
Simulator

initSimulation()

Initializes the whole simulation.
Source:

onUpdate()

Loops on the robots' managers, calling the update() method for each of them.
Source: