self:set_fov

Client

Sets the field of view of the camera


Syntax

local status = self:set_fov(
    fov
)

Parameters

TypeNameDescription
floatfovField of view in degrees

Returns

TypeNameDescription
boolstatustrue on successful execution, false otherwise

Examples

Set the FOV of a camera
local entity = core.camera.create()

entity:set_fov(75)

On this page