### Creation of a Pendulum (1/8)

Description

The objective of this small step by step tutorial is to discover the basic components used with SOFA, how they interact, and how you can configure them. We will create a pendulum made of two object, and two different springs. We will not go into the details about the template parameter of the mechanical states, nor the forcefields used.

Press the Edit in Modeler button at the top of the window.

This will show the scene graph for our initial basic scene in the Modeler window.

Key points
We used 3 components:

- A Node "FirstObject" to store the components describing the object we want to simulate. It is important that the hierarchy of the nodes in the scene graph reflects the scene you want to model.
- The shape is modeled using a MechanicalObject which describes the particle states.
- A UniformMass is added for the MechanicalObject, giving the same mass for each particle of the MechanicalObject.

Hold the cursor over the button with the SOFA logo on the far right of the Modeler toolbar.

The tooltip will say Run in SOFA.

Press this Run in SOFA button.

This will open the scene described by the scene graph in SOFA. In SOFA, you can see one Particle represented by a white dot. (Note: you may need to select "Behavior" in the View table in order to see the scene).

Results

Press the Animate button.

You will see that nothing happens. In the next step we will see why.

### Next