diff options
| author | esquizo <esquizo+noreply@esquizo.net> | 2026-06-02 23:42:05 -0300 |
|---|---|---|
| committer | esquizo <esquizo+noreply@esquizo.net> | 2026-06-02 23:42:05 -0300 |
| commit | 005f0a3185eb8085f6e0de11e3cfd0a3d9167719 (patch) | |
| tree | 27e8268b818068a4ca574025ef3b04917dd8a044 /libphysics/dat.h | |
| parent | 518b93c3a40b0c60054f50356357efc0ead36895 (diff) | |
| parent | ff51d49dc9c7024d29b9177f8e748522625ff1f4 (diff) | |
Merge branch 'libphysics/generational_id'
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; |
