This commit is contained in:
Schluffe
2026-04-01 10:48:11 +02:00
parent 512072688a
commit ea0acab180
4 changed files with 48 additions and 6 deletions
+3 -3
View File
@@ -283,9 +283,9 @@ export function moveAndSlide(
continue; // TODO
}
const ts = Math.min(0, time - 0.001);
velocity.x += velocity.x * ts;
velocity.y += velocity.y * ts;
// const ts = Math.min(0, time - 0.001);
// velocity.x += velocity.x * ts;
// velocity.y += velocity.y * ts;
const dot = getDotProduct(velocity, collision.normal);
const rt = 1 - time + 0.001;