Game Development Reference
Scripting a Camera
In this chapter, we will be covering the following recipes:
F Configuring the engine and editor for a custom camera
F Writing the TutorialCamera class
F Camera properties and archetypes
F Creating a first person camera
F Creating a third person camera
F Creating a side-scrolling camera
F Creating a top-down camera
Cameras in UDK are an essential part of gameplay. They can simultaneously be one of the
most frustrating yet rewarding things to program, as once they are working correctly they
can completely change a player's experience, because you control their window to the world.
So with that, let's talk about cameras.
Understanding the camera
The camera system for UDK is comprised of three key classes: Camera , Pawn , and
PlayerController . All of these classes interact to control the rotation, position, and
special effects that should be applied to the player's camera during the course of a game.