# Getting familiar with &step;: the tutorials

The File Open Tutorial... menu action brings you a file dialog where you can load &step; built-in tutorials. There are five tutorials and you will progressively learn how to interact with each of &step; element. The best is to start with the first tutorial by clicking on the file `tutorial1.step`. This will display Tutorial 1 in &step;.

If you do not see the tutorial properly you can try to zoom in to display it better.

The World panel on the right lists all the objects you have on your scene. By clicking on an object here, the Properties panel below displays this object properties. You can change the properties here by clicking on the one you want to modify.

Each tutorial consists in some text presenting the new elements and explaining their properties. Then you are asked to change some properties of the elements in order to achieve a new result of the experiment.

## Tutorial 1: bodies and springs

This tutorial presents you bodies and springs and how to start your first simulation.

A physical body or body for short is an object which can be described by the theories of classical mechanics, or quantum mechanics, and experimented upon with physical instruments. This includes the determination of position, and in some cases the orientation in space, as well as means to change these, by exerting forces.

A spring is a flexible elastic object used to store mechanical energy.

Tutorial 1 experiment
Tutorial 1 experiment

The physical experiment in this tutorial represents two disks linked by a spring. Disks have an initial velocity in a tangential direction (the little blue arrow) and an acceleration (the red arrow) and springs have a stiffness and the length can be changed. Running the experiment you can see the disks being pulled and pushed by the spring. The tutorial invites you to modify the spring stiffness and also to try to change the system experiment.

At the end of this tutorial you should be more familiar with &step; interface and you should also be able to easily change bodies properties.

## Tutorial 2: controllers and graphs

You will learn more about controllers and graphs in this tutorial.

A controller is a device which allows you to graphically modify a property of a body or a spring. In the tutorial, the controller allows you to change the stiffness of the spring "spring1". By moving the slider to the right or using the W key you can increase spring1 stiffness value and by moving the slider to the left or using the Q key you can decrease it. Right-clicking on the controller brings you several context actions and the Configure Controller... dialog allows you to change each property of the controller.

Tutorial 2 experiment
Tutorial 2 experiment

Graphs allow you to graphically visualize the relationship between two variables. The example in the tutorial prints the evolution of the position of particle1 while time advances in world1. With a right click on a graph you can clear or delete the graph as well as edit the configuration dialog and change here all the properties for this graph.

At the end of this tutorial you are able to use controllers to act on your bodies properties and graphs to monitor specific properties in your experiment.

## Tutorial 3: rigid bodies and tracers

Tutorial 3 presents you rigid bodies and tracers.

A rigid body is an idealization of a solid body of finite size in which deformation is neglected. In other words, the distance between any two given points of a rigid body remains constant in time regardless of external forces exerted on it.

A tracer is a tool which shows the trajectory of a given point on a rigid body.

Disk properties
Disk properties

When a rigid body (here a disk) is selected you see three grey handlers on it. Using them by clicking on them and moving them, you can change the velocity, the angle and the angular velocity of the body.

Tutorial 3: 2 tracers
Tutorial 3: 2 tracers

The experiment in Tutorial 3 shows a disk and a box linked by a spring. A tracer (the blue one) is already on the box. You can add a second one: select Tracer in the Palette panel then click on the box on the point where you want the tracer to be. In the Properties panel, click on the color line and on the right of this line you can click on the blue square and a color palette appears: you can choose a new color for the tracer. The screenshot above shows two tracers after the simulation is run for a few seconds.

## Tutorial 4: motors and forces

You have two sorts of motors available in &step;: linear motors and circular motors. A linear motor applies a constant force to a given point on a body while a circular motor applies a constant angular momentum to a body.

Three different forces can be added to bodies: the weight force, the gravitation force and the Coulomb force. By default all forces are turned off in &step;. Coulomb force is a force which existed intrinsically between two charges.

Tutorial 4: Motors
Tutorial 4: Motors

In the experiment you have a disk and a box linked by a spring. A flat box at the bottom will make a boundary. The disk and the box both have a linear motor applied to them. Two controllers allow you to change the force value of each motor. Start the simulation and play with the controllers. Then stop the simulation and add a weight force in the world (forces are global and apply to the whole world). Restart the simulation and analyze the difference.

You can also remove the linear motor on the box and add a circular motor instead. Click on CircularMotor in the Palette panel and then click on the box. The circular motor is applied to the box. You then need to set the torque value by clicking and moving the grey handler of the motor.

Circular motor
Circular motor

This tutorial introduced you with motors and forces and you should now be able to add those to bodies.

## Tutorial 5: joints

Joints are objects that attaches bodies to each other or to the background. You have a the following joints in &step;: anchors, pins, sticks and ropes. An anchor is a joint that fixes position of the body. The body cannot move when it has an anchor. A pin is a joint that fixes one point of the body, the body can still move around the pin. A stick is a joint that fixes the distance between two points on two bodies.

Tutorial 5: double pendulum
Tutorial 5: double pendulum

Tutorial 5 describes a double pendulum.

Add a Particle to the scene then join this particle to Particle2 with a stick. Click on Stick on the Palette panel. You then need to select the first object attached to the stick (particle2) with the left mouse button then drag the mouse to the second object (particle3) and release the mouse button on particle3. You now have a triple pendulum!