From 86e64f00ad1452c0a2e528d37d169b8eb125e299 Mon Sep 17 00:00:00 2001 From: esquizo Date: Sun, 31 May 2026 14:48:08 -0300 Subject: libphysics: adicionado narrow.c --- libphysics/dat.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'libphysics/dat.h') diff --git a/libphysics/dat.h b/libphysics/dat.h index cabe7f5..da858c3 100644 --- a/libphysics/dat.h +++ b/libphysics/dat.h @@ -15,6 +15,11 @@ struct BlockmapNode { BlockmapNode *next; }; +typedef struct TestCollision TestCollision; +struct TestCollision { + BodyID a, b; +}; + void phxmapcollision(Body *); void phxbodycollision(Body *, Body *); @@ -28,6 +33,8 @@ int phxdeqevent(CollisionEvent *ev); void phxmakeblkmap(void); BlockmapNode *phxnodelist(float x, float y); +void __phxnarrowphase(int n, TestCollision coll[n]); + extern int phxmapwidth, phxmapheight; extern int *phxmapbuffer; -- cgit v1.2.3