fix side collision

This commit is contained in:
MihailRis 2026-08-22 19:25:49 +03:00
parent f2018334cb
commit 78e27c812a

View file

@ -122,7 +122,7 @@ static void calc_collision(
auto aabb = AABB(pos - half, pos + half); auto aabb = AABB(pos - half, pos + half);
glm::vec3 scale(1.0f); glm::vec3 scale(1.0f);
scale[nz] = 1.0f - E * 8.0f; scale[nz] = 1.0f - E * 2.0f;
aabb.scale(scale); aabb.scale(scale);
aabb = aabb + offset; aabb = aabb + offset;
aabb.b.y -= stepHeight + E * 2; aabb.b.y -= stepHeight + E * 2;