In this recipe, we will use two keys to zoom in and zoom out of the scene. We will move the camera towards and away from one of the actors according to the key pressed by the user. The rendered view will show the effects of the camera’s movement.
We will use an existing project that has one key listener defined for
biff, one of the two characters we have been using from the Looking Glass Characters gallery.