Game Development Community

Camera

by Brian · in Torque Game Engine · 04/12/2008 (8:06 pm) · 4 replies

Is there a way to attach the camera to some other object besides the player? I am really lost on how to do this but it seems possible since the demo has the pathed camera. Can anyone point me to where in the demo script it does this or if there is a console command that can do this?

#1
04/13/2008 (7:04 am)
You should check out the Advanced Camera Resource, just do a search for it. Once you implement it you should (I'm not going to swear to it) give it a control object that isn't a player. Just an FYI even though on the resource page you might think you have to make a bunch of changes to get it working but they have already been done so you just need to add to the engine and compile, overall pretty straight forward.
#2
04/13/2008 (8:35 pm)
Okay, so if I'm understanding right, TGE 1.5.2 does not need any other modifications other than dropping the .h and .cc files into the engine/game folder, then adding both in Visual studio to the Source Files/game folder. After compiling, I should be able to instantiate an advanced camera object through script, correct?
#3
04/14/2008 (5:57 am)
Yup thats how it works.
#4
04/14/2008 (10:39 am)
I was able to get it to work last night. Thanks for the help guys.