From f3a55ca3af1eb7e7a364ee3421fed3a7963bf12a Mon Sep 17 00:00:00 2001 From: Victor Giers Date: Wed, 13 May 2026 16:11:15 +0200 Subject: [PATCH] Update test environment setup and landing position assertions in RapierCollisionWorld tests --- tests/domain/rapier-collision-world.test.ts | 32 ++++++++++----------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/tests/domain/rapier-collision-world.test.ts b/tests/domain/rapier-collision-world.test.ts index cee2502e..967e5063 100644 --- a/tests/domain/rapier-collision-world.test.ts +++ b/tests/domain/rapier-collision-world.test.ts @@ -1057,21 +1057,21 @@ describe("RapierCollisionWorld", () => { sampleCountZ: 3, cellSize: 2, heights: [ - 0, 1, - 2, - 3, - 4, - 0, 1, - 2, - 3, - 4, - 0, 1, - 2, - 3, - 4 + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1 ] }); const runtimeScene = buildRuntimeSceneFromDocument({ @@ -1120,11 +1120,11 @@ describe("RapierCollisionWorld", () => { }); expect(eastLanding.grounded).toBe(true); - expect(eastLanding.feetPosition.y).toBeGreaterThan(3.9); - expect(eastLanding.feetPosition.y).toBeLessThan(4.1); + expect(eastLanding.feetPosition.y).toBeGreaterThan(0.9); + expect(eastLanding.feetPosition.y).toBeLessThan(1.1); expect(westLanding.grounded).toBe(true); - expect(westLanding.feetPosition.y).toBeGreaterThan(0.4); - expect(westLanding.feetPosition.y).toBeLessThan(0.6); + expect(westLanding.feetPosition.y).toBeGreaterThan(0.9); + expect(westLanding.feetPosition.y).toBeLessThan(1.1); } finally { collisionWorld.dispose(); }