Skip to main content

world_set_gravity

Function world_set_gravity 

Source
pub fn world_set_gravity(world: &mut World, gravity: Vec2)
Expand description

Set the gravity vector for the entire world. Box2D has no concept of an up direction and this is left as a decision for the application. (b2World_SetGravity)