This commit is contained in:
Schluffe committed 2026-04-01 10:48:11 +02:00
1 parent 512072688a
commit ea0acab180
4 files changed
+48 -6

No files matched your search

+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;