self:set_near_clip

Client

Sets the camera's near clip distance


Syntax

local status = self:set_near_clip(
    near_clip
)

Parameters

TypeNameDescription
floatnear_clipNear clip distance to apply
Objects closer than this distance will not be rendered

Returns

TypeNameDescription
boolstatustrue on successful execution, false otherwise

Examples

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

entity:set_near_clip(0.1)

On this page