O'Reilly logo

UnrealScript Game Programming Cookbook by Dave Voyles

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Creating a first person camera

While a first person camera comes standard with UDK, we've crafted a camera system that is modular, and allows us to easily adjust our perspective while still avoiding clipping through objects.

We'll take all that we've learned from our previous lessons and apply it to this one. We'll be hardcoding a first person camera, based on the property values I've found to be consistent with what we are looking for.

Getting ready

Our next few lessons will all require one similar change, all of which will occur with TutorialPlayerCotroller class. Under defaultproperties, we'll need to change the following:

CameraClass = Class'Name_Of_Camera_Class'

So, for this tutorial it should read as follows:

CameraClass = Class'FirstPersonCam' ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required