Now we will add another mechanical object, with its own mass. It will be placed below the ODE solver in the scene graph, so it will be taken into account during the simulation step.
During the first part of this tutorial, we described how to create a mechanical object. We use the same SOFA components, MechanicalObject and UniformMass, to create our second object.
Find the GNode component at the bottom of the Modeler window. Drag and drop it onto the root node.
Double click the new node, and change the Object Name to "SecondObject".
Find the MechanicalObject component using the Filter. Drag and drop it on the Second Object node. Repeat with the UniformMass component.
Double click the new MechanicalObject and go to the Vector 1/4 tab. Under position, change the X coordinate to "2".
We have created one new particle, and placed it at position (2, 0, 0).
There now three particles: 2 belonging to the first object, and a third from the second object we just created. As no interaction exists between the two objects, the particles fall according to gravity.