IsCameraOrtho
From MaratisWiki
(Difference between revisions)
Dahnielson (Talk | contribs) |
Dahnielson (Talk | contribs) m |
||
(One intermediate revision 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() |
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.