C4 Engine
C4 Engine API Documentation

FrustumCameraObject::SetProjectionDistance

Defined in:  C4CameraObjects.h
Sets the projection distance.
Prototype

void SetProjectionDistance(float projection);

Parameters
projection The new projection distance.
Description
The SetProjectionDistance function sets the distance to the projection plane for the camera to the value specified by the projection parameter. The projection distance g is related to the vertical field of view (FOVy) through the equation

g = 1 / tan(FOVy / 2).
See Also

FrustumCameraObject::GetProjectionDistance