I am currently working on a very simple 3D tank game. So far all is good, I have a small BSP level, loaded and working, and a tank model which i have already programmed to move forward, backwards and yrotate left/right. I am having some camera problems though. I am using the
command position camera 1,object position x(tank),object position y(tank)+50,object position z(tank)+370 in a looped subroutine. This makes the camera follow the tank. My problem comes when I try to rotate the camera to stay behind the tank. Obviously, if the camera is behind the tank, and they both rotate say 45 degrees on the y angle, the camera view will miss the tank. What I need is a simple way to rotate the camera on a circle, so that it stays behind the tank. I can't figure out a way to rotate it on a point say +50 to the
z position of the camera. Any help would be apprieciated. Oh yes I am using DB Pro.
Thank you
Remember, a jedi's strength flows from the force...