Does anyone have an idea of how to code a camera that follows the player in a car for a certain distance and if the car gets to far ahead it zooms in, also if the car turn's left the camera show's the left side of car and goes back to following the player from a distance? Like in GTA San andreas!..
I have the started with this as reference
CAMERA_dist.z = -100; //-up+down
CAMERA_dist.y = -20;//side to side
CAMERA_dist.x = 300;//in and out