Game Development Community

How to shift to 3rd person camera?

by Cary Howe · in Torque Game Engine · 04/24/2007 (4:38 am) · 4 replies

I've been searching the forums and all the books I have but not having much luck. There's a lot of references to 3rd person camera but I can't find any info on repostioning the camera into an over the shoulder style 3rd person mode. Not sure if it's a scripting issue or if there's a manual way to do it? Since the player character is already in the scene it's just a matter of offsetting the camera. Obviously flying the camera around the player is a scripting problem just not sure with camera offset. I'll have to see if I can scrounge the forums for code to fly the camera.

#1
04/24/2007 (4:41 am)
If you look at the starter.fps scripts there are functions for doing this.

Start your search in default.bind.cs (in the clients\scripts folder). You need to find the function that gets called when the user presses TAB.

Cause in starter.fps hitting tab switches the camera from first person to third person and vice versa.

*EDIT for bad spelling(AGAIN ... LOL) and added in path to help *
#2
04/24/2007 (5:21 am)
Thanks. I wasn't even sure the command for to shift to 3rd person. Still scanning the script, mostly needed to know where it was buried. I was looking in things like the camera.cs.
#3
04/24/2007 (9:00 am)
Shifting the position would require either changing the camera node position in the model itself or editing the C++ source code. The only thing you can do via script is distance offsets.
#4
04/24/2007 (2:36 pm)
That's all I was after for now was the offset. Eventually I'm after flying the camera like in a WoW type game but that can be done down the line and I can hire some one to do that. Not the greatest scriptor/coder. Already Torque will swing above and below the player and I know MoM flies the camera, a little rough but it does it. WoW obviously does a very sweet camera move. It's one of my favorite parts of WoW.