From 20f6ef6f1ddbdc4020cd07d4325afee26c82bcf8 Mon Sep 17 00:00:00 2001 From: esquizo Date: Tue, 2 Jun 2026 23:01:52 -0300 Subject: libphysics: id agora tem um campo de generation --- libphysics/dat.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'libphysics/dat.h') 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; -- cgit v1.2.3