Merge branch 'MihailRis:main' into main

This commit is contained in:
Astazium 2026-08-16 16:35:30 +03:00 • committed by GitHub
commit 3e20166401
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
119 changed files with 1501 additions and 957 deletions

View file

@ -495,10 +495,11 @@ void Entities::render(
}
bool Entities::hasBlockingInside(AABB aabb) {
constexpr float eps = 0.05f;
auto view = registry->view<EntityId, Rigidbody>();
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;
}