My demonstration of the code I made in torque 3D to make the camera adjust its height automatically when the camera is moved in an RTS situation.
One note. you might notice that the camera does not readjust perfectly. This is because I used camera velocity to adjust and I was using a smoothed camera. If I used real x/y/z values it would jerk all over the show. This is a bug I will be working on, but I'm new to torque script.
http://stefan-heibel.blogspot.com/
Very very nice. :)
PewPewKapowie 6 months ago