@flighthq/physics2d 0.3.1-next.975.01aea94 → 0.4.0-edge.1908.751021c

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.
Files changed (77) hide show
  1. package/dist/broadphase.d.ts.map +1 -1
  2. package/dist/colliderTransform.d.ts +2 -2
  3. package/dist/colliderTransform.d.ts.map +1 -1
  4. package/dist/colliderTransform.js +19 -0
  5. package/dist/colliderTransform.js.map +1 -1
  6. package/dist/contract.d.ts +5 -0
  7. package/dist/contract.d.ts.map +1 -1
  8. package/dist/contract.js +5 -0
  9. package/dist/contract.js.map +1 -1
  10. package/dist/debugGeometry.js +23 -0
  11. package/dist/debugGeometry.js.map +1 -1
  12. package/dist/enablePhysics2DGuards.d.ts +4 -0
  13. package/dist/enablePhysics2DGuards.d.ts.map +1 -0
  14. package/dist/enablePhysics2DGuards.js +143 -0
  15. package/dist/enablePhysics2DGuards.js.map +1 -0
  16. package/dist/explainPhysics2DCollision.d.ts +3 -0
  17. package/dist/explainPhysics2DCollision.d.ts.map +1 -0
  18. package/dist/explainPhysics2DCollision.js +37 -0
  19. package/dist/explainPhysics2DCollision.js.map +1 -0
  20. package/dist/index.d.ts +5 -1
  21. package/dist/index.d.ts.map +1 -1
  22. package/dist/index.js +5 -1
  23. package/dist/index.js.map +1 -1
  24. package/dist/jointFactories.d.ts.map +1 -1
  25. package/dist/jointFactories.js +12 -0
  26. package/dist/jointFactories.js.map +1 -1
  27. package/dist/jointReactions.d.ts +4 -0
  28. package/dist/jointReactions.d.ts.map +1 -0
  29. package/dist/jointReactions.js +31 -0
  30. package/dist/jointReactions.js.map +1 -0
  31. package/dist/jointRows.d.ts +2 -0
  32. package/dist/jointRows.d.ts.map +1 -0
  33. package/dist/jointRows.js +53 -0
  34. package/dist/jointRows.js.map +1 -0
  35. package/dist/joints.d.ts +10 -1
  36. package/dist/joints.d.ts.map +1 -1
  37. package/dist/joints.js +176 -54
  38. package/dist/joints.js.map +1 -1
  39. package/dist/massProperties.d.ts.map +1 -1
  40. package/dist/massProperties.js +25 -0
  41. package/dist/massProperties.js.map +1 -1
  42. package/dist/nodeSync.d.ts +3 -0
  43. package/dist/nodeSync.d.ts.map +1 -0
  44. package/dist/nodeSync.js +12 -0
  45. package/dist/nodeSync.js.map +1 -0
  46. package/dist/step.d.ts +4 -1
  47. package/dist/step.d.ts.map +1 -1
  48. package/dist/step.js +116 -27
  49. package/dist/step.js.map +1 -1
  50. package/dist/stepValidation.d.ts.map +1 -1
  51. package/dist/stepValidation.js +40 -4
  52. package/dist/stepValidation.js.map +1 -1
  53. package/dist/world.d.ts +3 -3
  54. package/dist/world.d.ts.map +1 -1
  55. package/dist/world.js +6 -3
  56. package/dist/world.js.map +1 -1
  57. package/dist/worldQueries.d.ts +4 -2
  58. package/dist/worldQueries.d.ts.map +1 -1
  59. package/dist/worldQueries.js +128 -15
  60. package/dist/worldQueries.js.map +1 -1
  61. package/package.json +8 -5
  62. package/src/colliderTransform.test.ts +27 -2
  63. package/src/debugGeometry.test.ts +37 -0
  64. package/src/enablePhysics2DGuards.test.ts +277 -0
  65. package/src/explainPhysics2DCollision.test.ts +61 -0
  66. package/src/islands.test.ts +4 -0
  67. package/src/jointFactories.test.ts +2 -0
  68. package/src/jointReactions.test.ts +366 -0
  69. package/src/jointRegistry.test.ts +2 -0
  70. package/src/jointRows.test.ts +99 -0
  71. package/src/joints.test.ts +237 -0
  72. package/src/massProperties.test.ts +82 -2
  73. package/src/nodeSync.test.ts +41 -0
  74. package/src/step.test.ts +603 -11
  75. package/src/stepValidation.test.ts +2 -0
  76. package/src/world.test.ts +4 -0
  77. package/src/worldQueries.test.ts +212 -0
