I was wondering of making a realistic sprinting function? When the player sprints, the camera zooms out. or I could just add an animation to the camera
Hi, if it is a 3rd person view game with the camera following the player, you could just do lazy follow like:
camera.position = Vector3.Lerp(camera.position, character.position, Time.deltaTime * cameraSpeed);
So if the character starts sprinting, the camera will smoothly fall behind a bit.