Game Development Community

Stopping the camera from moving

by Dan Dias · in Torque Game Engine · 10/22/2004 (7:00 am) · 3 replies

This is my first post here... so please, be gentle :-)
I got a license to the Torque engine awhile ago and I've just now started to feel comfortable with it. Enough of the introduction... :-)

All I really want to know is where the code is that moves the camera with the player. (in third person view) If anyone knows that, it'd be very helpful! If not, how would I go about finding it. This would be even more helpful because I'm sure I'm going to be looking for more things within the engine code.

My current thought process reading through a lot of these posts is that somewhere it sets the camera to be controlled by the player as well. Am I right? Am I even close? haha

Thanks in advance!

#1
10/22/2004 (7:10 am)
Here's a few resources that change the way the camera works. They should help reveal where all the magic happens. Search for "Camera" under the resources section to find even more.

Advanced Camera:
www.garagegames.com/index.php?sec=mg&mod=resource&page=view&qid=5471

AdvancedCam Orbitmode Camera/Player Independant Rotation:
www.garagegames.com/index.php?sec=mg&mod=resource&page=view&qid=5934

Controlling a Separate Camera:
www.garagegames.com/index.php?sec=mg&mod=resource&page=view&qid=5500
#2
10/22/2004 (10:54 am)
Thanks for the quick response Owen!

I've explored those resources pretty well. And it's difficult, to really sort out what I want. Because I'm not familiar with the engine, since nothing specifically says: "This stops the camera from moving with the player", I've done a lot of guess and check work! I will go through them one more time when I get home from work. I'm open to any other suggestions though!
#3
10/22/2004 (12:12 pm)
I read through the advanced camera tutorial again on my lunch break. I'm not sure if I actually know more about the engine now, or I missed it in the first place. But it seems that in GameConnection::setControlObject I could change it so that nothing will control the camera. I'm not sure what to do exactly. But I will figure it out and post it back here so anyone else having the problem will know what to do.
Thanks again Owen!