# SetCameraFOV

## Description

Sets the camera horizontal field of view (FOV). This determines the angle between the left and right of the camera view, the default being 70 and provides a realistic 3D projection. Using smaller values would look like the camera is zooming in on the scene without actually moving. This is sometimes used for dramatic effect in movies where the FOV zooms one way whilst the camera moves the other way. Using an FOV value of 0 is a special case that will generate an orthographic matrix instead of a projection matrix, this will make everything stay the same size no matter how near or far it is to the camera. The orthographic matrix will have a width of 40 world units with a height determined by the camera aspect ratio.

## Definition

SetCameraFOV( cameraID, fov )

void agk::SetCameraFOV( UINT cameraID, float fov )

## Parameters

- cameraID - The ID of the camera to modify, the main camera is ID 1.
- fov - The field of view in degrees.