Camera cam = Camera.main; float speed = 5f; cam.transform.position = Vector3.Slerp(cam.transform.position, target.transform.position, Time.deltaTime * speed);