Skip to main content

create_compound_shape

Function create_compound_shape 

Source
pub fn create_compound_shape(
    world: &mut World,
    body_id: BodyId,
    def: &ShapeDef,
    compound: &CompoundData,
) -> ShapeId
Expand description

(b3CreateCompoundShape)

Compounds must be on static non-sensor bodies. Materials are copied from the compound geometry into the shape (see [create_shape_internal]).