Professional Documents
Culture Documents
they interact with each other, what is the color of the sky, how is defined the gravity, friction,
masses of the objects, etc. It defines the initial state of a simulation. The different objects are
called Nodes and are organized hierarchically in a Scene Tree. Therefore, a node may contain
sub-nodes. A world is stored in a file having the .wbt extension. The file format is derived from
the VRML97 language, and is human readable. The world files must be stored directly in a
directory called worlds.
Hands-on #2: Pause the current simulation by clicking on the Pause button of the 3D view
(see the user interface description to find out the buttons). The simulation is paused if the virtual
time counter on the main toolbar is stopped. Create a new project from the Wizards menu by
selecting the New Project Directory... menu item and follow the instructions:
Webots displays a list of directories and files it just created. This corresponds to the standard file
hierarchy of a Webots project. Click on the Finish (Windows, Linux) or Done (macOS) button
to close this window.
Congratulations, you just created your very first Webots world! The 3D view should display a
square arena with a checkered floor. You can move the viewpoint in the 3D view using the
mouse: left button, right button and the wheel.
Webots nodes stored in world files are organized in a tree structure called the scene tree. The
scene tree can be viewed in two sub-windows of the main window: the 3D view (at the center of
the main window) is the 3D representation of the scene tree and the scene tree view (on the left)
is the hierarchical representation of the scene tree. The scene tree view is where the nodes and
fields can be modified. It should currently list the following nodes:
Each node has some customizable properties called Fields. Let's modify these fields to change
the rectangle arena:
Hands-on #3: Double-click on the RectangleArena node in the scene tree. This should open the
node and display its fields.
1. Select the floorTileSize field and set its value to 0.25 0.25 instead of 0.5
0.5. You should see the effect immediately in the 3D view.
2. Select the wallHeight field and change its value to 0.05 instead of 0.1. The wall
of the arena should now be lower.
In the scene tree view, the fields are displayed in a different color (depending on the theme) if
they differ from their d