Allocate and initialize a box shaped polygon shape.

cpBoxShapeNew(body, width, height, radius)

Arguments

body

[cpBody *]

width

[cpFloat]

height

[cpFloat]

radius

[cpFloat]

Value

[cpShape *]

Details

C function prototype: CP_EXPORT cpShape* cpBoxShapeNew(cpBody *body, cpFloat width, cpFloat height, cpFloat radius);