Geometries are the objects in your scene. They represent loaded models, characters, terrains, and all kinds of other visible objects.
Nodes are a typical means of grouping other nodes and geometries. The typical use case for nodes is transformation, where they are used as handles for groups of spatials. If you group a driver geometry and a car geometry by attaching them to a common vehicle node, you can move both of them by simply translating the vehicle node.
Another use case for nodes is rotation. Do you intend to rotate around the geometry's center, or around another point? If you intend to rotate around a non-central point, create an invisible pivot node and attach the geometry to it. Then, apply the rotation to the pivot node and not to the geometry itself.
The following example shows two
geometries rotated around a common, invisible center node, pivot
:
Add the following lines at the end of your
simpleInitApp()
method:Node pivot = new Node("pivot...