IsCameraOrtho
From MaratisWiki
(Difference between revisions)
Dahnielson (Talk | contribs) m |
Dahnielson (Talk | contribs) m |
||
Line 2: | Line 2: | ||
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.