self:get_fov

Client

Retrieves the field of view of the camera


Syntax

local fov = self:get_fov()

Parameters

No parameters are accepted by this function

Returns

TypeNameDescription
floatfovCurrent field of view in degrees

Examples

Get the field of view of a camera
local entity = core.camera.create()

core.engine.print("info", "FOV:", entity:get_fov())

On this page