Allocate and initialize a polygon shape with rounded corners. A convex hull will be created from the vertexes.

cpPolyShapeNew(body, count, verts, transform, radius)

Arguments

body

[cpBody *]

count

[int]

verts

[cpVect *]

transform

[cpTransform *]

radius

[cpFloat]

Value

[cpShape *]

Details

C function prototype: CP_EXPORT cpShape* cpPolyShapeNew(cpBody *body, int count, const cpVect *verts, cpTransform transform, cpFloat radius);