Well I was bored at school today so I decided to write a basic 3rd person camera, using Star Wars Galaxies style controls. For those who don't know what the control is like, basically there is a small box area in the center of the screen where the mouse is free to move. If it moves outside of this box the camera rotates around the character.
You can download the project here: http://members.rogers.com/jamiegoodfellow/3rdPersonCamera.zip
or the Exe here: http://members.rogers.com/jamiegoodfellow/3rdPersonCameraExe.zip
After downloading, copy sydney.bmp
, and map-20kdm2.pk3
to your project's working directory, or the same directory as the Exe. You'll also have to get irrlicht.dll yourself, version 0.4.2 (Don't want to waste too much of my web space). There's no error checking or anything, so the executable will crash if these aren't in the correct location.
Mouse movement: rotate camera
+/- keys: Zoom in/out
Arrow Keys: Move Sydney
Caveat: You have to hold down the arrow key for a second or two before Sydney really starts to move. I just hacked together some movement code after finishing the camera code to get everything working, so movement isn't the greatest.