b2Body_ApplyTorque

Function b2Body_ApplyTorque 

Source
pub unsafe extern "C" fn b2Body_ApplyTorque(
    bodyId: b2BodyId,
    torque: f32,
    wake: bool,
)
Expand description

Apply a torque. This affects the angular velocity without affecting the linear velocity. This optionally wakes the body. The torque is ignored if the body is not awake. @param bodyId The body id @param torque about the z-axis (out of the screen), usually in N*m. @param wake also wake up the body