Hardcoding camera pitch and yaw
by dudeBot · in Torque Game Engine · 08/15/2006 (7:44 am) · 3 replies
Hello all,
From what I can tell, it seems that $mvYaw and $mvPitch are increment/decrement
variables used to adjust the camera's pitch and yaw. I am interested in finding
out how to set the actual value itself, for example if the camera is in third person,
the pitch is set to a value that can not be changed. I've got the scripts set up
to no longer update $mvPitch when in first person but I can't figure out how to
set it to a value of my choice.
I'm looking at the Advanced Camera Resource by Thomas "Man of Ice" Lund
but was wondering if there was a way to do this without modifying the engine.
Thanks in advance for any help with this!
From what I can tell, it seems that $mvYaw and $mvPitch are increment/decrement
variables used to adjust the camera's pitch and yaw. I am interested in finding
out how to set the actual value itself, for example if the camera is in third person,
the pitch is set to a value that can not be changed. I've got the scripts set up
to no longer update $mvPitch when in first person but I can't figure out how to
set it to a value of my choice.
I'm looking at the Advanced Camera Resource by Thomas "Man of Ice" Lund
but was wondering if there was a way to do this without modifying the engine.
Thanks in advance for any help with this!
About the author
#2
Since I was more interested in the pitch I was thinking more about
the camera than the player. Anyway thanks for the info. I've done
the trig to tie a camera to an avatar in other engines where one has
direct access to the settings via scripts and have created custom
matrices for loading indentities in openGL, but this will be my first
crack at attempting to work with the source code for torque.
The Advanced Camera Resource seems like a good place to start
so hopefully I can find something there.
Thanks again.
08/16/2006 (3:55 am)
Thanks BurNinG.Since I was more interested in the pitch I was thinking more about
the camera than the player. Anyway thanks for the info. I've done
the trig to tie a camera to an avatar in other engines where one has
direct access to the settings via scripts and have created custom
matrices for loading indentities in openGL, but this will be my first
crack at attempting to work with the source code for torque.
The Advanced Camera Resource seems like a good place to start
so hopefully I can find something there.
Thanks again.
Torque Owner James Laker (BurNinG)
Not only the cameras' pitch/yaw.
Unfortunately, to change the camrea pitch with a variable, you will have to modify the engine.