self:is_position_behind

Client

Checks whether a world-space position is behind the camera's near plane


Syntax

local result = self:is_position_behind(
    position
)

Parameters

TypeNameDescription
vector3positionWorld-space position to check as {x, y, z}

Returns

TypeNameDescription
boolresulttrue if the position is behind the camera, false otherwise

Examples

Check if a point is behind the camera
local entity = core.camera.create()
entity:set_active()

core.engine.print("info", entity:is_position_behind({0, 0, 10}))

On this page