Orbit camera distance?
by John Klima · in Torque Game Engine · 02/06/2006 (9:39 pm) · 3 replies
Hi all,
i'm working in stock 1.4 camera.cc and i'm trying to figure out how to set camera the camera distance in orbit mode, on the fly, with the mousewheel.
i have the mousewheel no problem, but how the heck can i set the distance in script??
this is for orbit mode specifically, but i'd like to vary my distance in 3rd person as well.
i created a console method in camera.cc to allow setting mCurOrbitDist hopeing that would magicaly work. but no.
any ideas?
thanks!
J
i'm working in stock 1.4 camera.cc and i'm trying to figure out how to set camera the camera distance in orbit mode, on the fly, with the mousewheel.
i have the mousewheel no problem, but how the heck can i set the distance in script??
this is for orbit mode specifically, but i'd like to vary my distance in 3rd person as well.
i created a console method in camera.cc to allow setting mCurOrbitDist hopeing that would magicaly work. but no.
any ideas?
thanks!
J
#2
and works in both orbit & regular mode.
02/10/2006 (10:34 am)
I found that mousewheel/FOV was a great combo,and works in both orbit & regular mode.
#3
i found the FOV trick doesn't really do the job. and what i want is not a change in FOV but an actual change in camera position in relation to observed object.
why the heck is this so difficult!!!! why is this not an expose parameter of the firggin camera!! (maybe it is and i'm just missing it)
j
02/10/2006 (11:08 am)
Thanks for repliesi found the FOV trick doesn't really do the job. and what i want is not a change in FOV but an actual change in camera position in relation to observed object.
why the heck is this so difficult!!!! why is this not an expose parameter of the firggin camera!! (maybe it is and i'm just missing it)
j
Torque 3D Owner Tom Perry