Allocate and initialize a box shaped polygon shape.
cpBoxShapeNew(body, width, height, radius)
body | [ |
---|---|
width | [ |
height | [ |
radius | [ |
[cpShape *
]
C function prototype: CP_EXPORT cpShape* cpBoxShapeNew(cpBody *body, cpFloat width, cpFloat height, cpFloat radius);