World:setGravity
EditSets the World's gravity. Gravity is a constant acceleration applied to all colliders. The default is (0, -9.81, 0) meters per second squared, causing colliders to fall downward.
Use Collider:setGravityScale to change gravity strength for a single collider.
Arguments
| Name | Type | Description |
| xg | number | The x component of the gravity force. |
| yg | number | The y component of the gravity force. |
| zg | number | The z component of the gravity force. |
Returns
Nothing
Notes
Kinematic colliders ignore gravity, since they are not moved by forces. Colliders with higher mass do not fall faster.