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
| Type | Name | Description |
|---|---|---|
table | result | Camera's current world-space transform containing: • basis - table with x, y, z as vector3• origin - vector3 |
Examples
local entity = core.camera.create()
entity:set_active()
core.engine.print("info", "Camera transform:")
core.engine.iprint(entity:get_transform())