Chapter 14 ■ 3D MoDel hierarChy Creation: Using priMitives to Create a gaMe BoarD
Change your Java code referencing the box to reference Q1S1 using the following code, which is also
shown in Figure 14-3:
light.getScope().addAll(Q1S1);
Figure 14-2. Copy the primitive code to createGameBoardNodes(); delete everything except the instantiation
and .setMaterial
Figure 14-3. Be sure to change all referencing from the box to Q1S1 in createBoardGameNodes() and
addToSceneGraph()