I have a smooth look at script attached to my camera, I’d like the camera to zoom in as the player gets further away and zoom out when the player gets closer.
Any scripts out there or ideas how to set this up?
Thanks ![]()
I have a smooth look at script attached to my camera, I’d like the camera to zoom in as the player gets further away and zoom out when the player gets closer.
Any scripts out there or ideas how to set this up?
Thanks ![]()
What you need to do is take the distance between the camera and the looked at objects and scale the cameras fieldOfView based on that value.