diff options
Diffstat (limited to 'libphysics/dat.h')
| -rw-r--r-- | libphysics/dat.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libphysics/dat.h b/libphysics/dat.h index 035bdcc..452aee6 100644 --- a/libphysics/dat.h +++ b/libphysics/dat.h @@ -3,6 +3,7 @@ typedef struct Body { BodyType type; int active; + int generation; vec2 pos; vec2 size; vec2 vel; @@ -34,6 +35,9 @@ void __phxbroadphasereset(void); void __phxbroadphase(int n, BodyID bid[n]); void __phxnarrowphase(int n, TestCollision coll[n]); +Body *__getbodydata(BodyID id); +BodyID __getbodyid(Body *); + extern int phxmapwidth, phxmapheight; extern int *phxmapbuffer; |
