Skip to content

Commit

Permalink
Not updating grounded after moving breaks the test
Browse files Browse the repository at this point in the history
For now force grounded to be true
  • Loading branch information
lorgan3 committed Nov 1, 2024
1 parent bb921a6 commit b7df618
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/data/collision/__spec__/body.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ describe("body", () => {
mask,
});
body.move(0, -1);
// @ts-expect-error
body._grounded = true;

const dt = TARGET_FPS / fps;
for (let i = 0; i < TARGET_FPS; i += dt) {
Expand Down

0 comments on commit b7df618

Please sign in to comment.