GetCameraRotation: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 4: | Line 4: | ||
<syntaxhighlight lang="lua"> | <syntaxhighlight lang="lua"> | ||
local cam = getCamera()--The camera is always the same element, so use this local variable to save cpu power. | |||
function getCameraRotation () | function getCameraRotation () | ||
return getElementRotation( | return getElementRotation(cam) --rx, ry, rz | ||
end | end | ||
</syntaxhighlight> | </syntaxhighlight> |
Revision as of 17:22, 9 February 2018
local cam = getCamera()--The camera is always the same element, so use this local variable to save cpu power. function getCameraRotation () return getElementRotation(cam) --rx, ry, rz end
See Also
- fadeCamera
- getCameraInterior
- getCameraMatrix
- getCameraTarget
- setCameraInterior
- setCameraMatrix
- setCameraTarget