CameraFOVManager

This script handles FOV for different movement states such as running, walking or wallrunning.

  • Player: Reference to our player ( Rigidbody ).

SetFOV ( float fov )

If allowed ( Not aiming ), sets the fov to the defined value. Uses the default lerpSpeed.

  • fov: Target field of view.

SetFOV ( float fov, float speed )

If allowed ( Not aiming ), sets the fov to the defined value.

  • fov: Target field of view.

  • speed: Override the lerp speed of the camera. ( Speed to go from the current FOV to the default FOV ).

ForceAddFOV ( float fov)

Whether allowed or not, adds a desired value to the current field of view.

  • fov: field of view value to add to the current fov.

Last updated