|
Chipmunk
6.0.3
Chipmunk API Reference for Kobold2D developers
|
Data Structures | |
| struct | cpPolyShapeAxis |
| struct | cpPolyShape |
Functions | |
| cpPolyShape * | cpPolyShapeAlloc (void) |
| Allocate a polygon shape. | |
| cpPolyShape * | cpPolyShapeInit (cpPolyShape *poly, cpBody *body, int numVerts, cpVect *verts, cpVect offset) |
| cpShape * | cpPolyShapeNew (cpBody *body, int numVerts, cpVect *verts, cpVect offset) |
| cpPolyShape * | cpBoxShapeInit (cpPolyShape *poly, cpBody *body, cpFloat width, cpFloat height) |
| Initialize a box shaped polygon shape. | |
| cpPolyShape * | cpBoxShapeInit2 (cpPolyShape *poly, cpBody *body, cpBB box) |
| Initialize an offset box shaped polygon shape. | |
| cpShape * | cpBoxShapeNew (cpBody *body, cpFloat width, cpFloat height) |
| Allocate and initialize a box shaped polygon shape. | |
| cpShape * | cpBoxShapeNew2 (cpBody *body, cpBB box) |
| Allocate and initialize an offset box shaped polygon shape. | |
| cpBool | cpPolyValidate (const cpVect *verts, const int numVerts) |
| Check that a set of vertexes is convex and has a clockwise winding. | |
| int | cpPolyShapeGetNumVerts (cpShape *shape) |
| Get the number of verts in a polygon shape. | |
| cpVect | cpPolyShapeGetVert (cpShape *shape, int idx) |
Get the ith vertex of a polygon shape. | |
| cpPolyShape* cpBoxShapeInit | ( | cpPolyShape * | poly, |
| cpBody * | body, | ||
| cpFloat | width, | ||
| cpFloat | height | ||
| ) |
Initialize a box shaped polygon shape.
| cpPolyShape* cpBoxShapeInit2 | ( | cpPolyShape * | poly, |
| cpBody * | body, | ||
| cpBB | box | ||
| ) |
Initialize an offset box shaped polygon shape.
Allocate and initialize a box shaped polygon shape.
Allocate and initialize an offset box shaped polygon shape.
| cpPolyShape* cpPolyShapeAlloc | ( | void | ) |
Allocate a polygon shape.
| int cpPolyShapeGetNumVerts | ( | cpShape * | shape | ) |
Get the number of verts in a polygon shape.
| cpPolyShape* cpPolyShapeInit | ( | cpPolyShape * | poly, |
| cpBody * | body, | ||
| int | numVerts, | ||
| cpVect * | verts, | ||
| cpVect | offset | ||
| ) |
Initialize a polygon shape. The vertexes must be convex and have a clockwise winding.
Allocate and initialize a polygon shape. The vertexes must be convex and have a clockwise winding.