getWorldGravity()
ecs.physics.getWorldGravity(world)
Description
This is a simple getter function that returns the current force of gravity applied to every object in the scene. The return value might change depending on the time the function was executed.
Parameters
Parameter | Type | Description |
---|---|---|
world | number | World |
Returns
Number: current world gravity