SetCameraFov

From MaratisWiki
Revision as of 01:47, 11 April 2012 by Vegas (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Change the camera field of view.

Example, Press Up & Down to change the Camera Field of view :

   Camera = getObject("Camera")
   -- Scene update
   function onSceneUpdate()
       cFOV = getCameraFov(Camera)
       if isKeyPressed("DOWN") then setCameraFov(Camera, cFOV+0.5) end	 	
       if isKeyPressed("UP") then setCameraFov(Camera, cFOV-0.5) end	 		
   end
Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox