Function ambient_api_core::prelude::physics::set_gravity
source · pub fn set_gravity(gravity: Vec3)
Available on crate feature
server
only.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.