b2Body_ApplyLinearImpulseToCenter

Function b2Body_ApplyLinearImpulseToCenter 

Source
pub unsafe extern "C" fn b2Body_ApplyLinearImpulseToCenter(
    bodyId: b2BodyId,
    impulse: b2Vec2,
    wake: bool,
)
Expand description

Apply an impulse to the center of mass. This immediately modifies the velocity. The impulse is ignored if the body is not awake. This optionally wakes the body. @param bodyId The body id @param impulse the world impulse vector, usually in Ns or kgm/s. @param wake also wake up the body @warning This should be used for one-shot impulses. If you need a steady force, use a force instead, which will work better with the sub-stepping solver.