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
| Type | Name | Description |
|---|---|---|
transform3d | transform | Current camera transform in world space |
Examples
local entity = core.camera.create()
entity:set_active()
local transform = entity:get_transform()
core.engine.print("info", "Camera transform:", transform)