self:get_transform

Client

Retrieves the camera's current world-space transform


Syntax

local result = self:get_transform()

Parameters

No parameters are accepted by this function

Returns

TypeNameDescription
tableresultCamera's current world-space transform containing:
basis - table with x, y, z as vector3
origin - vector3

Examples

Get the camera transform
local entity = core.camera.create()

entity:set_active()
core.engine.print("info", "Camera transform:")
core.engine.iprint(entity:get_transform())

On this page