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 projection 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 80 units would always fill the camera view when the camera is looking at it, since the 40 is measured from the center of the screen to the edge. This command will overwrite any values set with SetCameraBounds.

Definition

SetCameraOrthoWidth( cameraID, width )

Parameters