self:is_position_in_frustum
Client
Checks whether a world-space position is within the camera's view frustum
Syntax
local result = self:is_position_in_frustum(
position
)Parameters
| Type | Name | Description |
|---|---|---|
vector3 | position | Position in world space to check |
Returns
| Type | Name | Description |
|---|---|---|
bool | result | true if the position is within the camera's view frustum, false otherwise |
Examples
local entity = core.camera.create()
entity:set_active()
core.engine.print("info", entity:is_position_in_frustum({0, 0, -5})) -- true