Align the objects with the world
In an earlier lesson, you learned how to:
The code shown in Listing 1 will do that automatically.
You should recognize the syntax as being very similar to the syntax that you used to interactively call the same methods.
Listing 1. Align objects to the world.
// Align objects to the world |
ground .setPointOfView( world ); |
parkingMeter .setPointOfView( world ); |
iceSkater .setPointOfView( world ); |