3D Game Programming

(C. Jardin) #1

Figure 5—Everything Starts Spinning!


Figure 6—The Camera Spinning with the Avatar


We’ll add an avatar position marker to the game.


If we lock both the camera and the avatar to this marker, then moving the
marker moves both the avatar and the camera.

report erratum • discuss

Moving the Camera with the Avatar • 45


Prepared exclusively for Michael Powell

Free download pdf