WorldGravity()

Syntax

WorldGravity(Gravity.f)
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).

Return value

None.

See Also

EnableWorldPhysics()

Supported OS

All

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