2021-11-30 21:29:18 -06:00
|
|
|
#ifndef TWODPHYSICS_H
|
|
|
|
#define TWODPHYSICS_H
|
|
|
|
|
2023-05-12 13:22:05 -05:00
|
|
|
#include <chipmunk/chipmunk.h>
|
2023-12-11 08:36:45 -06:00
|
|
|
#include "gameobject.h"
|
2024-05-20 13:50:57 -05:00
|
|
|
#include "script.h"
|
2021-11-30 21:29:18 -06:00
|
|
|
extern cpSpace *space;
|
|
|
|
|
|
|
|
void phys2d_init();
|
|
|
|
void phys2d_update(float deltaT);
|
2023-12-11 08:36:45 -06:00
|
|
|
void phys2d_setup_handlers(gameobject *go);
|
2024-04-06 19:41:14 -05:00
|
|
|
|
2024-05-20 13:50:57 -05:00
|
|
|
JSValue arb2js(cpArbiter *arb);
|
|
|
|
|
2021-11-30 21:29:18 -06:00
|
|
|
#endif
|