Garry's Mod Wiki

Revision Difference

Structures/CamData#516871

<cat>struct</cat> {{Structure⤶ |Description=Table structure used <page>GM:CalcView</page> and <page>GM:CalcVehicleView</page> hook.|Fields={{StructureField|Vector|origin|The camera's position}}{{StructureField|Angle|angles|The camera's angles}}{{StructureField|number|fov|The camera's FOV}}{{StructureField|number|znear|Distance to near clipping plane}}{{StructureField|number|zfar|Distance to far clipping plane}}{{StructureField|boolean|drawviewer|Set true to draw local players player model.|false}}{{StructureField|table|ortho|If set, enables orthographic mode. The table has following arguments:⤶ <structure>⤶ <description>Table structure used <page>GM:CalcView</page> and <page>GM:CalcVehicleView</page> hook.</description>⤶ <fields>{{StructureField|Vector|origin|The camera's position</fields>⤶ ⤶ </structure>⤶ ⤶ {{StructureField|Angle|angles|The camera's angles}}{{StructureField|number|fov|The camera's FOV}}{{StructureField|number|znear|Distance to near clipping plane}}{{StructureField|number|zfar|Distance to far clipping plane}}{{StructureField|boolean|drawviewer|Set true to draw local players player model.|false}}{{StructureField|table|ortho|If set, enables orthographic mode. The table has following arguments:⤶ * {{FuncArg|number|left}} * {{FuncArg|number|right}} * {{FuncArg|number|top}} * {{FuncArg|number|bottom}}|nil }} }}