R/cpPolyShape.R
cpPolyShapeNew.Rd
Allocate 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);