IsCameraOrtho
From MaratisWiki
(Difference between revisions)
Dahnielson (Talk | contribs) |
Dahnielson (Talk | contribs) m |
||
(2 intermediate revisions by one user not shown) | |||
Line 1: | Line 1: | ||
+ | {{lua-function|isCameraOrtho|object|}} | ||
+ | |||
Check if camera is orthographic. | Check if camera is orthographic. | ||
+ | |||
+ | {{lua-function-param|object|object to operate on}} | ||
Camera = getCurrentCamera() | Camera = getCurrentCamera() | ||
Line 11: | Line 15: | ||
[[Category:Lua scripting]] | [[Category:Lua scripting]] | ||
+ | [[Category:Lua function]] | ||
+ | [[Category:Camera]] |
Latest revision as of 00:06, 9 February 2014
isCameraOrtho(object)
Check if camera is orthographic.
-
object
: object to operate on
Camera = getCurrentCamera() if isCameraOrtho(Camera) then -- Camera is orthographic else -- Camera is perspective end
To enable or disable orthographic view use enableCameraOrtho.