diff options
| author | esquizo <esquizo+noreply@esquizo.net> | 2026-06-03 16:10:57 -0300 |
|---|---|---|
| committer | esquizo <esquizo+noreply@esquizo.net> | 2026-06-03 16:10:57 -0300 |
| commit | 83b1c06b186614d1bf2171feb46754bd8a8e6dfa (patch) | |
| tree | b8da3f436cba5736d481690935135fe5c6b3badc /libphysics/dat.h | |
| parent | 005f0a3185eb8085f6e0de11e3cfd0a3d9167719 (diff) | |
libphysics removido (ideia jogada fora)
Diffstat (limited to 'libphysics/dat.h')
| -rw-r--r-- | libphysics/dat.h | 45 |
1 files changed, 0 insertions, 45 deletions
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; |
