Add a collision shape to the simulation. If the shape is attached to a static body, it will be added as a static shape.

cpSpaceAddShape(space, shape)

Arguments

space

[cpSpace *]

shape

[cpShape *]

Details

C function prototype: CP_EXPORT void cpSpaceAddShape(cpSpace *space, cpShape *shape);