Now, your project manager wants to view the spaceship rotating in a Silverlight application. However, as you have learned about cameras, he wants you to create the rotation effect through the camera and not by rotating the model.
Luckily, Balder offers a simple
Camera class that allows us to control the position and the target without the need to make complex math calculations:
// The camera's angle expressed in radians private double _cameraAngleRadians = 0;
LoadContentmethod with the following:
// Define ...