EnableCameraOrtho
(Difference between revisions)
Dahnielson (Talk | contribs) m |
Dahnielson (Talk | contribs) m |
||
| Line 2: | Line 2: | ||
Enable or disable orthographic view. | Enable or disable orthographic view. | ||
| + | |||
| + | {{lua-function-param|object|object to operate on}} | ||
| + | {{lua-function-param|bool|true or false to enable and disable}} | ||
Camera = getCurrentCamera() | Camera = getCurrentCamera() | ||
Revision as of 00:09, 9 February 2014
enableCameraOrtho(object, bool)
Enable or disable orthographic view.
-
object: object to operate on -
bool: true or false to enable and disable
Camera = getCurrentCamera() -- Use orthographic view enableCameraOrtho(Camera, true) -- Use perspective view enableCameraOrtho(Camera, false)
To check if camera is orthographic use isCameraOrtho.