R/cpPolyShape.R
cpPolyShapeNew.RdAllocate and initialize a polygon shape with rounded corners. A convex hull will be created from the vertexes.
cpPolyShapeNew(body, count, verts, transform, radius)
| body | [ |
|---|---|
| count | [ |
| verts | [ |
| transform | [ |
| radius | [ |
[cpShape *]
C function prototype: CP_EXPORT cpShape* cpPolyShapeNew(cpBody *body, int count, const cpVect *verts, cpTransform transform, cpFloat radius);