b2Body_SetTargetTransform

Function b2Body_SetTargetTransform 

Source
pub unsafe extern "C" fn b2Body_SetTargetTransform(
    bodyId: b2BodyId,
    target: b2Transform,
    timeStep: f32,
)
Expand description

Set the velocity to reach the given transform after a given time step. The result will be close but maybe not exact. This is meant for kinematic bodies. The target is not applied if the velocity would be below the sleep threshold. This will automatically wake the body if asleep.