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
| Type | Name | Description |
|---|---|---|
vector4[] | result | 4x4 projection matrix as an array of 4 columns, each column being a vector4 (x, y, z, w) |
Examples
local entity = core.camera.create()
entity:set_active()
core.engine.print("info", "Camera projection matrix:")
core.engine.iprint(entity:get_projection_matrix())