IsCameraOrtho
From MaratisWiki
(Difference between revisions)
(Created page with "Check if camera is orthographic. Camera = getCurrentCamera() if isCameraOrtho(Camera) then -- Camera is orthographic else -- Camera is perspective end To enabl...") |
Dahnielson (Talk | contribs) m |
||
(3 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 9: | Line 13: | ||
To enable or disable orthographic view use [[enableCameraOrtho]]. | To enable or disable orthographic view use [[enableCameraOrtho]]. | ||
+ | |||
+ | [[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.