Just like other objects, you can rotate a camera to change the angle of your view. By using the RotateEntity command, you can specify the axis on which you want the rotation to occur. To test this out, we’re going to place a camera on top of our shape and rotate it so that it is facing downward. Replace the code under ;Create camera with the following:
; Create camera camera1 = CreateCamera() PositionEntity camera1,0,5,5 RotateEntity camera1,90,0,0
After you run the program, you’ll notice that you now have a view of the cylinder, as if you were on the ceiling looking down (see Figure 7.3).
Let’s take a closer look at the code to see how we created this.
PositionEntity camera1, ...