self:get_transform

Client

Retrieves the camera's world-space transform as computed by the engine


Syntax

local transform = self:get_transform()

Parameters

No parameters are accepted by this function

Returns

TypeNameDescription
transform3dtransformCurrent camera transform in world space

Examples

Get the world-space transform of a camera
local entity = core.camera.create()
entity:set_active()

local transform = entity:get_transform()
core.engine.print("info", "Camera transform:", transform)

On this page