# SetCameraOrthoWidth

## Description

If the camera FOV is set to 0 then this will determine the width of the orthographic view, the default is 40. The height value will be calculated from it based on the camera aspect ratio. When using an orthographic prjection everything remains the same size no matter how near or far it is to the camera, so when using the default width value, a cube of size 40 units would always fill the camera view when the camera is looking at it.

## Definition

SetCameraOrthoWidth( cameraID, width )

void agk::SetCameraOrthoWidth( UINT cameraID, float width )

## Parameters

- cameraID - The ID of the camera to modify, the main camera is ID 1.
- width - The width of the view in world coordinates.