@@ -1 +1 @@
1
- {"version":3,"file":"jointFactories.js","sourceRoot":"","sources":["../src/jointFactories.ts"],"names":[],"mappings":"AAuBA,OAAO,EACL,0BAA0B,EAC1B,sBAAsB,EACtB,uBAAuB,EACvB,2BAA2B,EAC3B,wBAAwB,EACxB,0BAA0B,EAC1B,s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ChB,CAAC;AACJ,CAAC"}
@@ -0,0 +1,4 @@
1
+ import type { Physics2DJoint, Physics2DJointReaction, Physics2DWorld } from '@flighthq/types/contract';
2
+ export declare function createPhysics2DJointReaction(): Physics2DJointReaction;
3
+ export declare function writePhysics2DJointReaction(world: Readonly<Physics2DWorld>, joint: Readonly<Physics2DJoint>, dt: number, out: Physics2DJointReaction): boolean;
4
+ //# sourceMappingURL=jointReactions.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"jointReactions.d.ts","sourceRoot":"","sources":["../src/jointReactions.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,sBAAsB,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAGvG,wBAAgB,4BAA4B,IAAI,sBAAsB,CAErE;AAiBD,wBAAgB,2BAA2B,CACzC,KAAK,EAAE,QAAQ,CAAC,cAAc,CAAC,EAC/B,KAAK,EAAE,QAAQ,CAAC,cAAc,CAAC,EAC/B,EAAE,EAAE,MAAM,EACV,GAAG,EAAE,sBAAsB,GAC1B,OAAO,CAQT"}
@@ -0,0 +1,31 @@
1
+ // An all-zero reaction, for a caller that wants somewhere to write.
2
+ export function createPhysics2DJointReaction() {
3
+ return { forceX: 0, forceY: 0, torque: 0 };
4
+ }
5
+ // Writes the force and couple `joint` applied to body B on the step that just ran, in world space.
6
+ //
7
+ // Reads the accumulators the solver converged on, so it reports what the constraint ACTUALLY did rather
8
+ // than what it would ideally do — a joint whose iterations ran out short reports the impulse it managed,
9
+ // which is the number a breakage threshold or a strain readout has to be compared against.
10
+ //
11
+ // It is therefore a query about the LAST STEP, and `dt` must be that step's timestep or the forces are
12
+ // scaled wrong. `world.previousTimestep` is that value; passing the timestep about to be used instead is
13
+ // correct only while the step size is constant.
14
+ //
15
+ // Returns false and leaves `out` zeroed when there is no answer to give: before the first step, for a
16
+ // joint whose bodies have gone missing, for a kind with no registered solver, and for a kind whose solver
17
+ // declines to report one. `explainPhysics2DJoints(world)` distinguishes the middle cases; the last is a
18
+ // property of the kind, and the gear joint is the built-in example — it couples two scalar coordinates
19
+ // that need not share units, so no single force describes it.
20
+ export function writePhysics2DJointReaction(world, joint, dt, out) {
21
+ out.forceX = 0;
22
+ out.forceY = 0;
23
+ out.torque = 0;
24
+ if (!(dt > 0) || !Number.isFinite(dt))
25
+ return false;
26
+ const solver = world.jointSolvers.get(joint.kind);
27
+ if (solver?.writeReaction === undefined)
28
+ return false;
29
+ return solver.writeReaction(world, joint, 1 / dt, out);
30
+ }
31
+ //# sourceMappingURL=jointReactions.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"jointReactions.js","sourceRoot":"","sources":["../src/jointReactions.ts"],"names":[],"mappings":"AAEA,oEAAoE;AACpE,MAAM,UAAU,4BAA4B;IAC1C,OAAO,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,CAAC;AAC7C,CAAC;AAED,mGAAmG;AACnG,EAAE;AACF,wGAAwG;AACxG,yGAAyG;AACzG,2FAA2F;AAC3F,EAAE;AACF,uGAAuG;AACvG,yGAAyG;AACzG,gDAAgD;AAChD,EAAE;AACF,sGAAsG;AACtG,0GAA0G;AAC1G,wGAAwG;AACxG,uGAAuG;AACvG,8DAA8D;AAC9D,MAAM,UAAU,2BAA2B,CACzC,KAA+B,EAC/B,KAA+B,EAC/B,EAAU,EACV,GAA2B;IAE3B,GAAG,CAAC,MAAM,GAAG,CAAC,CAAC;IACf,GAAG,CAAC,MAAM,GAAG,CAAC,CAAC;IACf,GAAG,CAAC,MAAM,GAAG,CAAC,CAAC;IACf,IAAI,CAAC,CAAC,EAAE,GAAG,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,EAAE,CAAC;QAAE,OAAO,KAAK,CAAC;IACpD,MAAM,MAAM,GAAG,KAAK,CAAC,YAAY,CAAC,GAAG,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;IAClD,IAAI,MAAM,EAAE,aAAa,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IACtD,OAAO,MAAM,CAAC,aAAa,CAAC,KAAK,EAAE,KAAK,EAAE,CAAC,GAAG,EAAE,EAAE,GAAG,CAAC,CAAC;AACzD,CAAC"}
@@ -0,0 +1,2 @@
1
+ export declare function writePhysics2DSoftRowParameters(mass: number, frequencyHz: number, dampingRatio: number, dt: number, hardBiasFactor: number, out: number[]): void;
2
+ //# sourceMappingURL=jointRows.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"jointRows.d.ts","sourceRoot":"","sources":["../src/jointRows.ts"],"names":[],"mappings":"AAiCA,wBAAgB,+BAA+B,CAC7C,IAAI,EAAE,MAAM,EACZ,WAAW,EAAE,MAAM,EACnB,YAAY,EAAE,MAAM,EACpB,EAAE,EAAE,MAAM,EACV,cAAc,EAAE,MAAM,EACtB,GAAG,EAAE,MAAM,EAAE,GACZ,IAAI,CAiBN"}
@@ -0,0 +1,53 @@
1
+ // Derives the three numbers a SOFT constraint row needs from the motion a caller described, writing
2
+ // `[mass, biasFactor, gamma]`.
3
+ //
4
+ // A frequency and a damping ratio describe the motion wanted; stiffness and damping are what the solver
5
+ // needs, and converting between them requires the mass being moved. Deriving them here, per-step and
6
+ // per-pair, is what makes a 2 Hz spring oscillate at 2 Hz whatever it is attached to — an authored
7
+ // stiffness would change frequency the moment either body's mass did.
8
+ //
9
+ // `mass` is the row's EFFECTIVE MASS, not its reciprocal. The distinction is the whole reason this
10
+ // function exists rather than being written out at each spring: a solver's row denominator is naturally
11
+ // an INVERSE mass (a sum of `inverseMass` and `inverseInertia` terms), and passing that sum in here
12
+ // unchanged is a silent defect rather than a visible one. Mass cancels out of `biasFactor` — the
13
+ // returned factor is `angular^2 / (2 * dampingRatio * angular + dt * angular^2)` however it is derived —
14
+ // so the authored frequency looks correct in a single-mass test and only the damping and the softness
15
+ // come out wrong, by the square of the mass ratio, whenever the two bodies are not unit-mass.
16
+ //
17
+ // `biasFactor` is returned in the position a hard row's own bias factor occupies, so a row solves
18
+ // identically either way and the only difference between a stop and a spring is which three numbers it
19
+ // was handed. It is a FACTOR: callers multiply it by their own constraint error.
20
+ //
21
+ // `hardBiasFactor` is what to fall back to when the spring cannot be computed, and it is a PARAMETER
22
+ // rather than a constant because callers legitimately disagree about it: a two-sided rest row corrects
23
+ // at `BAUMGARTE / dt`, while a one-sided limit row corrects fully at `1 / dt`. Baking either in would
24
+ // silently change the other's hard behaviour the first time it took this path.
25
+ //
26
+ // Compliance adds to the INVERSE mass, which is why the returned mass is not a scaled version of the
27
+ // input: softening makes a constraint easier to violate, and that is an addition on the reciprocal side.
28
+ // A non-positive frequency or timestep returns the HARD parameters, so "spring enabled with no
29
+ // frequency set" degrades to the stop it replaced rather than to a constraint that does nothing.
30
+ //
31
+ // The derivation is dimension-free and its 3D twin is `writePhysics3DSoftRowParameters`. They are
32
+ // written out separately because `@flighthq/physics2d` does not depend on `@flighthq/physics3d` and must
33
+ // not start: a 2D game would then carry a 3D solver for fifteen lines of scalar algebra.
34
+ export function writePhysics2DSoftRowParameters(mass, frequencyHz, dampingRatio, dt, hardBiasFactor, out) {
35
+ if (!(frequencyHz > 0) || !(dt > 0)) {
36
+ out[0] = mass;
37
+ out[1] = hardBiasFactor;
38
+ out[2] = 0;
39
+ return;
40
+ }
41
+ const angular = TAU * frequencyHz;
42
+ const damping = 2 * mass * dampingRatio * angular;
43
+ const stiffness = mass * angular * angular;
44
+ const gammaDenominator = dt * (damping + dt * stiffness);
45
+ const gamma = gammaDenominator > 0 ? 1 / gammaDenominator : 0;
46
+ const inverseMass = mass > 0 ? 1 / mass : 0;
47
+ const softened = inverseMass + gamma;
48
+ out[0] = softened > 0 ? 1 / softened : 0;
49
+ out[1] = dt * stiffness * gamma;
50
+ out[2] = gamma;
51
+ }
52
+ const TAU = 2 * Math.PI;
53
+ //# sourceMappingURL=jointRows.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"jointRows.js","sourceRoot":"","sources":["../src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C;IAC9D,MAAM,WAAW,GAAG,IAAI,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC;IAC5C,MAAM,QAAQ,GAAG,WAAW,GAAG,KAAK,CAAC;IACrC,GAAG,CAAC,CAAC,CAAC,GAAG,QAAQ,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC;IACzC,GAAG,CAAC,CAAC,CAAC,GAAG,EAAE,GAAG,SAAS,GAAG,KAAK,CAAC;IAChC,GAAG,CAAC,CAAC,CAAC,GAAG,KAAK,CAAC;AACjB,CAAC;AAED,MAAM,GAAG,GAAG,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC"}
package/dist/joints.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import type { Physics2DJoint, Physics2DWorld } from '@flighthq/types/contract';
1
+ import type { Physics2DJointReaction, Physics2DJoint, Physics2DWorld } from '@flighthq/types/contract';
2
2
  export declare const Physics2DDistanceJointKind = "Distance";
