281

Building a virtual universe
Building a universe example code

  • Build nodes and groups of nodes
    Shape3D myShape = new Shape3D( myGeom, myAppear );
    Group myGroup = new Group( );
    myGroup.addChild( myShape );

  • Add them to the branch group
    myBranch.addChild( myGroup );

  • Add the branch graph to the locale
    myLocale.addBranchGraph( myBranch );