GetPhysicsCameraMaxTilt

Definition

double GetPhysicsCameraMaxTilt()

Description

This function returns the maximum tilt of physics camera attached to the main character. You can set the maximum physics camera tilt through the Main Character Properties dialog (Insert > Main Character) or the SetPhysicsCameraMaxTilt function.

Return Value

This function returns the maximum tilt of physics camera attached to the main character as a Double value in degrees.

Example

maxTilt = 0.0

function Init()
    maxTilt = GetPhysicsCameraMaxTilt()

    message = string.format("\nPhysics camera max tilt is > %.2f" ,maxTilt)
    PrintConsole(message)
end

function Update()

end
adminGetPhysicsCameraMaxTilt