ServersYour serverFor creatorsForumFAQDocumentationSecurity
Download the launcher
  1. Documentation
  2. Client functions
  3. getCameraRenderMatrix

Function

getCameraRenderMatrix

ClientDrawing (dx)Trilogy Hub only

Returns the camera placement: x, y, z, the target, roll and field of view. For a camera attached to an element it gives the spot of the last shot.

Syntax

float, float, float, float, float, float, float, float getCameraRenderMatrix(element camera)

Arguments

cameraelement
The camera.

Returns

x, y, z, lx, ly, lz, roll, fov or false.

Example

local cam = createCameraRender(256, 256)
local x, y, z = getCameraRenderMatrix(cam)

See also