GetCameraRotation: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
| (2 intermediate revisions by the same user not shown) | |||
| Line 4: | Line 4: | ||
<syntaxhighlight lang="lua"> | <syntaxhighlight lang="lua"> | ||
local function getCameraRotation () | local CAM = getCamera()--The camera is always the same element, so use this local variable to save cpu power. | ||
return getElementRotation( | function getCameraRotation () | ||
return getElementRotation(CAM) --rx, ry, rz | |||
end | end | ||
</syntaxhighlight> | </syntaxhighlight> | ||
Latest revision as of 21:05, 27 June 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