diff --git a/src/objects/Entities.cpp b/src/objects/Entities.cpp index 0902ae85a..70376e5fe 100644 --- a/src/objects/Entities.cpp +++ b/src/objects/Entities.cpp @@ -492,10 +492,11 @@ void Entities::render( } bool Entities::hasBlockingInside(AABB aabb) { + constexpr float eps = 0.05f; auto view = registry->view(); for (auto [entity, eid, body] : view.each()) { AABB bodyAABB(body.hitbox.getAABB()); - bodyAABB.scale({1, 0.95f, 1}); + bodyAABB.scale(glm::vec3(1.0f - eps)); if (eid.def.blocking && aabb.intersects(bodyAABB)) { return true; }