1 #include <chipmunk/chipmunk.h>
4 gacela_cpInitChipmunk (void)
10 gacela_cpResetShapeIdCounter (void)
12 cpResetShapeIdCounter ();
16 gacela_cpSpaceNew (void)
22 gacela_cpSpaceAddBody (int space, int body)
24 cpSpaceAddBody (space, body);
28 gacela_cpSpaceAddShape (int space, int shape)
30 cpSpaceAddShape (space, shape);
34 gacela_cpSpaceFree (int space)
40 gacela_cpBodyNew (float mass, float inertia, float infinity)
42 return cpBodyNew ((mass >= infinity ? INFINITY : mass), (inertia >= infinity ? INFINITY : inertia));
46 gacela_cpMomentForCircle (float mass, float r1, float r2, float x, float y)
48 return cpMomentForCircle (mass, r1, r2, cpv (x, y));
52 gacela_cpBodyFree (int space)
58 gacela_cpCircleShapeNew (int body, float radius, float x, float y)
60 return cpCircleShapeNew (body, radius, cpv (x, y));
64 gacela_cpPolyShapeNew (int body, int numVerts, int verts, float x, float y)
66 return cpPolyShapeNew (body, numVerts, verts, cpv (x, y));
70 gacela_cpShapeFree (int shape)
76 set_cp_space_gravity (int space, float x, float y)
80 s->gravity = cpv (x, y);