b2CreateCapsuleShape

Function b2CreateCapsuleShape 

Source
pub unsafe extern "C" fn b2CreateCapsuleShape(
    bodyId: b2BodyId,
    def: *const b2ShapeDef,
    capsule: *const b2Capsule,
) -> b2ShapeId
Expand description

Create a capsule 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, this will be b2_nullShapeId if the length is too small.