Camera_SetPerspective - MalisPierre/ModularGame GitHub Wiki

Camera.SetPerspective(Void)


Description:

SetPerspective Allow you to set the Camera to Perspective Mode. Usefull for 3d Games.


Parameters:

  • Void

Code Example:

function Update()
	if  Framework.Input.CheckInput(Framework.CreateKeyCode("P")) then
		Framework.Camera.SetOrthographic()
        elseif  Framework.Input.CheckInput(Framework.CreateKeyCode("M")) then
                Framework.Camera.SetPerspective()
        end
end