GetCameraFov
From MaratisWiki
(Difference between revisions)
(Created page with "Get the camera field of view. Camera = getObject("Camera") -- Scene update function onSceneUpdate() cFOV = getCameraFov(Camera) -- you can rename cFOV to...") |
Dahnielson (Talk | contribs) m |
||
| (3 intermediate revisions by one user not shown) | |||
| Line 1: | Line 1: | ||
| + | {{lua-function|getCameraFov|object}} | ||
| + | |||
Get the camera field of view. | Get the camera field of view. | ||
| + | |||
| + | {{lua-function-param|object|object to operate on}} | ||
Camera = getObject("Camera") | Camera = getObject("Camera") | ||
| Line 8: | Line 12: | ||
Advanced use in setCameraFov over here : [[http://wiki.maratis3d.org/index.php?title=SetCameraFov]] | Advanced use in setCameraFov over here : [[http://wiki.maratis3d.org/index.php?title=SetCameraFov]] | ||
| + | |||
| + | [[Category:Lua scripting]] | ||
| + | [[Category:Lua function]] | ||
| + | [[Category:Camera]] | ||
Latest revision as of 00:05, 9 February 2014
getCameraFov(object)
Get the camera field of view.
-
object: object to operate on
Camera = getObject("Camera")
-- Scene update
function onSceneUpdate()
cFOV = getCameraFov(Camera) -- you can rename cFOV to whatever you like
end
Advanced use in setCameraFov over here : [[1]]