b2Body_GetContactData

Function b2Body_GetContactData 

Source
pub unsafe extern "C" fn b2Body_GetContactData(
    bodyId: b2BodyId,
    contactData: *mut b2ContactData,
    capacity: c_int,
) -> c_int
Expand description

Get the touching contact data for a body. @note Box2D uses speculative collision so some contact points may be separated. @returns the number of elements filled in the provided array @warning do not ignore the return value, it specifies the valid number of elements