mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 10:31:50 +00:00
fix side collision
This commit is contained in:
parent
f2018334cb
commit
78e27c812a
1 changed files with 1 additions and 1 deletions
|
|
@ -122,7 +122,7 @@ static void calc_collision(
|
|||
|
||||
auto aabb = AABB(pos - half, pos + half);
|
||||
glm::vec3 scale(1.0f);
|
||||
scale[nz] = 1.0f - E * 8.0f;
|
||||
scale[nz] = 1.0f - E * 2.0f;
|
||||
aabb.scale(scale);
|
||||
aabb = aabb + offset;
|
||||
aabb.b.y -= stepHeight + E * 2;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue