IsCameraOrtho

From MaratisWiki
(Difference between revisions)
Jump to: navigation, search
m
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 01: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.

Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox