Gta

How cam i make a simple system that the character cam get cars?

the cam script should look like this - here you can change the target (player car etc) so it will look good

 public Transform myTarget;
 public float mySpeed; //the faster the car/player moves the higher the cam moves to make a better view - here I assume the speed is 0-1

 public float SmoothCam = 0.1f;

 public float defaultHigh = 10;
 public float additonHigh = 5;


void Update
{
 Vector3 tmpPos = myTarget.position;
 tmpPos.y += defaultHigh + (additonHigh * mySpeed)
 myCamera.transform.position = Vector3.Lerp (myCamera.transform.position, tmpPos,SmoothCam);
}

something like that :slight_smile: but as fas as I remember there was a threat about it :slight_smile: