mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-05 11:01:49 +00:00
fix
This commit is contained in:
parent
436601a5b0
commit
1bba713502
1 changed files with 0 additions and 2 deletions
|
|
@ -105,9 +105,7 @@ static void calc_collision(
|
|||
auto velB = calc_collsion_velocity_result(*box, hitbox);
|
||||
if ((vel[nx] - box->velocity[nx]) * sign > 0.0f) {
|
||||
vel[nx] = velA[nx];
|
||||
vel[nz] = velA[nz];
|
||||
box->velocity[nx] = velB[nx];
|
||||
box->velocity[nz] = velB[nz];
|
||||
}
|
||||
pos[nx] = newx;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue