self:set_near_clip

Client

Sets the near clipping plane distance of the camera


Syntax

local status = self:set_near_clip(
    z_near
)

Parameters

TypeNameDescription
floatz_nearNear clipping distance to apply

Returns

TypeNameDescription
boolstatustrue on successful execution, false otherwise

Examples

Set the near clip distance of a camera
local entity = core.camera.create()

entity:set_near_clip(0.1)

On this page