From e1a996429fd0cd2d5c0079d9ade7b8a1a03b2749 Mon Sep 17 00:00:00 2001 From: MihailRis Date: Tue, 11 Aug 2026 23:40:07 +0300 Subject: [PATCH] update Entities::hasBlockingInside --- src/objects/Entities.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; }