Garry's Mod Wiki

CamData

Description

Table structure used GM:CalcView and GM:CalcVehicleView hook.

Members

Vector origin
The camera's position
Angle angles
The camera's angles
number fov
The camera's FOV
number znear
Distance to near clipping plane
number zfar
Distance to far clipping plane
boolean drawviewer
Set true to draw local players player model.

Default: false

table ortho
If set, enables orthographic mode. The table has following arguments:

Each describes where their border starts, (left+right) and (top+bottom) should equal 0 to center on the view position.

Default: nil