b2World_SetGravity

Function b2World_SetGravity 

Source
pub unsafe extern "C" fn b2World_SetGravity(
    worldId: b2WorldId,
    gravity: b2Vec2,
)
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. Usually in m/s^2. @see b2WorldDef