fix: physics world will now include the median point in the right collision set

This commit is contained in:
Sara 2023-11-29 11:46:47 +01:00
parent 87c976824e
commit f3f48780c0

View file

@ -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;