Camera_SetZoom - MalisPierre/ModularGame GitHub Wiki
Description:
SetZoom Allow you to set the zoom of the Camera. In Perspective mode, the Zoom translate into the FieldOfView. In Orthographic mode, the Zoom translate into the Camera Size.
Parameters:
- Float Value : The Value of the Zoom.
Code Example:
function Update()
if Framework.Input.CheckInput(Framework.CreateKeyCode("P")) then
Framework.Camera.SetZoom(5.0)
elseif Framework.Input.CheckInput(Framework.CreateKeyCode("M")) then
Framework.Camera.SetZoom(15.0)
end
end