pub fn set_gravity(gravity: Vec3)
Expand description

Sets the gravity of the entire world to gravity. The default gravity is vec3(0.0, 0.0, -9.82).

This can be used to simulate a different gravity from Earth’s, or to create unconventional gameplay.