WorldGravity()

Syntax

WorldGravity(Gravity.f [, x, y, z])
Description
Changes the gravity of the world when the physics engine is enabled with EnableWorldPhysics().

Parameters

Gravity The new gravity to set. The default gravity value is set to -9.806 (which is Earth's gravitational value).
x, y, z (optional) The gravity force vector to use, to change the gravity direction.

Return value

None.

See Also

EnableWorldPhysics()

Supported OS

All

<- WorldDebug() - Engine3D Index - WorldShadows() ->