Skip to content

Commit

Permalink
Disable horizontal snapping to walls
Browse files Browse the repository at this point in the history
  • Loading branch information
hubol committed May 6, 2024
1 parent c1e5394 commit 5b82001
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/igua/mixins/mxn-physics.ts
Expand Up @@ -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) {
Expand Down

0 comments on commit 5b82001

Please sign in to comment.