self:get_projection_matrix

Client

Retrieves the camera's current projection matrix


Syntax

local result = self:get_projection_matrix()

Parameters

No parameters are accepted by this function

Returns

TypeNameDescription
vector4[]result4x4 projection matrix as an array of 4 columns, each column being a vector4 (x, y, z, w)

Examples

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

entity:set_active()
core.engine.print("info", "Camera projection matrix:")
core.engine.iprint(entity:get_projection_matrix())

On this page