Procedure for writing the code in Listing 2
Begin by creating the comment shown in Listing 2 immediately below the code that you have already placed in the edit pane.
Select the camera in the object tree.
Drag the method tiles identified in Listing 2 into the edit pane below the comment.
Select the method parameters shown in Listing 2 for each case.
Listing 2. Set the camera to a known viewpoint.
|// Set the camera to a known viewpoint|
|camera .setPointOfView( ground );|
|camera .turn( RIGHT , 135/360 revolutions );|
|camera .moveAwayFrom( target = parkingMeter , amount = 10 meters );|
|camera .move( UP , 1.5 meters );|