- Documentation
- Client functions
- getCameraRenderMatrix
Function
getCameraRenderMatrix
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)