EnableCameraOrtho
(Difference between revisions)
Dahnielson (Talk | contribs) |
Dahnielson (Talk | contribs) m |
||
| Line 1: | Line 1: | ||
| + | {{lua-function|enableCameraOrtho|object, bool}} | ||
| + | |||
Enable or disable orthographic view. | Enable or disable orthographic view. | ||
Revision as of 17:18, 8 February 2014
enableCameraOrtho(object, bool)
Enable or disable orthographic view.
Camera = getCurrentCamera() -- Use orthographic view enableCameraOrtho(Camera, true) -- Use perspective view enableCameraOrtho(Camera, false)
To check if camera is orthographic use isCameraOrtho.