self:get_projection_matrix

Client

Retrieves the camera's current projection matrix


Syntax

local matrix = self:get_projection_matrix()

Parameters

No parameters are accepted by this function

Returns

TypeNameDescription
projectionmatrixCurrent camera projection matrix

Examples

Get the projection matrix of a camera
local entity = core.camera.create()

local matrix = entity:get_projection_matrix()
core.engine.print("info", "Projection matrix:", matrix)

On this page