From 5b82001c6d46067a9b5ba35e4a8d78d434791e88 Mon Sep 17 00:00:00 2001 From: Hubol Date: Sun, 5 May 2024 23:49:58 -0500 Subject: [PATCH] Disable horizontal snapping to walls --- src/igua/mixins/mxn-physics.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/igua/mixins/mxn-physics.ts b/src/igua/mixins/mxn-physics.ts index 4e0c815..db94178 100644 --- a/src/igua/mixins/mxn-physics.ts +++ b/src/igua/mixins/mxn-physics.ts @@ -202,7 +202,7 @@ function push(obj: MxnPhysics, edgesOnly: boolean, correctPosition = true, resul const tanA = Math.abs((x1 - x0) / (y1 - y0)); const hCat = tanA * halfHeight; - const hSnap = Math.abs(speedY); + const hSnap = 0;//Math.abs(speedY); if (segment.isWallFacingLeft) { if (speedX >= 0) {