PathCamera help.
by Jermaine Morgan · in Torque Game Engine · 02/24/2008 (8:39 am) · 3 replies
I recently added the path camera resource.
http://www.garagegames.com/index.php?sec=mg&mod=resource&page=view&qid=9690
CAn someone tell me how to get the camera to switch to the player once it completes its path.
It just keeps going around the path, not stopping.
http://www.garagegames.com/index.php?sec=mg&mod=resource&page=view&qid=9690
CAn someone tell me how to get the camera to switch to the player once it completes its path.
It just keeps going around the path, not stopping.
About the author
#2
You can try something like:
02/25/2008 (3:33 pm)
Is the path itself set to IsLooping = "0"?You can try something like:
function LoopingCam::onNode( %this, %camera, %node) {
if (%node == %camera.loopNode) {
%camera.pushPath( %camera.path);
%camera.loopNode += %camera.path.getCount();
}
if (%node == (%camera.path.getCount() - 1)) {
// End of Path
}
}
#3
Thanks for that piece of advice.
Now can someone point me in the direction for the camera to focus on the player character.??
I am working on a slightly modded fps starter.
02/27/2008 (11:06 am)
Ok i feel stupid isLooping was set 1 instead of 0. I set it to 0 and that stopped the path.Thanks for that piece of advice.
Now can someone point me in the direction for the camera to focus on the player character.??
I am working on a slightly modded fps starter.
Torque Owner Jermaine Morgan
is there away to stop the path?