Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • DownloadDownload
  • PrintPrint
Share this Page URL
Help

Chapter 1. XNA 3D Primer > Controlling the Camera

1.4. Controlling the Camera

The 3D camera is a never-ending source of questions on the XNA Creators Club forums. I'm going to tell you the secret to the camera that will make working with it a breeze. All that math stuff covered — ISROT, vector rotation, quaternions — applies to the camera the same way it applies to any 3D object.

1.4.1. Basic Camera

It's a good practice to isolate the camera logic into its own class, so I've modified the first example to use the Camera class in the following code:


  

You are currently reading a PREVIEW of this book.

                                                                                        

Get instant access to over
$1 million worth of books and videos.

  

Start a Free Trial