diff options
| author | esquizo <esquizo+noreply@esquizo.net> | 2026-06-02 23:01:52 -0300 |
|---|---|---|
| committer | esquizo <esquizo+noreply@esquizo.net> | 2026-06-02 23:01:52 -0300 |
| commit | 20f6ef6f1ddbdc4020cd07d4325afee26c82bcf8 (patch) | |
| tree | a252921e829ebfa04cbd64a1108c292641aa3029 /libphysics/dat.h | |
| parent | 518b93c3a40b0c60054f50356357efc0ead36895 (diff) | |
libphysics: id agora tem um campo de generation
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; |
