GetCameraRotation: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
(6 intermediate revisions by 4 users not shown) | |||
Line 1: | Line 1: | ||
__NOTOC__ | __NOTOC__ | ||
{{Client function}} | {{Client function}} | ||
{{ | {{Warning|'''This function no longer exists'''. However, below is a function that achieves a similar result.|true}} | ||
'''This function no longer exists | |||
<syntaxhighlight lang="lua"> | <syntaxhighlight lang="lua"> | ||
local | 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 | end | ||
</syntaxhighlight> | </syntaxhighlight> | ||
Line 17: | Line 12: | ||
==See Also== | ==See Also== | ||
{{Camera functions}} | {{Camera functions}} | ||
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