b2Body_ApplyLinearImpulse

Function b2Body_ApplyLinearImpulse 

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

Apply an impulse at a point. This immediately modifies the velocity. It also modifies the angular velocity if the point of application is not at the center of mass. This optionally wakes the body. The impulse is ignored if the body is not awake. @param bodyId The body id @param impulse the world impulse vector, usually in Ns or kgm/s. @param point the world position of the point of application. @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.