Skip to main content

create_chain

Function create_chain 

Source
pub fn create_chain(
    world: &mut World,
    body_id: BodyId,
    def: &ChainDef,
) -> ChainId
Expand description

Create a chain shape: a sequence of chain segments attached to a body. The def must have at least 4 points. (b2CreateChain)