A GroupNode is a subclass of ScenegraphNode that holds a list of ScenegraphNode children. Since . A GroupNode can be a child of another GroupNode and thus be used to create hierarchical scene graphs.
Add a moon and a box models to the group.
// Add objects to the group
group.add(moon, box);Add a moon and a box models to the group. Then remove them.
// Add objects to the group
group.add(moon, box);
// Remove the moon
group.remove(moon);Model extends the ScenegraphNode class and inherits the transformation matrix properties from that class.
Create an instance of GroupNode.
Updates properties.
Add one or more ScenegraphNode objects to the GroupNode.
group.add(model);
A variable argument list of ScenegraphNode instances.
Removes an ScenegraphNode object from the GroupNode.
group.remove(model);