hi all!
I have a problem with camera movement for car games.. when the car is moving in a straight line i want the camera to follow it at a particular distance and when it turns i want to be able to view a little of its side when its turning (a la the 3rd person camera of player_drive)..

i used the circular movement code i.e 'my.x-100*cos(my.pan)' and 'my.y-100*sin(my.pan)'.. it works well but it always shows the same view i.e. the butt of the car, so that it looks like a 2-D sprite moving in a 3d-world.. in other words, looks weird!!

can any1 pls give a hint as to how to script a camera like the 3rd person camera in player_drive.. just a hint, don't give the soln, i'll try to do it..
circular movement is enough for me, i don't want spherical movement.. i.e. camera.z = my.z is good enough..

thanks in advance!