b2CreateSegmentShape

Function b2CreateSegmentShape 

Source
pub unsafe extern "C" fn b2CreateSegmentShape(
    bodyId: b2BodyId,
    def: *const b2ShapeDef,
    segment: *const b2Segment,
) -> b2ShapeId
Expand description

Create a line segment shape and attach it to a body. The shape definition and geometry are fully cloned. Contacts are not created until the next time step. @return the shape id for accessing the shape