From f3f48780c021cdd4e408ee5eb5e6d73d9fd2b3ed Mon Sep 17 00:00:00 2001 From: Sara Date: Wed, 29 Nov 2023 11:46:47 +0100 Subject: [PATCH] fix: physics world will now include the median point in the right collision set --- core/src/physics_world.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/physics_world.c b/core/src/physics_world.c index a2ff7a4..3b328cf 100644 --- a/core/src/physics_world.c +++ b/core/src/physics_world.c @@ -84,7 +84,7 @@ void _internal_physics_narrow_collision() { PhysicsEntity* right = NULL; list_foreach(PhysicsEntity*, left, &_world_bodies) { - for(size_t right_index = 0; right_index < half_end; ++right_index) { + for(size_t right_index = 0; right_index <= half_end; ++right_index) { right = list_at_as(PhysicsEntity, &_world_bodies, right_index); if(left->data == right->data) continue;