Chipmunk2D Pro API Reference
7.0.0
|
Functions | |
cpPolyShape * | cpPolyShapeAlloc (void) |
Allocate a polygon shape. | |
cpPolyShape * | cpPolyShapeInit (cpPolyShape *poly, cpBody *body, int count, const cpVect *verts, cpTransform transform, cpFloat radius) |
Initialize a polygon shape with rounded corners. More... | |
cpPolyShape * | cpPolyShapeInitRaw (cpPolyShape *poly, cpBody *body, int count, const cpVect *verts, cpFloat radius) |
Initialize a polygon shape with rounded corners. More... | |
cpShape * | cpPolyShapeNew (cpBody *body, int count, const cpVect *verts, cpTransform transform, cpFloat radius) |
Allocate and initialize a polygon shape with rounded corners. More... | |
cpShape * | cpPolyShapeNewRaw (cpBody *body, int count, const cpVect *verts, cpFloat radius) |
Allocate and initialize a polygon shape with rounded corners. More... | |
cpPolyShape * | cpBoxShapeInit (cpPolyShape *poly, cpBody *body, cpFloat width, cpFloat height, cpFloat radius) |
Initialize a box shaped polygon shape with rounded corners. | |
cpPolyShape * | cpBoxShapeInit2 (cpPolyShape *poly, cpBody *body, cpBB box, cpFloat radius) |
Initialize an offset box shaped polygon shape with rounded corners. | |
cpShape * | cpBoxShapeNew (cpBody *body, cpFloat width, cpFloat height, cpFloat radius) |
Allocate and initialize a box shaped polygon shape. | |
cpShape * | cpBoxShapeNew2 (cpBody *body, cpBB box, cpFloat radius) |
Allocate and initialize an offset box shaped polygon shape. | |
int | cpPolyShapeGetCount (const cpShape *shape) |
Get the number of verts in a polygon shape. | |
cpVect | cpPolyShapeGetVert (const cpShape *shape, int index) |
Get the ith vertex of a polygon shape. | |
cpFloat | cpPolyShapeGetRadius (const cpShape *shape) |
Get the radius of a polygon shape. | |
cpPolyShape* cpPolyShapeInit | ( | cpPolyShape * | poly, |
cpBody * | body, | ||
int | count, | ||
const cpVect * | verts, | ||
cpTransform | transform, | ||
cpFloat | radius | ||
) |
Initialize a polygon shape with rounded corners.
A convex hull will be created from the vertexes.
cpPolyShape* cpPolyShapeInitRaw | ( | cpPolyShape * | poly, |
cpBody * | body, | ||
int | count, | ||
const cpVect * | verts, | ||
cpFloat | radius | ||
) |
Initialize a polygon shape with rounded corners.
The vertexes must be convex with a counter-clockwise winding.
cpShape* cpPolyShapeNew | ( | cpBody * | body, |
int | count, | ||
const cpVect * | verts, | ||
cpTransform | transform, | ||
cpFloat | radius | ||
) |
Allocate and initialize a polygon shape with rounded corners.
A convex hull will be created from the vertexes.