

The aim of this subsection is to learn how to set some simple physics properties for a Solid node. %figure "Representation of the subnodes of a compound solid made of several transformed geometries."

The weights can be moved at the handle extremities thanks to the translation field of their Transform nodes. The weights should have a radius of 0.03 m and a subdivision of 2. The handle should have a length of 0.1 m and a radius of 0.01 m. Hands on: Create the dumbbell by following the figure.Ĭreate the handle first without placing it in a Transform node (so the handle axis will have the same direction as the y-axis of the solid). This figure depicts the Solid nodes and its subnodes required to implement the dumbbell. We want to implement a dumbbell made of a handle (Cylinder) and of two weights (Sphere) located at each end of the handle. Group nodes can also be used to group several subnodes. Moreover each Shape node can be placed in a Transform node in order to change its relative position and orientation. In fact, both the physical and the graphical properties of a Solid can be made of several Shape nodes. It is possible to build Solid nodes more complex than what we have seen before by aggregating Shape nodes. Hands on: Start from the results of the previous tutorial and create a new simulation called "compound_solid.wbt" by using the menu File / Save World As. %figure "Expected result at the end of the tutorial about compound solids." The expected result is depicted in this figure.

The aim of this chapter is to explore in more detail the physics simulation by creating a solid with several bounding objects: a dumbbell made of two spheres and one cylinder. Tutorial 5: Compound Solid and Physics Attributes (15 Minutes)
