Game Development Community

GameCamera: a third person, aiming camera (that works!)

by Michael Bacon · in Torque Game Engine · 09/13/2007 (6:44 am) · 81 replies

Update: I have fixed the jitter and the issues I had with the network code. I think everything is working as it should be.


Well, I've been working on a new third person camera. I wanted the player to aim where my third person camera is looking.

This has been sought after by quite a few people including myself. I didn't find what I was looking for elsewhere so here is my attempt.

I've got the basics working. This camera was built on a HUGELY modified Advanced Camera but has pretty much grown into its own being. It is now called the GameCamera.

Features:
Third person camera
Player fires where camera is looking
The server controls where the camera should be


Caveats:
No server side interpolation is done (for instance if you switch targets the client side will interpolate the difference in like one tick but the server will have already been there. I hope to add this later.


Download here and add gameCamera.cc and gameCamera.h to your project in under the engine\game folder.

Video here shows the camera in action while fighting a bot.

------------------------------------------------

If you follow all the directions here (especially the one about setting the 'correctMuzzleVector = true' value on your weapon datablock) you will have a third person camera and a player that fires at the center of your screen.

------------------------------------------------

In order to implement the camera you need to make a few changes...
Page«First 1 2 3 4 5 Next»
#81
12/20/2011 (4:30 pm)
* Bump *

If you have a copy of this resource, please send me a copy to sorind1 at hotmail dot com.

Thank you.
Page«First 1 2 3 4 5 Next»