From 83b1c06b186614d1bf2171feb46754bd8a8e6dfa Mon Sep 17 00:00:00 2001 From: esquizo Date: Wed, 3 Jun 2026 16:10:57 -0300 Subject: libphysics removido (ideia jogada fora) --- libphysics/dat.h | 45 --------------------------------------------- 1 file changed, 45 deletions(-) delete mode 100644 libphysics/dat.h (limited to 'libphysics/dat.h') diff --git a/libphysics/dat.h b/libphysics/dat.h deleted file mode 100644 index 452aee6..0000000 --- a/libphysics/dat.h +++ /dev/null @@ -1,45 +0,0 @@ -#define BLOCK_SIZE 16 - -typedef struct Body { - BodyType type; - int active; - int generation; - vec2 pos; - vec2 size; - vec2 vel; - vec2 accel; -} Body; - -typedef struct BlockmapNode BlockmapNode; -struct BlockmapNode { - BodyID id; - BlockmapNode *next; -}; - -typedef struct TestCollision TestCollision; -struct TestCollision { - BodyID a, b; -}; - -void phxmapcollision(Body *); -void phxbodycollision(Body *, Body *); - -int phxaabbcheck(Body *a, Body *b); -void phxcollisionmap(Body *a); -void phxaabbresolv(Body *a, Body *b, vec2 p, vec2 n); - -int phxenqevent(CollisionEvent *ev); -int phxdeqevent(CollisionEvent *ev); - -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; - -extern Body phxbodypool[]; -extern int phxbodypoolsize; -- cgit v1.2.3