self:set_projection

Client

Sets the camera's projection mode


Syntax

local status = self:set_projection(
    mode
)

Parameters

TypeNameDescription
core.camera.projectionmodeProjection mode to apply

Returns

TypeNameDescription
boolstatustrue on successful execution, false otherwise

Examples

Set the camera to orthogonal projection
local entity = core.camera.create()

entity:set_projection(core.camera.projection.ORTHOGONAL)

On this page