Your project manager brings you a diagram that illustrates how to show each spaceship to the player. The camera has to rotate around the model, as shown in the following diagram:
Now, we will take advantage of the transformations defined for the perspective camera. We will see how to move and rotate the camera around the model using Expression Blend:
1. Stay in the
3DInvadersXBAP
project.2. Change the perspective camera's properties to get a whole picture of the spaceship, as shown in the following screenshot:
4. Click on the Rotate tab and change the values for the Z angle. The camera will rotate and the scene will be rendered according to the new angle.
5. Click on the Translate tab and change the values for the X and Y axis. The camera will move to the new position and the scene will be rendered according to the new part of the whole 3D world that can be seen through the camera, as shown...