GetPhysicsGravity

Definition

double, double, double GetPhysicsGravity()

Description

This function returns the X, Y and Z components of physics gravity.

Return Values

X, Y and Z components of physics gravity.

Example

x = 0.0
y = 0.0
z = 0.0

function Init()
    x, y, z = GetPhysicsGravity()

    message = string.format("\nPhysics gravity is : (%.2f, %.2f, %.2f)" , x, y, z)
    PrintConsole(message)
end

function Update()

end
First, we get the X, Y and Z components of physics gravity. Then we display the results in the console using the PrintConsole function.
adminGetPhysicsGravity