SetMoveDestination for Camera object
by Clark Kromenaker · in Torque Game Engine · 02/05/2006 (7:24 pm) · 3 replies
Hi,
I'm using a free-moving camera from a resource and I wanted to implement some cinematic camera effects. One thing I'm having considerable trouble doing, however, is scripted movement of the camera object from one point to another, like the AIPlayer's setMoveDestination function. I've tried creating a function which manually shifts the camera's x,y, and z coords until its at the right spot, but its very jumpy; not quite what I want. Simply copying the AIPlayer's function to the camera object doesn't seem possible.
So, is there a way to do this? I'm not too familiar with how Torque moves objects in the engine code. I've also just tried using a AIPlayer object that the camera follows, but the AIPlayer is restricted by gravity, so that's no good.
I'm using a free-moving camera from a resource and I wanted to implement some cinematic camera effects. One thing I'm having considerable trouble doing, however, is scripted movement of the camera object from one point to another, like the AIPlayer's setMoveDestination function. I've tried creating a function which manually shifts the camera's x,y, and z coords until its at the right spot, but its very jumpy; not quite what I want. Simply copying the AIPlayer's function to the camera object doesn't seem possible.
So, is there a way to do this? I'm not too familiar with how Torque moves objects in the engine code. I've also just tried using a AIPlayer object that the camera follows, but the AIPlayer is restricted by gravity, so that's no good.
#2
02/06/2006 (11:34 am)
PathCamera is perfect for cutscenes (well, almost - it's splines could have a higher quality, but that's nitpicking). You don't even really need a path object to make it work, since you can manually feed it coordinates to follow.
#3
02/06/2006 (2:08 pm)
Thanks, that sounds like exactly the thing I need...I'll take a look at it right away.
Associate Kyle Carter
You may have to learn something about how Torque works and write some code to make this happen, I am afraid. ;) But it's not a super-hard problem.