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/narrow.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libphysics/narrow.c') diff --git a/libphysics/narrow.c b/libphysics/narrow.c index 14575be..f6fdde6 100644 --- a/libphysics/narrow.c +++ b/libphysics/narrow.c @@ -27,8 +27,8 @@ __phxnarrowphase(int n, TestCollision tests[n]) vec2_sub_scaled(a->pos, a->pos, p, 0.5); vec2_sub_scaled(b->pos, b->pos, p, -0.5); - event.body1 = c->a; - event.body2 = c->b; + event.body1 = __getbodyid(a); + event.body2 = __getbodyid(b); phxenqevent(&event); } } -- cgit v1.2.3