Console

The console may be opened/closed by clicking the button at the bottom left of the infobar under the viewport. It is responsible for logging messages and displaying errors, most commonly from scripted components, but sometimes internally. You can output a message to the console from your script by calling the console.log() method:

console.log("Welcome Back!");
Console Log

You may also output an error message to the console by calling the console.error() method:

console.error("Invalid command.");
Console Error

The console.trace() method will output a message to your web browser’s developer console. You can drag the top of the window to expand the console. This will consequently make the height of the viewport smaller.

At the bottom right of the infobar under the viewport, the following information is displayed:

  • BODIES - The number of rigid bodies in the virtual world.
  • ENTITIES - The number of entities in the virtual world.
  • SPEED - The speed of the simulation.
  • TIME - The current time of the simulation.