3
3
  export declare const Physics2DGearJointKind = "Gear";
4
4
  export declare const Physics2DMouseJointKind = "Mouse";
@@ -13,6 +13,7 @@ export declare const physics2DDistanceJointSolver: {
13
13
  clearAccumulatedImpulses(joint: Physics2DJoint): void;
14
14
  prepare(world: Physics2DWorld, joint: Physics2DJoint, dt: number): void;
15
15
  solve(world: Physics2DWorld, joint: Physics2DJoint): void;
16
+ writeReaction(_world: Readonly<Physics2DWorld>, joint: Readonly<Physics2DJoint>, inverseTimestep: number, out: Physics2DJointReaction): boolean;
16
17
  };
17
18
  export declare const physics2DGearJointSolver: {
18
19
  warmStart(world: Physics2DWorld, joint: Physics2DJoint): void;
@@ -20,6 +21,7 @@ export declare const physics2DGearJointSolver: {
20
21
  swapEnds(joint: Physics2DJoint): boolean;
21
22
  prepare(world: Physics2DWorld, joint: Physics2DJoint, dt: number): void;
22
23
  solve(world: Physics2DWorld, joint: Physics2DJoint): void;
24
+ writeReaction(_world: Readonly<Physics2DWorld>, joint: Readonly<Physics2DJoint>, inverseTimestep: number, out: Physics2DJointReaction): boolean;
23
25
  };
24
26
  export declare const physics2DMouseJointSolver: {
25
27
  usesBodyA: boolean;
@@ -28,6 +30,7 @@ export declare const physics2DMouseJointSolver: {
28
30
  clearAccumulatedImpulses(joint: Physics2DJoint): void;
29
31
  prepare(world: Physics2DWorld, joint: Physics2DJoint, dt: number): void;
30
32
  solve(world: Physics2DWorld, joint: Physics2DJoint): void;
33
+ writeReaction(_world: Readonly<Physics2DWorld>, joint: Readonly<Physics2DJoint>, inverseTimestep: number, out: Physics2DJointReaction): boolean;
31
34
  };
32
35
  export declare const physics2DPrismaticJointSolver: {
33
36
  scaleAccumulatedImpulses(joint: Physics2DJoint, timestepRatio: number): void;
@@ -36,6 +39,7 @@ export declare const physics2DPrismaticJointSolver: {
36
39
  swapEnds(joint: Physics2DJoint): boolean;
37
40
  prepare(world: Physics2DWorld, joint: Physics2DJoint, dt: number): void;
38
41
  solve(world: Physics2DWorld, joint: Physics2DJoint): void;
42
+ writeReaction(_world: Readonly<Physics2DWorld>, joint: Readonly<Physics2DJoint>, inverseTimestep: number, out: Physics2DJointReaction): boolean;
39
43
  };
40
44
  export declare const physics2DPulleyJointSolver: {
41
45
  warmStart(world: Physics2DWorld, joint: Physics2DJoint): void;
@@ -43,6 +47,7 @@ export declare const physics2DPulleyJointSolver: {
43
47
  swapEnds(joint: Physics2DJoint): boolean;
44
48
  prepare(world: Physics2DWorld, joint: Physics2DJoint, dt: number): void;
45
49
  solve(world: Physics2DWorld, joint: Physics2DJoint): void;
50
+ writeReaction(_world: Readonly<Physics2DWorld>, joint: Readonly<Physics2DJoint>, inverseTimestep: number, out: Physics2DJointReaction): boolean;
46
51
  };
47
52
  export declare const physics2DRevoluteJointSolver: {
48
53
  scaleAccumulatedImpulses(joint: Physics2DJoint, timestepRatio: number): void;
@@ -51,12 +56,14 @@ export declare const physics2DRevoluteJointSolver: {
51
56
  swapEnds(joint: Physics2DJoint): boolean;
52
57
  prepare(world: Physics2DWorld, joint: Physics2DJoint, dt: number): void;
53
58
  solve(world: Physics2DWorld, joint: Physics2DJoint): void;
59
+ writeReaction(_world: Readonly<Physics2DWorld>, joint: Readonly<Physics2DJoint>, inverseTimestep: number, out: Physics2DJointReaction): boolean;
54
60
  };
55
61
  export declare const physics2DRopeJointSolver: {
56
62
  warmStart(world: Physics2DWorld, joint: Physics2DJoint): void;
57
63
  clearAccumulatedImpulses(joint: Physics2DJoint): void;
58
64
  prepare(world: Physics2DWorld, joint: Physics2DJoint, dt: number): void;
59
65
  solve(world: Physics2DWorld, joint: Physics2DJoint): void;
66
+ writeReaction(_world: Readonly<Physics2DWorld>, joint: Readonly<Physics2DJoint>, inverseTimestep: number, out: Physics2DJointReaction): boolean;
60
67
  };
61
68
  export declare const physics2DWheelJointSolver: {
62
69
  scaleAccumulatedImpulses(joint: Physics2DJoint, timestepRatio: number): void;
@@ -65,6 +72,7 @@ export declare const physics2DWheelJointSolver: {
65
72
  swapEnds(): boolean;
66
73
  prepare(world: Physics2DWorld, joint: Physics2DJoint, dt: number): void;
67
74
  solve(world: Physics2DWorld, joint: Physics2DJoint): void;
75
+ writeReaction(_world: Readonly<Physics2DWorld>, joint: Readonly<Physics2DJoint>, inverseTimestep: number, out: Physics2DJointReaction): boolean;
68
76
  };
69
77
  export declare const physics2DWeldJointSolver: {
70
78
  warmStart(world: Physics2DWorld, joint: Physics2DJoint): void;
@@ -72,5 +80,6 @@ export declare const physics2DWeldJointSolver: {
72
80
  swapEnds(joint: Physics2DJoint): boolean;
73
81
  prepare(world: Physics2DWorld, joint: Physics2DJoint, dt: number): void;
74
82
  solve(world: Physics2DWorld, joint: Physics2DJoint): void;
83
+ writeReaction(_world: Readonly<Physics2DWorld>, joint: Readonly<Physics2DJoint>, inverseTimestep: number, out: Physics2DJointReaction): boolean;
75
84
  };
76
85
  //# sourceMappingURL=joints.d.ts.map
@@ -1 +1 @@
1
- {"version":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