52 #ifndef CHIPMUNK_UTILS_H 
   53 #define CHIPMUNK_UTILS_H 
   55 #include <chipmunk/chipmunk.h> 
   57 typedef struct _cp_baffle_board{
 
   63 cp_baffle_board_t *create_baffle_board(cpSpace *space, 
int y_baseline, 
int y_height, 
int restLength, 
int x1, 
int x2, 
float stiffness, 
float damping);
 
   64 cpShape *create_floor(cpSpace *space, 
int y_baseline, 
int x1, 
int x2);
 
   65 cpShape *create_ball(cpSpace *space, 
int x, 
int y, 
int r, 
int m);
 
   66 cpShape *create_block(cpSpace *space, 
int x1, 
int y1, 
int x2, 
int y2, 
int m);
 
   68 void destroy_baffle_board(cpSpace *space, cp_baffle_board_t *board);
 
   69 void destroy_static_shape(cpSpace *space, cpShape *shape);
 
   70 void destroy_shape(cpSpace *space, cpShape *shape);