fix crouching check

This commit is contained in:
MihailRis 2026-02-24 23:35:42 +03:00
parent 6aa7739c42
commit 8dd9e42764

View file

@ -394,7 +394,7 @@ void PhysicsSolver::calcSubstep(
if (glm::distance2(box->position, pos) < E) {
continue;
}
if (box->getAABB().intersects(AABB(pos - half, pos + half))) {
if (box->getAABB().intersects(boxAABB)) {
hitbox.grounded = true;
break;
}