@flighthq/physics3d 0.4.0-next.1917.1b88fee → 0.4.0-next.1920.b93ad0f
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +7 -7
- package/src/stress.test.ts +5 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@flighthq/physics3d",
|
|
3
|
-
"version": "0.4.0-next.
|
|
3
|
+
"version": "0.4.0-next.1920.b93ad0f",
|
|
4
4
|
"author": "Joshua Granick and other contributors",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -38,12 +38,12 @@
|
|
|
38
38
|
"clean:dist": "tsx ../../scripts/clean-package-dist.ts"
|
|
39
39
|
},
|
|
40
40
|
"dependencies": {
|
|
41
|
-
"@flighthq/collision": "0.4.0-next.
|
|
42
|
-
"@flighthq/log": "0.4.0-next.
|
|
43
|
-
"@flighthq/math": "0.4.0-next.
|
|
44
|
-
"@flighthq/node": "0.4.0-next.
|
|
45
|
-
"@flighthq/spatial": "0.4.0-next.
|
|
46
|
-
"@flighthq/types": "0.4.0-next.
|
|
41
|
+
"@flighthq/collision": "0.4.0-next.1920.b93ad0f",
|
|
42
|
+
"@flighthq/log": "0.4.0-next.1920.b93ad0f",
|
|
43
|
+
"@flighthq/math": "0.4.0-next.1920.b93ad0f",
|
|
44
|
+
"@flighthq/node": "0.4.0-next.1920.b93ad0f",
|
|
45
|
+
"@flighthq/spatial": "0.4.0-next.1920.b93ad0f",
|
|
46
|
+
"@flighthq/types": "0.4.0-next.1920.b93ad0f"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
49
49
|
"@flighthq/geometry": "*",
|
package/src/stress.test.ts
CHANGED
|
@@ -195,8 +195,11 @@ describe('physics3d stress qualification', () => {
|
|
|
195
195
|
// platform-dependent convergence rates (~0.47 locally, ~0.43 on CI) while still catching the stale-
|
|
196
196
|
// depth position correction bug that measured 0.23 of sink (pile[0].y ≈ 0.27).
|
|
197
197
|
expect(pile[0].y).toBeGreaterThan(0.4);
|
|
198
|
-
// And the pile has not collapsed: twelve unit boxes stand about twelve units tall.
|
|
199
|
-
|
|
198
|
+
// And the pile has not collapsed: twelve unit boxes stand about twelve units tall. The per-contact
|
|
199
|
+
// compression from the bottom-box bound (~0.07 on CI) compounds across all twelve contacts, so the
|
|
200
|
+
// top box can settle as low as ~10.6 on CI while measuring ~11.1 locally. The bound still catches the
|
|
201
|
+
// stale-depth bug, which compressed the pile to ~8.7.
|
|
202
|
+
expect(pile[pile.length - 1].y).toBeGreaterThan(10.2);
|
|
200
203
|
expect(pile.every((body) => body.sleeping)).toBe(true);
|
|
201
204
|
});
|
|
202
205
|
|