mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +00:00
fix crouching check
This commit is contained in:
parent
6aa7739c42
commit
8dd9e42764
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue