In my game the camera looks down on the ground (top down view).
Now I want to be able to zoom, but no matter what I do it is always just zooming in and never out…
if(Input.GetAxis("Mouse ScrollWheel") != 0.0)
{
distance = (Input.GetAxis("Mouse ScrollWheel")) * zoomRate * Mathf.Abs(distance);
Camera.current.fieldOfView = distance;
}
Thats the code for zooming. I tried many other codes, I dont know why but the zoom always zooms in but never out, no matter how I scroll.