Listing 9. Source code for the act2Setup method.

Penguins02's Code

Created by: Dick Baldwin

world

Methods

  public void act2Setup ( ) {
    
       // This is a transition into Act 2 which is not subdivided into
  // scenes
  // Spiral back in from 100 meters out in space over a 5-second
  // interval
  // Note: The difference in behavior between the pointAt method
  // and the turnToFace method is very subtle
  camera .pointAt( mama );
  doTogether {
       camera .moveToward( target = mama , amount = 100 meters ); duration = 5 seconds
  camera .roll( RIGHT , 3 revolutions ); duration = 5 seconds
  }
  // Turn the camera to face the hole
  camera .turnToFace( hole );
  }