R/cpSpace.R
cpSpaceAddShape.Rd
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)
space | [ |
---|---|
shape | [ |
C function prototype: CP_EXPORT void cpSpaceAddShape(cpSpace *space, cpShape *shape);