b2Shape_GetContactData

Function b2Shape_GetContactData 

Source
pub unsafe extern "C" fn b2Shape_GetContactData(
    shapeId: b2ShapeId,
    contactData: *mut b2ContactData,
    capacity: c_int,
) -> c_int
Expand description

Get the touching contact data for a shape. The provided shapeId will be either shapeIdA or shapeIdB on the contact data. @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