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
| Type | Name | Description |
|---|---|---|
projection | matrix | Current camera projection matrix |
Examples
local entity = core.camera.create()
local matrix = entity:get_projection_matrix()
core.engine.print("info", "Projection matrix:", matrix)