@newkrok/nape-js 3.3.20 → 3.3.21

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/dist/index.d.ts CHANGED
@@ -25,13 +25,13 @@ declare function getNape(): any;
25
25
  *
26
26
  * Converted from nape-compiled.js lines 83820–84273, 134996.
27
27
  */
28
- type Any$J = any;
28
+ type Any$K = any;
29
29
  declare class ZPP_Vec2 {
30
30
  static zpp_pool: ZPP_Vec2 | null;
31
31
  static __name__: string[];
32
- static _nape: Any$J;
33
- static _zpp: Any$J;
34
- static _wrapFn: ((zpp: ZPP_Vec2) => Any$J) | null;
32
+ static _nape: Any$K;
33
+ static _zpp: Any$K;
34
+ static _wrapFn: ((zpp: ZPP_Vec2) => Any$K) | null;
35
35
  x: number;
36
36
  y: number;
37
37
  next: ZPP_Vec2 | null;
@@ -40,18 +40,18 @@ declare class ZPP_Vec2 {
40
40
  pushmod: boolean;
41
41
  _inuse: boolean;
42
42
  weak: boolean;
43
- outer: Any$J;
43
+ outer: Any$K;
44
44
  _immutable: boolean;
45
45
  _isimmutable: (() => void) | null;
46
46
  _validate: (() => void) | null;
47
47
  _invalidate: ((self: ZPP_Vec2) => void) | null;
48
- __class__: Any$J;
48
+ __class__: Any$K;
49
49
  /** Static factory with optional pooling and immutability. */
50
50
  static get(x: number, y: number, immutable?: boolean): ZPP_Vec2;
51
51
  validate(): void;
52
52
  invalidate(): void;
53
53
  immutable(): void;
54
- wrapper(): Any$J;
54
+ wrapper(): Any$K;
55
55
  free(): void;
56
56
  alloc(): void;
57
57
  elem(): ZPP_Vec2;
@@ -203,20 +203,20 @@ type NapeInner = any;
203
203
  *
204
204
  * Converted from nape-compiled.js lines 83412–83434.
205
205
  */
206
- type Any$I = any;
206
+ type Any$J = any;
207
207
  declare class ZPP_Vec3 {
208
208
  static __name__: string[];
209
- static _zpp: Any$I;
210
- static _wrapFn: ((zpp: ZPP_Vec3) => Any$I) | null;
211
- outer: Any$I;
209
+ static _zpp: Any$J;
210
+ static _wrapFn: ((zpp: ZPP_Vec3) => Any$J) | null;
211
+ outer: Any$J;
212
212
  x: number;
213
213
  y: number;
214
214
  z: number;
215
215
  immutable: boolean;
216
216
  _validate: (() => void) | null;
217
- __class__: Any$I;
217
+ __class__: Any$J;
218
218
  validate(): void;
219
- wrapper(): Any$I;
219
+ wrapper(): Any$J;
220
220
  }
221
221
 
222
222
  /**
@@ -280,13 +280,13 @@ declare class Vec3 {
280
280
  *
281
281
  * Converted from nape-compiled.js lines 73495–73561, 133826.
282
282
  */
283
- type Any$H = any;
283
+ type Any$I = any;
284
284
  declare class ZPP_Mat23 {
285
285
  static __name__: string[];
286
- static _nape: Any$H;
287
- static _wrapFn: ((zpp: ZPP_Mat23) => Any$H) | null;
286
+ static _nape: Any$I;
287
+ static _wrapFn: ((zpp: ZPP_Mat23) => Any$I) | null;
288
288
  static zpp_pool: ZPP_Mat23 | null;
289
- outer: Any$H;
289
+ outer: Any$I;
290
290
  a: number;
291
291
  b: number;
292
292
  c: number;
@@ -295,13 +295,13 @@ declare class ZPP_Mat23 {
295
295
  ty: number;
296
296
  _invalidate: (() => void) | null;
297
297
  next: ZPP_Mat23 | null;
298
- __class__: Any$H;
298
+ __class__: Any$I;
299
299
  /** Static factory with pooling. */
300
300
  static get(): ZPP_Mat23;
301
301
  /** Create an identity matrix from pool. */
302
302
  static identity(): ZPP_Mat23;
303
303
  /** Create a public wrapper, recycling any existing inner. */
304
- wrapper(): Any$H;
304
+ wrapper(): Any$I;
305
305
  invalidate(): void;
306
306
  set(m: ZPP_Mat23): void;
307
307
  setas(a: number, b: number, c: number, d: number, tx: number, ty: number): void;
@@ -362,13 +362,13 @@ declare class Mat23 {
362
362
  *
363
363
  * Converted from nape-compiled.js lines 69554–69563.
364
364
  */
365
- type Any$G = any;
365
+ type Any$H = any;
366
366
  declare class ZPP_GeomPoly {
367
367
  static __name__: string[];
368
- outer: Any$G;
369
- vertices: Any$G;
370
- __class__: Any$G;
371
- constructor(outer?: Any$G);
368
+ outer: Any$H;
369
+ vertices: Any$H;
370
+ __class__: Any$H;
371
+ constructor(outer?: Any$H);
372
372
  }
373
373
 
374
374
  /**
@@ -392,7 +392,7 @@ declare class Winding {
392
392
  toString(): string;
393
393
  }
394
394
 
395
- type Any$F = any;
395
+ type Any$G = any;
396
396
  /**
397
397
  * A polygon represented as a circular doubly-linked list of vertices.
398
398
  *
@@ -407,8 +407,8 @@ declare class GeomPoly {
407
407
  zpp_inner: ZPP_GeomPoly;
408
408
  zpp_pool: GeomPoly | null;
409
409
  zpp_disp: boolean;
410
- get _inner(): Any$F;
411
- constructor(vertices?: Any$F);
410
+ get _inner(): Any$G;
411
+ constructor(vertices?: Any$G);
412
412
  private _checkDisposed;
413
413
  /** @internal Get compiled ZPP_GeomVert class */
414
414
  private static _gvClass;
@@ -434,12 +434,12 @@ declare class GeomPoly {
434
434
  private static _addVertices;
435
435
  /** @internal After copying, dispose weak Vec2 inputs */
436
436
  private static _disposeWeakInputs;
437
- static get(vertices?: Any$F): GeomPoly;
437
+ static get(vertices?: Any$G): GeomPoly;
438
438
  empty(): boolean;
439
439
  size(): number;
440
- iterator(): Any$F;
441
- forwardIterator(): Any$F;
442
- backwardsIterator(): Any$F;
440
+ iterator(): Any$G;
441
+ forwardIterator(): Any$G;
442
+ backwardsIterator(): Any$G;
443
443
  current(): Vec2;
444
444
  push(vertex: Vec2): this;
445
445
  pop(): this;
@@ -452,7 +452,7 @@ declare class GeomPoly {
452
452
  copy(): GeomPoly;
453
453
  dispose(): void;
454
454
  area(): number;
455
- winding(): Any$F;
455
+ winding(): Any$G;
456
456
  contains(point: Vec2): boolean;
457
457
  isClockwise(): boolean;
458
458
  isConvex(): boolean;
@@ -460,14 +460,14 @@ declare class GeomPoly {
460
460
  isMonotone(): boolean;
461
461
  isDegenerate(): boolean;
462
462
  simplify(epsilon: number): GeomPoly;
463
- simpleDecomposition(output?: Any$F): Any$F;
464
- monotoneDecomposition(output?: Any$F): Any$F;
465
- convexDecomposition(delaunay?: boolean, output?: Any$F): Any$F;
466
- triangularDecomposition(delaunay?: boolean, output?: Any$F): Any$F;
463
+ simpleDecomposition(output?: Any$G): Any$G;
464
+ monotoneDecomposition(output?: Any$G): Any$G;
465
+ convexDecomposition(delaunay?: boolean, output?: Any$G): Any$G;
466
+ triangularDecomposition(delaunay?: boolean, output?: Any$G): Any$G;
467
467
  inflate(inflation: number): GeomPoly;
468
- cut(start: Vec2, end: Vec2, boundedStart?: boolean, boundedEnd?: boolean, output?: Any$F): Any$F;
469
- transform(matrix: Any$F): this;
470
- bounds(): Any$F;
468
+ cut(start: Vec2, end: Vec2, boundedStart?: boolean, boundedEnd?: boolean, output?: Any$G): Any$G;
469
+ transform(matrix: Any$G): this;
470
+ bounds(): Any$G;
471
471
  top(): Vec2;
472
472
  bottom(): Vec2;
473
473
  left(): Vec2;
@@ -483,30 +483,30 @@ declare class GeomPoly {
483
483
  *
484
484
  * Converted from nape-compiled.js lines 63546–63965, 134951.
485
485
  */
486
- type Any$E = any;
486
+ type Any$F = any;
487
487
  declare class ZPP_AABB {
488
488
  static zpp_pool: ZPP_AABB | null;
489
489
  static __name__: string[];
490
- static _nape: Any$E;
491
- static _zpp: Any$E;
492
- static _wrapFn: ((zpp: ZPP_AABB) => Any$E) | null;
490
+ static _nape: Any$F;
491
+ static _zpp: Any$F;
492
+ static _wrapFn: ((zpp: ZPP_AABB) => Any$F) | null;
493
493
  _invalidate: ((self: ZPP_AABB) => void) | null;
494
494
  _validate: (() => void) | null;
495
495
  _immutable: boolean;
496
- outer: Any$E;
496
+ outer: Any$F;
497
497
  next: ZPP_AABB | null;
498
498
  minx: number;
499
499
  miny: number;
500
500
  maxx: number;
501
501
  maxy: number;
502
- wrap_min: Any$E;
503
- wrap_max: Any$E;
504
- __class__: Any$E;
502
+ wrap_min: Any$F;
503
+ wrap_max: Any$F;
504
+ __class__: Any$F;
505
505
  /** Static factory with pooling. */
506
506
  static get(minx: number, miny: number, maxx: number, maxy: number): ZPP_AABB;
507
507
  validate(): void;
508
508
  invalidate(): void;
509
- wrapper(): Any$E;
509
+ wrapper(): Any$F;
510
510
  alloc(): void;
511
511
  free(): void;
512
512
  copy(): ZPP_AABB;
@@ -517,10 +517,10 @@ declare class ZPP_AABB {
517
517
  private static _makeVec2Wrapper;
518
518
  getmin(): void;
519
519
  dom_min(): void;
520
- mod_min(min: Any$E): void;
520
+ mod_min(min: Any$F): void;
521
521
  getmax(): void;
522
522
  dom_max(): void;
523
- mod_max(max: Any$E): void;
523
+ mod_max(max: Any$F): void;
524
524
  intersectX(x: ZPP_AABB): boolean;
525
525
  intersectY(x: ZPP_AABB): boolean;
526
526
  intersect(x: ZPP_AABB): boolean;
@@ -584,18 +584,18 @@ declare class AABB {
584
584
  *
585
585
  * Converted from nape-compiled.js lines 72949–72972.
586
586
  */
587
- type Any$D = any;
587
+ type Any$E = any;
588
588
  declare class ZPP_MatMN {
589
589
  static __name__: string[];
590
- outer: Any$D;
590
+ outer: Any$E;
591
591
  m: number;
592
592
  n: number;
593
593
  x: number[];
594
- __class__: Any$D;
594
+ __class__: Any$E;
595
595
  constructor(m: number, n: number);
596
596
  }
597
597
 
598
- type Any$C = any;
598
+ type Any$D = any;
599
599
  /**
600
600
  * Variable-sized M×N matrix.
601
601
  *
@@ -606,7 +606,7 @@ declare class MatMN {
606
606
  zpp_inner: ZPP_MatMN;
607
607
  get _inner(): NapeInner;
608
608
  constructor(rows: number, cols: number);
609
- static _wrap(inner: Any$C): MatMN;
609
+ static _wrap(inner: Any$D): MatMN;
610
610
  get rows(): number;
611
611
  get cols(): number;
612
612
  x(row: number, col: number): number;
@@ -616,7 +616,7 @@ declare class MatMN {
616
616
  mul(matrix: MatMN): MatMN;
617
617
  }
618
618
 
619
- type Any$B = any;
619
+ type Any$C = any;
620
620
  /**
621
621
  * Isosurface extraction using the marching squares algorithm.
622
622
  *
@@ -639,7 +639,7 @@ declare class MarchingSquares {
639
639
  * @param output - Optional GeomPolyList to populate. If null, a new one is created.
640
640
  * @returns The populated GeomPolyList.
641
641
  */
642
- static run(iso: (x: number, y: number) => number, bounds: AABB, cellsize: Vec2, quality?: number, subgrid?: Vec2 | null, combine?: boolean, output?: Any$B): Any$B;
642
+ static run(iso: (x: number, y: number) => number, bounds: AABB, cellsize: Vec2, quality?: number, subgrid?: Vec2 | null, combine?: boolean, output?: Any$C): Any$C;
643
643
  }
644
644
 
645
645
  /**
@@ -675,31 +675,31 @@ declare class Ray {
675
675
  *
676
676
  * Converted from nape-compiled.js lines 38897–39076, 86860–86862.
677
677
  */
678
- type Any$A = any;
678
+ type Any$B = any;
679
679
  declare class ZPP_ConvexRayResult {
680
680
  static __name__: string[];
681
681
  static rayPool: ZPP_ConvexRayResult | null;
682
682
  static convexPool: ZPP_ConvexRayResult | null;
683
683
  static internal: boolean;
684
- static _createRayResult: (() => Any$A) | null;
685
- static _createConvexResult: (() => Any$A) | null;
686
- normal: Any$A;
687
- shape: Any$A;
688
- convex: Any$A;
689
- position: Any$A;
690
- ray: Any$A;
684
+ static _createRayResult: (() => Any$B) | null;
685
+ static _createConvexResult: (() => Any$B) | null;
686
+ normal: Any$B;
687
+ shape: Any$B;
688
+ convex: Any$B;
689
+ position: Any$B;
690
+ ray: Any$B;
691
691
  inner: boolean;
692
692
  next: ZPP_ConvexRayResult | null;
693
693
  toiDistance: number;
694
- __class__: Any$A;
695
- static getRay(normal: Any$A, time: number, inner: boolean, shape: Any$A): Any$A;
696
- static getConvex(normal: Any$A, position: Any$A, toiDistance: number, shape: Any$A): Any$A;
694
+ __class__: Any$B;
695
+ static getRay(normal: Any$B, time: number, inner: boolean, shape: Any$B): Any$B;
696
+ static getConvex(normal: Any$B, position: Any$B, toiDistance: number, shape: Any$B): Any$B;
697
697
  disposed(): void;
698
698
  free(): void;
699
699
  private static _disposeVec2;
700
700
  }
701
701
 
702
- type Any$z = any;
702
+ type Any$A = any;
703
703
  /**
704
704
  * Result from a convex-cast query.
705
705
  *
@@ -714,18 +714,18 @@ declare class ConvexResult {
714
714
  get _inner(): NapeInner;
715
715
  constructor();
716
716
  /** @internal */
717
- static _wrap(inner: Any$z): ConvexResult;
717
+ static _wrap(inner: Any$A): ConvexResult;
718
718
  get normal(): Vec2;
719
719
  get position(): Vec2;
720
720
  get toi(): number;
721
- get shape(): Any$z;
721
+ get shape(): Any$A;
722
722
  dispose(): void;
723
723
  toString(): string;
724
724
  /** @internal */
725
725
  private _disposed;
726
726
  }
727
727
 
728
- type Any$y = any;
728
+ type Any$z = any;
729
729
  /**
730
730
  * Result from a raycast query.
731
731
  *
@@ -740,18 +740,18 @@ declare class RayResult {
740
740
  get _inner(): NapeInner;
741
741
  constructor();
742
742
  /** @internal */
743
- static _wrap(inner: Any$y): RayResult;
743
+ static _wrap(inner: Any$z): RayResult;
744
744
  get normal(): Vec2;
745
745
  get distance(): number;
746
746
  get inner(): boolean;
747
- get shape(): Any$y;
747
+ get shape(): Any$z;
748
748
  dispose(): void;
749
749
  toString(): string;
750
750
  /** @internal */
751
751
  private _disposed;
752
752
  }
753
753
 
754
- type Any$x = any;
754
+ type Any$y = any;
755
755
  /**
756
756
  * Static utility class for geometric queries between shapes and bodies.
757
757
  *
@@ -769,7 +769,7 @@ declare class Geom {
769
769
  * @param out2 - Output Vec2 for closest point on body2.
770
770
  * @returns The distance between the two bodies.
771
771
  */
772
- static distanceBody(body1: Any$x, body2: Any$x, out1: Vec2, out2: Vec2): number;
772
+ static distanceBody(body1: Any$y, body2: Any$y, out1: Vec2, out2: Vec2): number;
773
773
  /**
774
774
  * Calculate minimum distance between two shapes and return closest points.
775
775
  * @param shape1 - First shape (must be part of a body).
@@ -778,28 +778,28 @@ declare class Geom {
778
778
  * @param out2 - Output Vec2 for closest point on shape2.
779
779
  * @returns The distance between the two shapes.
780
780
  */
781
- static distance(shape1: Any$x, shape2: Any$x, out1: Vec2, out2: Vec2): number;
781
+ static distance(shape1: Any$y, shape2: Any$y, out1: Vec2, out2: Vec2): number;
782
782
  /**
783
783
  * Test if two bodies intersect (any of their shapes overlap).
784
784
  * @param body1 - First body (must have shapes).
785
785
  * @param body2 - Second body (must have shapes).
786
786
  * @returns True if the bodies intersect.
787
787
  */
788
- static intersectsBody(body1: Any$x, body2: Any$x): boolean;
788
+ static intersectsBody(body1: Any$y, body2: Any$y): boolean;
789
789
  /**
790
790
  * Test if two shapes intersect.
791
791
  * @param shape1 - First shape (must be part of a body).
792
792
  * @param shape2 - Second shape (must be part of a body).
793
793
  * @returns True if the shapes intersect.
794
794
  */
795
- static intersects(shape1: Any$x, shape2: Any$x): boolean;
795
+ static intersects(shape1: Any$y, shape2: Any$y): boolean;
796
796
  /**
797
797
  * Test if shape1 fully contains shape2.
798
798
  * @param shape1 - Containing shape (must be part of a body).
799
799
  * @param shape2 - Contained shape (must be part of a body).
800
800
  * @returns True if shape1 contains shape2.
801
801
  */
802
- static contains(shape1: Any$x, shape2: Any$x): boolean;
802
+ static contains(shape1: Any$y, shape2: Any$y): boolean;
803
803
  }
804
804
 
805
805
  /**
@@ -863,7 +863,7 @@ declare class NapeList<T> implements Iterable<T> {
863
863
  *
864
864
  * Converted from nape-compiled.js lines 87523–87601, 135477–135481.
865
865
  */
866
- type Any$w = any;
866
+ type Any$x = any;
867
867
  declare class ZPP_Material {
868
868
  static zpp_pool: ZPP_Material | null;
869
869
  static WAKE: number;
@@ -876,27 +876,27 @@ declare class ZPP_Material {
876
876
  * _nape = the `nape` public namespace (for wrapper creation)
877
877
  * _zpp = the `zpp_nape` internal namespace (for ZNPList_ZPP_Shape)
878
878
  */
879
- static _nape: Any$w;
880
- static _zpp: Any$w;
879
+ static _nape: Any$x;
880
+ static _zpp: Any$x;
881
881
  /**
882
882
  * Wrapper factory callback, registered by the modernized Material class.
883
883
  * When set, wrapper() uses this instead of creating a compiled Material.
884
884
  */
885
- static _wrapFn: ((zpp: ZPP_Material) => Any$w) | null;
885
+ static _wrapFn: ((zpp: ZPP_Material) => Any$x) | null;
886
886
  elasticity: number;
887
887
  dynamicFriction: number;
888
888
  staticFriction: number;
889
889
  density: number;
890
890
  rollingFriction: number;
891
- shapes: Any$w;
892
- wrap_shapes: Any$w;
893
- outer: Any$w;
894
- userData: Any$w;
891
+ shapes: Any$x;
892
+ wrap_shapes: Any$x;
893
+ outer: Any$x;
894
+ userData: Any$x;
895
895
  next: ZPP_Material | null;
896
- __class__: Any$w;
896
+ __class__: Any$x;
897
897
  constructor();
898
898
  /** Create/return the public nape.phys.Material wrapper for this internal object. */
899
- wrapper(): Any$w;
899
+ wrapper(): Any$x;
900
900
  /** Called when this object is returned to the pool. */
901
901
  free(): void;
902
902
  /** Called when this object is taken from the pool. */
@@ -904,9 +904,9 @@ declare class ZPP_Material {
904
904
  /** Initialize the shapes list (called during feature construction). */
905
905
  feature_cons(): void;
906
906
  /** Register a shape that uses this material. */
907
- addShape(shape: Any$w): void;
907
+ addShape(shape: Any$x): void;
908
908
  /** Unregister a shape that no longer uses this material. */
909
- remShape(shape: Any$w): void;
909
+ remShape(shape: Any$x): void;
910
910
  /** Create a copy with the same property values. */
911
911
  copy(): ZPP_Material;
912
912
  /** Copy all property values from another ZPP_Material. */
@@ -966,36 +966,36 @@ declare class Material {
966
966
  *
967
967
  * Converted from nape-compiled.js lines 87335–87523, 135403.
968
968
  */
969
- type Any$v = any;
969
+ type Any$w = any;
970
970
  declare class ZPP_FluidProperties {
971
971
  static zpp_pool: ZPP_FluidProperties | null;
972
972
  static __name__: string[];
973
- static _nape: Any$v;
974
- static _zpp: Any$v;
975
- static _wrapFn: ((zpp: ZPP_FluidProperties) => Any$v) | null;
973
+ static _nape: Any$w;
974
+ static _zpp: Any$w;
975
+ static _wrapFn: ((zpp: ZPP_FluidProperties) => Any$w) | null;
976
976
  viscosity: number;
977
977
  density: number;
978
978
  gravityx: number;
979
979
  gravityy: number;
980
- wrap_gravity: Any$v;
981
- shapes: Any$v;
982
- wrap_shapes: Any$v;
983
- outer: Any$v;
984
- userData: Any$v;
980
+ wrap_gravity: Any$w;
981
+ shapes: Any$w;
982
+ wrap_shapes: Any$w;
983
+ outer: Any$w;
984
+ userData: Any$w;
985
985
  next: ZPP_FluidProperties | null;
986
- __class__: Any$v;
986
+ __class__: Any$w;
987
987
  constructor();
988
988
  /** Create/return the public nape.phys.FluidProperties wrapper. */
989
- wrapper(): Any$v;
989
+ wrapper(): Any$w;
990
990
  free(): void;
991
991
  alloc(): void;
992
992
  feature_cons(): void;
993
- addShape(shape: Any$v): void;
994
- remShape(shape: Any$v): void;
993
+ addShape(shape: Any$w): void;
994
+ remShape(shape: Any$w): void;
995
995
  /** Copy with object pooling. */
996
996
  copy(): ZPP_FluidProperties;
997
997
  /** Called when gravity Vec2 wrapper is invalidated (user set new gravity). */
998
- gravity_invalidate(x: Any$v): void;
998
+ gravity_invalidate(x: Any$w): void;
999
999
  /** Sync the gravity Vec2 wrapper with internal values. */
1000
1000
  gravity_validate(): void;
1001
1001
  /** Lazily create and return the gravity Vec2 wrapper. */
@@ -1046,33 +1046,33 @@ declare class FluidProperties {
1046
1046
  *
1047
1047
  * Converted from nape-compiled.js lines 63255–63366, 135329.
1048
1048
  */
1049
- type Any$u = any;
1049
+ type Any$v = any;
1050
1050
  declare class ZPP_InteractionFilter {
1051
1051
  static zpp_pool: ZPP_InteractionFilter | null;
1052
1052
  static __name__: string[];
1053
- static _nape: Any$u;
1054
- static _zpp: Any$u;
1055
- static _wrapFn: ((zpp: ZPP_InteractionFilter) => Any$u) | null;
1053
+ static _nape: Any$v;
1054
+ static _zpp: Any$v;
1055
+ static _wrapFn: ((zpp: ZPP_InteractionFilter) => Any$v) | null;
1056
1056
  collisionGroup: number;
1057
1057
  collisionMask: number;
1058
1058
  sensorGroup: number;
1059
1059
  sensorMask: number;
1060
1060
  fluidGroup: number;
1061
1061
  fluidMask: number;
1062
- shapes: Any$u;
1063
- wrap_shapes: Any$u;
1064
- outer: Any$u;
1065
- userData: Any$u;
1062
+ shapes: Any$v;
1063
+ wrap_shapes: Any$v;
1064
+ outer: Any$v;
1065
+ userData: Any$v;
1066
1066
  next: ZPP_InteractionFilter | null;
1067
- __class__: Any$u;
1067
+ __class__: Any$v;
1068
1068
  constructor();
1069
1069
  /** Create/return the public nape.dynamics.InteractionFilter wrapper. */
1070
- wrapper(): Any$u;
1070
+ wrapper(): Any$v;
1071
1071
  free(): void;
1072
1072
  alloc(): void;
1073
1073
  feature_cons(): void;
1074
- addShape(shape: Any$u): void;
1075
- remShape(shape: Any$u): void;
1074
+ addShape(shape: Any$v): void;
1075
+ remShape(shape: Any$v): void;
1076
1076
  /** Create a copy with object pooling. */
1077
1077
  copy(): ZPP_InteractionFilter;
1078
1078
  /** Test whether two filters allow collision between their shapes. */
@@ -1136,22 +1136,22 @@ declare class InteractionFilter {
1136
1136
  *
1137
1137
  * Converted from nape-compiled.js lines 63367–63463, 135330–135331.
1138
1138
  */
1139
- type Any$t = any;
1139
+ type Any$u = any;
1140
1140
  declare class ZPP_InteractionGroup {
1141
1141
  static SHAPE: number;
1142
1142
  static BODY: number;
1143
1143
  static __name__: string[];
1144
- static _zpp: Any$t;
1145
- static _wrapFn: ((zpp: ZPP_InteractionGroup) => Any$t) | null;
1146
- outer: Any$t;
1144
+ static _zpp: Any$u;
1145
+ static _wrapFn: ((zpp: ZPP_InteractionGroup) => Any$u) | null;
1146
+ outer: Any$u;
1147
1147
  ignore: boolean;
1148
1148
  group: ZPP_InteractionGroup | null;
1149
- groups: Any$t;
1150
- wrap_groups: Any$t;
1151
- interactors: Any$t;
1152
- wrap_interactors: Any$t;
1149
+ groups: Any$u;
1150
+ wrap_groups: Any$u;
1151
+ interactors: Any$u;
1152
+ wrap_interactors: Any$u;
1153
1153
  depth: number;
1154
- __class__: Any$t;
1154
+ __class__: Any$u;
1155
1155
  constructor();
1156
1156
  /** Set or change the parent group. */
1157
1157
  setGroup(group: ZPP_InteractionGroup | null): void;
@@ -1162,9 +1162,9 @@ declare class ZPP_InteractionGroup {
1162
1162
  /** Remove a child group. */
1163
1163
  remGroup(group: ZPP_InteractionGroup): void;
1164
1164
  /** Register an interactor in this group. */
1165
- addInteractor(intx: Any$t): void;
1165
+ addInteractor(intx: Any$u): void;
1166
1166
  /** Unregister an interactor from this group. */
1167
- remInteractor(intx: Any$t, flag?: number): void;
1167
+ remInteractor(intx: Any$u, flag?: number): void;
1168
1168
  }
1169
1169
 
1170
1170
  /**
@@ -1371,24 +1371,24 @@ declare class Constraint {
1371
1371
  *
1372
1372
  * Converted from nape-compiled.js lines 27259–27304, 112053–112139.
1373
1373
  */
1374
- type Any$s = any;
1374
+ type Any$t = any;
1375
1375
  declare class ZPP_Listener {
1376
1376
  static __name__: string[];
1377
- static _nape: Any$s;
1378
- static _zpp: Any$s;
1377
+ static _nape: Any$t;
1378
+ static _zpp: Any$t;
1379
1379
  static internal: boolean;
1380
- static types: Any$s[];
1381
- static events: Any$s[];
1382
- space: Any$s;
1383
- interaction: Any$s;
1384
- constraint: Any$s;
1385
- body: Any$s;
1380
+ static types: Any$t[];
1381
+ static events: Any$t[];
1382
+ space: Any$t;
1383
+ interaction: Any$t;
1384
+ constraint: Any$t;
1385
+ body: Any$t;
1386
1386
  precedence: number;
1387
1387
  event: number;
1388
1388
  type: number;
1389
1389
  id: number;
1390
- outer: Any$s;
1391
- __class__: Any$s;
1390
+ outer: Any$t;
1391
+ __class__: Any$t;
1392
1392
  constructor();
1393
1393
  /** Sort comparator: higher precedence first, then by id descending. */
1394
1394
  static setlt(a: ZPP_Listener, b: ZPP_Listener): boolean;
@@ -1464,20 +1464,20 @@ declare class ListenerType {
1464
1464
  * Fully modernized from nape-compiled.js lines 231–433.
1465
1465
  */
1466
1466
 
1467
- type Any$r = any;
1467
+ type Any$s = any;
1468
1468
  declare class Listener {
1469
1469
  static __name__: string[];
1470
1470
  zpp_inner: ZPP_Listener;
1471
- get _inner(): Any$r;
1471
+ get _inner(): Any$s;
1472
1472
  constructor();
1473
- static _wrap(inner: Any$r): Listener;
1473
+ static _wrap(inner: Any$s): Listener;
1474
1474
  get type(): ListenerType;
1475
1475
  get event(): CbEvent;
1476
1476
  set event(event: CbEvent);
1477
1477
  get precedence(): number;
1478
1478
  set precedence(precedence: number);
1479
1479
  get space(): Space | null;
1480
- set space(space: Space | Any$r | null);
1480
+ set space(space: Space | Any$s | null);
1481
1481
  toString(): string;
1482
1482
  }
1483
1483
 
@@ -1564,46 +1564,46 @@ declare class BodyType {
1564
1564
  * Converted from nape-compiled.js lines 52431–54547.
1565
1565
  */
1566
1566
 
1567
- type Any$q = any;
1567
+ type Any$r = any;
1568
1568
  declare class ZPP_Body {
1569
1569
  static __name__: string[];
1570
- static __super__: Any$q;
1570
+ static __super__: Any$r;
1571
1571
  /**
1572
1572
  * Namespace references, set by the compiled module after import.
1573
1573
  * _nape = the `nape` public namespace
1574
1574
  * _zpp = the `zpp_nape` internal namespace
1575
1575
  */
1576
- static _nape: Any$q;
1577
- static _zpp: Any$q;
1578
- static types: Any$q[];
1579
- static bodystack: Any$q;
1580
- static bodyset: Any$q;
1576
+ static _nape: Any$r;
1577
+ static _zpp: Any$r;
1578
+ static types: Any$r[];
1579
+ static bodystack: Any$r;
1580
+ static bodyset: Any$r;
1581
1581
  static cur_graph_depth: number;
1582
- static bodysetlt(a: Any$q, b: Any$q): boolean;
1583
- static __static(): Any$q;
1584
- outer_i: Any$q;
1582
+ static bodysetlt(a: Any$r, b: Any$r): boolean;
1583
+ static __static(): Any$r;
1584
+ outer_i: Any$r;
1585
1585
  id: number;
1586
- userData: Any$q;
1587
- ishape: Any$q;
1588
- ibody: Any$q;
1589
- icompound: Any$q;
1590
- wrap_cbTypes: Any$q;
1591
- cbSet: Any$q;
1592
- cbTypes: Any$q;
1593
- group: Any$q;
1594
- cbsets: Any$q;
1595
- outer: Any$q;
1586
+ userData: Any$r;
1587
+ ishape: Any$r;
1588
+ ibody: Any$r;
1589
+ icompound: Any$r;
1590
+ wrap_cbTypes: Any$r;
1591
+ cbSet: Any$r;
1592
+ cbTypes: Any$r;
1593
+ group: Any$r;
1594
+ cbsets: Any$r;
1595
+ outer: Any$r;
1596
1596
  world: boolean;
1597
1597
  type: number;
1598
- compound: Any$q;
1599
- shapes: Any$q;
1600
- wrap_shapes: Any$q;
1601
- space: Any$q;
1602
- arbiters: Any$q;
1603
- wrap_arbiters: Any$q;
1604
- constraints: Any$q;
1605
- wrap_constraints: Any$q;
1606
- component: Any$q;
1598
+ compound: Any$r;
1599
+ shapes: Any$r;
1600
+ wrap_shapes: Any$r;
1601
+ space: Any$r;
1602
+ arbiters: Any$r;
1603
+ wrap_arbiters: Any$r;
1604
+ constraints: Any$r;
1605
+ wrap_constraints: Any$r;
1606
+ component: Any$r;
1607
1607
  graph_depth: number;
1608
1608
  sweepTime: number;
1609
1609
  sweep_angvel: number;
@@ -1616,20 +1616,20 @@ declare class ZPP_Body {
1616
1616
  pre_posy: number;
1617
1617
  posx: number;
1618
1618
  posy: number;
1619
- wrap_pos: Any$q;
1619
+ wrap_pos: Any$r;
1620
1620
  velx: number;
1621
1621
  vely: number;
1622
- wrap_vel: Any$q;
1622
+ wrap_vel: Any$r;
1623
1623
  forcex: number;
1624
1624
  forcey: number;
1625
- wrap_force: Any$q;
1625
+ wrap_force: Any$r;
1626
1626
  kinvelx: number;
1627
1627
  kinvely: number;
1628
- wrap_kinvel: Any$q;
1628
+ wrap_kinvel: Any$r;
1629
1629
  svelx: number;
1630
1630
  svely: number;
1631
- wrap_svel: Any$q;
1632
- wrapcvel: Any$q;
1631
+ wrap_svel: Any$r;
1632
+ wrapcvel: Any$r;
1633
1633
  angvel: number;
1634
1634
  torque: number;
1635
1635
  kinangvel: number;
@@ -1666,9 +1666,9 @@ declare class ZPP_Body {
1666
1666
  worldCOMx: number;
1667
1667
  worldCOMy: number;
1668
1668
  zip_worldCOM: boolean;
1669
- wrap_localCOM: Any$q;
1670
- wrap_worldCOM: Any$q;
1671
- __class__: Any$q;
1669
+ wrap_localCOM: Any$r;
1670
+ wrap_worldCOM: Any$r;
1671
+ __class__: Any$r;
1672
1672
  constructor();
1673
1673
  isStatic(): boolean;
1674
1674
  isDynamic(): boolean;
@@ -1676,23 +1676,23 @@ declare class ZPP_Body {
1676
1676
  invalidate_type(): void;
1677
1677
  invalidate_shapes(): void;
1678
1678
  init_bodysetlist(): void;
1679
- connectedBodies_cont(b: Any$q): void;
1680
- connectedBodies(depth: number, output: Any$q): Any$q;
1681
- interactingBodies(type: number, output: Any$q): Any$q;
1679
+ connectedBodies_cont(b: Any$r): void;
1680
+ connectedBodies(depth: number, output: Any$r): Any$r;
1681
+ interactingBodies(type: number, output: Any$r): Any$r;
1682
1682
  atRest(dt: number): boolean;
1683
1683
  refreshArbiters(): void;
1684
1684
  sweepIntegrate(dt: number): void;
1685
- sweepValidate(s: Any$q): void;
1685
+ sweepValidate(s: Any$r): void;
1686
1686
  invalidate_pos(): void;
1687
- pos_invalidate(pos: Any$q): void;
1687
+ pos_invalidate(pos: Any$r): void;
1688
1688
  pos_validate(): void;
1689
- vel_invalidate(vel: Any$q): void;
1689
+ vel_invalidate(vel: Any$r): void;
1690
1690
  vel_validate(): void;
1691
- kinvel_invalidate(vel: Any$q): void;
1691
+ kinvel_invalidate(vel: Any$r): void;
1692
1692
  kinvel_validate(): void;
1693
- svel_invalidate(vel: Any$q): void;
1693
+ svel_invalidate(vel: Any$r): void;
1694
1694
  svel_validate(): void;
1695
- force_invalidate(force: Any$q): void;
1695
+ force_invalidate(force: Any$r): void;
1696
1696
  force_validate(): void;
1697
1697
  private _setupVec2Wrapper;
1698
1698
  setupPosition(): void;
@@ -1729,37 +1729,37 @@ declare class ZPP_Body {
1729
1729
  getworldCOM(): void;
1730
1730
  __immutable_midstep(): void;
1731
1731
  clear(): void;
1732
- shapes_adder(s: Any$q): boolean;
1733
- shapes_subber(s: Any$q): void;
1734
- shapes_invalidate(_param: Any$q): void;
1732
+ shapes_adder(s: Any$r): boolean;
1733
+ shapes_subber(s: Any$r): void;
1734
+ shapes_invalidate(_param: Any$r): void;
1735
1735
  shapes_modifiable(): void;
1736
1736
  addedToSpace(): void;
1737
1737
  removedFromSpace(): void;
1738
1738
  private _removeArbiterFromList;
1739
- copy(): Any$q;
1739
+ copy(): Any$r;
1740
1740
  wake: () => void;
1741
1741
  __iaddedToSpace: () => void;
1742
1742
  __iremovedFromSpace: () => void;
1743
1743
  immutable_midstep: (name: string) => void;
1744
- copyto: (ret: Any$q) => void;
1745
- insert_cbtype: (cb: Any$q) => void;
1744
+ copyto: (ret: Any$r) => void;
1745
+ insert_cbtype: (cb: Any$r) => void;
1746
1746
  alloc_cbSet: () => void;
1747
1747
  dealloc_cbSet: () => void;
1748
1748
  setupcbTypes: () => void;
1749
1749
  immutable_cbTypes: () => void;
1750
- wrap_cbTypes_subber: (pcb: Any$q) => void;
1751
- wrap_cbTypes_adder: (cb: Any$q) => void;
1752
- setGroup: (group: Any$q) => void;
1753
- lookup_group: () => Any$q;
1754
- getSpace: () => Any$q;
1750
+ wrap_cbTypes_subber: (pcb: Any$r) => void;
1751
+ wrap_cbTypes_adder: (cb: Any$r) => void;
1752
+ setGroup: (group: Any$r) => void;
1753
+ lookup_group: () => Any$r;
1754
+ getSpace: () => Any$r;
1755
1755
  isShape: () => boolean;
1756
1756
  isBody: () => boolean;
1757
1757
  isCompound: () => boolean;
1758
1758
  static _initialized: boolean;
1759
- static _init(zpp: Any$q, nape: Any$q): void;
1759
+ static _init(zpp: Any$r, nape: Any$r): void;
1760
1760
  }
1761
1761
 
1762
- type Any$p = any;
1762
+ type Any$q = any;
1763
1763
  /**
1764
1764
  * A rigid body in the physics simulation.
1765
1765
  *
@@ -1767,19 +1767,19 @@ type Any$p = any;
1767
1767
  */
1768
1768
  declare class Body extends Interactor {
1769
1769
  static __name__: string[];
1770
- static __super__: Any$p;
1770
+ static __super__: Any$q;
1771
1771
  /** Direct access to the extracted internal ZPP_Body. */
1772
1772
  zpp_inner: ZPP_Body;
1773
1773
  debugDraw: boolean;
1774
- /** @internal */ set_type: (type: Any$p) => Any$p;
1775
- /** @internal */ set_position: (position: Any$p) => Any$p;
1774
+ /** @internal */ set_type: (type: Any$q) => Any$q;
1775
+ /** @internal */ set_position: (position: Any$q) => Any$q;
1776
1776
  /** @internal */ set_rotation: (rotation: number) => number;
1777
- /** @internal */ set_velocity: (velocity: Any$p) => Any$p;
1777
+ /** @internal */ set_velocity: (velocity: Any$q) => Any$q;
1778
1778
  /** @internal */ set_angularVel: (angularVel: number) => number;
1779
- /** @internal */ set_kinematicVel: (kinematicVel: Any$p) => Any$p;
1779
+ /** @internal */ set_kinematicVel: (kinematicVel: Any$q) => Any$q;
1780
1780
  /** @internal */ set_kinAngVel: (kinAngVel: number) => number;
1781
- /** @internal */ set_surfaceVel: (surfaceVel: Any$p) => Any$p;
1782
- /** @internal */ set_force: (force: Any$p) => Any$p;
1781
+ /** @internal */ set_surfaceVel: (surfaceVel: Any$q) => Any$q;
1782
+ /** @internal */ set_force: (force: Any$q) => Any$q;
1783
1783
  /** @internal */ set_torque: (torque: number) => number;
1784
1784
  /** @internal */ get_mass: () => number;
1785
1785
  /** @internal */ set_mass: (mass: number) => number;
@@ -1791,36 +1791,36 @@ declare class Body extends Interactor {
1791
1791
  /** @internal */ set_gravMassScale: (gravMassScale: number) => number;
1792
1792
  /** @internal */ set_allowMovement: (v: boolean) => boolean;
1793
1793
  /** @internal */ set_allowRotation: (v: boolean) => boolean;
1794
- /** @internal */ set_space: (space: Any$p) => Any$p;
1795
- /** @internal */ set_compound: (compound: Any$p) => Any$p;
1796
- /** @internal */ get_localCOM: () => Any$p;
1797
- /** @internal */ get_worldCOM: () => Any$p;
1798
- /** @internal */ integrate: (deltaTime: number) => Any$p;
1799
- /** @internal */ applyImpulse: (impulse: Any$p, pos?: Any$p, sleepable?: boolean) => void;
1794
+ /** @internal */ set_space: (space: Any$q) => Any$q;
1795
+ /** @internal */ set_compound: (compound: Any$q) => Any$q;
1796
+ /** @internal */ get_localCOM: () => Any$q;
1797
+ /** @internal */ get_worldCOM: () => Any$q;
1798
+ /** @internal */ integrate: (deltaTime: number) => Any$q;
1799
+ /** @internal */ applyImpulse: (impulse: Any$q, pos?: Any$q, sleepable?: boolean) => void;
1800
1800
  /** @internal */ applyAngularImpulse: (impulse: number, sleepable?: boolean) => void;
1801
- /** @internal */ setVelocityFromTarget: (targetPosition: Any$p, targetRotation: number, deltaTime: number) => Any$p;
1802
- /** @internal */ localPointToWorld: (point: Any$p, weak?: boolean) => Any$p;
1803
- /** @internal */ worldPointToLocal: (point: Any$p, weak?: boolean) => Any$p;
1804
- /** @internal */ localVectorToWorld: (vector: Any$p, weak?: boolean) => Any$p;
1805
- /** @internal */ worldVectorToLocal: (vector: Any$p, weak?: boolean) => Any$p;
1806
- /** @internal */ translateShapes: (translation: Any$p) => void;
1801
+ /** @internal */ setVelocityFromTarget: (targetPosition: Any$q, targetRotation: number, deltaTime: number) => Any$q;
1802
+ /** @internal */ localPointToWorld: (point: Any$q, weak?: boolean) => Any$q;
1803
+ /** @internal */ worldPointToLocal: (point: Any$q, weak?: boolean) => Any$q;
1804
+ /** @internal */ localVectorToWorld: (vector: Any$q, weak?: boolean) => Any$q;
1805
+ /** @internal */ worldVectorToLocal: (vector: Any$q, weak?: boolean) => Any$q;
1806
+ /** @internal */ translateShapes: (translation: Any$q) => void;
1807
1807
  /** @internal */ rotateShapes: (angle: number) => void;
1808
1808
  /** @internal */ scaleShapes: (scaleX: number, scaleY: number) => void;
1809
1809
  /** @internal */ align: () => void;
1810
- /** @internal */ rotate: (centre: Any$p, angle: number) => void;
1811
- /** @internal */ setShapeMaterials: (material: Any$p) => void;
1812
- /** @internal */ setShapeFilters: (filter: Any$p) => void;
1813
- /** @internal */ setShapeFluidProperties: (fluidProperties: Any$p) => void;
1814
- /** @internal */ contains: (point: Any$p) => boolean;
1810
+ /** @internal */ rotate: (centre: Any$q, angle: number) => void;
1811
+ /** @internal */ setShapeMaterials: (material: Any$q) => void;
1812
+ /** @internal */ setShapeFilters: (filter: Any$q) => void;
1813
+ /** @internal */ setShapeFluidProperties: (fluidProperties: Any$q) => void;
1814
+ /** @internal */ contains: (point: Any$q) => boolean;
1815
1815
  /** @internal */ crushFactor: () => number;
1816
- /** @internal */ connectedBodies: (depth?: number, output?: Any$p) => Any$p;
1817
- /** @internal */ interactingBodies: (type?: Any$p, depth?: number, output?: Any$p) => Any$p;
1818
- /** @internal */ get_massMode: () => Any$p;
1819
- /** @internal */ set_massMode: (mode: Any$p) => Any$p;
1820
- /** @internal */ get_inertiaMode: () => Any$p;
1821
- /** @internal */ set_inertiaMode: (mode: Any$p) => Any$p;
1822
- /** @internal */ get_gravMassMode: () => Any$p;
1823
- /** @internal */ set_gravMassMode: (mode: Any$p) => Any$p;
1816
+ /** @internal */ connectedBodies: (depth?: number, output?: Any$q) => Any$q;
1817
+ /** @internal */ interactingBodies: (type?: Any$q, depth?: number, output?: Any$q) => Any$q;
1818
+ /** @internal */ get_massMode: () => Any$q;
1819
+ /** @internal */ set_massMode: (mode: Any$q) => Any$q;
1820
+ /** @internal */ get_inertiaMode: () => Any$q;
1821
+ /** @internal */ set_inertiaMode: (mode: Any$q) => Any$q;
1822
+ /** @internal */ get_gravMassMode: () => Any$q;
1823
+ /** @internal */ set_gravMassMode: (mode: Any$q) => Any$q;
1824
1824
  /** @internal */ _toString: () => string;
1825
1825
  constructor(type?: BodyType, position?: Vec2);
1826
1826
  /** @internal */
@@ -1870,40 +1870,40 @@ declare class Body extends Interactor {
1870
1870
  get shapes(): NapeList<Shape>;
1871
1871
  get space(): Space;
1872
1872
  set space(value: Space | null);
1873
- get compound(): Any$p;
1874
- set compound(value: Any$p);
1873
+ get compound(): Any$q;
1874
+ set compound(value: Any$q);
1875
1875
  get bounds(): AABB;
1876
1876
  get constraintVelocity(): Vec2;
1877
1877
  get localCOM(): Vec2;
1878
1878
  get worldCOM(): Vec2;
1879
1879
  copy(): Body;
1880
1880
  toString(): string;
1881
- get_type(): Any$p;
1882
- get_shapes(): Any$p;
1881
+ get_type(): Any$q;
1882
+ get_shapes(): Any$q;
1883
1883
  get_isBullet(): boolean;
1884
1884
  set_isBullet(v: boolean): boolean;
1885
1885
  get_disableCCD(): boolean;
1886
1886
  set_disableCCD(v: boolean): boolean;
1887
- get_position(): Any$p;
1888
- get_velocity(): Any$p;
1887
+ get_position(): Any$q;
1888
+ get_velocity(): Any$q;
1889
1889
  get_rotation(): number;
1890
1890
  get_angularVel(): number;
1891
- get_kinematicVel(): Any$p;
1891
+ get_kinematicVel(): Any$q;
1892
1892
  get_kinAngVel(): number;
1893
- get_surfaceVel(): Any$p;
1894
- get_force(): Any$p;
1893
+ get_surfaceVel(): Any$q;
1894
+ get_force(): Any$q;
1895
1895
  get_torque(): number;
1896
- get_bounds(): Any$p;
1897
- get_constraintVelocity(): Any$p;
1896
+ get_bounds(): Any$q;
1897
+ get_constraintVelocity(): Any$q;
1898
1898
  get_constraintMass(): number;
1899
1899
  get_constraintInertia(): number;
1900
1900
  get_allowMovement(): boolean;
1901
1901
  get_allowRotation(): boolean;
1902
1902
  get_isSleeping(): boolean;
1903
- get_compound(): Any$p;
1904
- get_space(): Any$p;
1905
- get_arbiters(): Any$p;
1906
- get_constraints(): Any$p;
1903
+ get_compound(): Any$q;
1904
+ get_space(): Any$q;
1905
+ get_arbiters(): Any$q;
1906
+ get_constraints(): Any$q;
1907
1907
  }
1908
1908
 
1909
1909
  /**
@@ -1914,77 +1914,77 @@ declare class Body extends Interactor {
1914
1914
  *
1915
1915
  * Converted from nape-compiled.js lines 55195–55521.
1916
1916
  */
1917
- type Any$o = any;
1917
+ type Any$p = any;
1918
1918
  declare class ZPP_Compound {
1919
1919
  static __name__: string[];
1920
- static __super__: Any$o;
1920
+ static __super__: Any$p;
1921
1921
  /**
1922
1922
  * Namespace references, set by the compiled module after import.
1923
1923
  * _nape = the `nape` public namespace (for wrapper creation in copy())
1924
1924
  * _zpp = the `zpp_nape` internal namespace (for ZNPList_*, ZPP_BodyList, etc.)
1925
1925
  */
1926
- static _nape: Any$o;
1927
- static _zpp: Any$o;
1926
+ static _nape: Any$p;
1927
+ static _zpp: Any$p;
1928
1928
  /**
1929
1929
  * Wrapper factory callback, registered by the modernized Compound class.
1930
1930
  * When set, wrapper() uses this instead of the compiled Compound constructor.
1931
1931
  */
1932
- static _wrapFn: ((zpp: ZPP_Compound) => Any$o) | null;
1933
- outer_i: Any$o;
1932
+ static _wrapFn: ((zpp: ZPP_Compound) => Any$p) | null;
1933
+ outer_i: Any$p;
1934
1934
  id: number;
1935
- userData: Any$o;
1936
- ishape: Any$o;
1937
- ibody: Any$o;
1938
- icompound: Any$o;
1939
- wrap_cbTypes: Any$o;
1940
- cbSet: Any$o;
1941
- cbTypes: Any$o;
1942
- group: Any$o;
1943
- cbsets: Any$o;
1944
- outer: Any$o;
1945
- bodies: Any$o;
1946
- constraints: Any$o;
1947
- compounds: Any$o;
1948
- wrap_bodies: Any$o;
1949
- wrap_constraints: Any$o;
1950
- wrap_compounds: Any$o;
1935
+ userData: Any$p;
1936
+ ishape: Any$p;
1937
+ ibody: Any$p;
1938
+ icompound: Any$p;
1939
+ wrap_cbTypes: Any$p;
1940
+ cbSet: Any$p;
1941
+ cbTypes: Any$p;
1942
+ group: Any$p;
1943
+ cbsets: Any$p;
1944
+ outer: Any$p;
1945
+ bodies: Any$p;
1946
+ constraints: Any$p;
1947
+ compounds: Any$p;
1948
+ wrap_bodies: Any$p;
1949
+ wrap_constraints: Any$p;
1950
+ wrap_compounds: Any$p;
1951
1951
  depth: number;
1952
- compound: Any$o;
1953
- space: Any$o;
1954
- __class__: Any$o;
1952
+ compound: Any$p;
1953
+ space: Any$p;
1954
+ __class__: Any$p;
1955
1955
  constructor();
1956
1956
  __imutable_midstep(name: string): void;
1957
1957
  addedToSpace(): void;
1958
1958
  removedFromSpace(): void;
1959
1959
  breakApart(): void;
1960
1960
  private static _zppOf;
1961
- bodies_adder(x: Any$o): boolean;
1962
- bodies_subber(x: Any$o): void;
1961
+ bodies_adder(x: Any$p): boolean;
1962
+ bodies_subber(x: Any$p): void;
1963
1963
  bodies_modifiable(): void;
1964
- constraints_adder(x: Any$o): boolean;
1965
- constraints_subber(x: Any$o): void;
1964
+ constraints_adder(x: Any$p): boolean;
1965
+ constraints_subber(x: Any$p): void;
1966
1966
  constraints_modifiable(): void;
1967
- compounds_adder(x: Any$o): boolean;
1968
- compounds_subber(x: Any$o): void;
1967
+ compounds_adder(x: Any$p): boolean;
1968
+ compounds_subber(x: Any$p): void;
1969
1969
  compounds_modifiable(): void;
1970
- copy(dict?: Any$o[], todo?: Any$o[]): Any$o;
1970
+ copy(dict?: Any$p[], todo?: Any$p[]): Any$p;
1971
1971
  isShape: () => boolean;
1972
1972
  isBody: () => boolean;
1973
1973
  isCompound: () => boolean;
1974
1974
  __iaddedToSpace: () => void;
1975
1975
  __iremovedFromSpace: () => void;
1976
1976
  wake: () => void;
1977
- getSpace: () => Any$o;
1977
+ getSpace: () => Any$p;
1978
1978
  setupcbTypes: () => void;
1979
1979
  immutable_cbTypes: () => void;
1980
- wrap_cbTypes_subber: (pcb: Any$o) => void;
1981
- wrap_cbTypes_adder: (cb: Any$o) => boolean;
1982
- insert_cbtype: (cb: Any$o) => void;
1980
+ wrap_cbTypes_subber: (pcb: Any$p) => void;
1981
+ wrap_cbTypes_adder: (cb: Any$p) => boolean;
1982
+ insert_cbtype: (cb: Any$p) => void;
1983
1983
  alloc_cbSet: () => void;
1984
1984
  dealloc_cbSet: () => void;
1985
1985
  immutable_midstep: (name: string) => void;
1986
- copyto: (ret: Any$o) => void;
1987
- lookup_group: () => Any$o;
1986
+ copyto: (ret: Any$p) => void;
1987
+ lookup_group: () => Any$p;
1988
1988
  /**
1989
1989
  * Initialize prototype by copying ZPP_Interactor methods.
1990
1990
  * Must be called after _zpp is set (during compiled module init).
@@ -1992,7 +1992,7 @@ declare class ZPP_Compound {
1992
1992
  static _init(): void;
1993
1993
  }
1994
1994
 
1995
- type Any$n = any;
1995
+ type Any$o = any;
1996
1996
  /**
1997
1997
  * A compound physics object — a hierarchical grouping of Bodies, Constraints,
1998
1998
  * and other Compounds.
@@ -2001,18 +2001,18 @@ type Any$n = any;
2001
2001
  */
2002
2002
  declare class Compound extends Interactor {
2003
2003
  static __name__: string[];
2004
- static __super__: Any$n;
2004
+ static __super__: Any$o;
2005
2005
  /** Direct access to the extracted internal ZPP_Compound. */
2006
2006
  zpp_inner: ZPP_Compound;
2007
2007
  constructor();
2008
2008
  /** @internal */
2009
2009
  static _wrap(inner: NapeInner): Compound;
2010
2010
  /** Bodies in this compound. */
2011
- get bodies(): Any$n;
2011
+ get bodies(): Any$o;
2012
2012
  /** Constraints in this compound. */
2013
- get constraints(): Any$n;
2013
+ get constraints(): Any$o;
2014
2014
  /** Child compounds in this compound. */
2015
- get compounds(): Any$n;
2015
+ get compounds(): Any$o;
2016
2016
  /** Parent compound, or null if this is a root compound. */
2017
2017
  get compound(): Compound | null;
2018
2018
  set compound(value: Compound | null);
@@ -2026,7 +2026,7 @@ declare class Compound extends Interactor {
2026
2026
  /** Recursively visit all bodies in this compound and its sub-compounds. */
2027
2027
  visitBodies(lambda: (body: Body) => void): void;
2028
2028
  /** Recursively visit all constraints in this compound and its sub-compounds. */
2029
- visitConstraints(lambda: (constraint: Any$n) => void): void;
2029
+ visitConstraints(lambda: (constraint: Any$o) => void): void;
2030
2030
  /** Recursively visit all sub-compounds in this compound. */
2031
2031
  visitCompounds(lambda: (compound: Compound) => void): void;
2032
2032
  /** Calculate the center of mass of all bodies in this compound. */
@@ -2036,13 +2036,13 @@ declare class Compound extends Interactor {
2036
2036
  /** Rotate all bodies in this compound around the given centre point. */
2037
2037
  rotate(centre: Vec2, angle: number): Compound;
2038
2038
  toString(): string;
2039
- get_bodies(): Any$n;
2040
- get_constraints(): Any$n;
2041
- get_compounds(): Any$n;
2042
- get_compound(): Any$n;
2043
- set_compound(compound: Any$n): Any$n;
2044
- get_space(): Any$n;
2045
- set_space(space: Any$n): Any$n;
2039
+ get_bodies(): Any$o;
2040
+ get_constraints(): Any$o;
2041
+ get_compounds(): Any$o;
2042
+ get_compound(): Any$o;
2043
+ set_compound(compound: Any$o): Any$o;
2044
+ get_space(): Any$o;
2045
+ set_space(space: Any$o): Any$o;
2046
2046
  }
2047
2047
 
2048
2048
  /**
@@ -2198,6 +2198,67 @@ declare class ArbiterType {
2198
2198
  toString(): string;
2199
2199
  }
2200
2200
 
2201
+ /**
2202
+ * ZPP_Arbiter — Internal arbiter base class for the nape physics engine.
2203
+ *
2204
+ * Represents an interaction (collision, fluid, or sensor) between two shapes.
2205
+ * Manages body arbiter lists, pooled wrapper creation, and state tracking.
2206
+ * Subclassed by ZPP_ColArbiter, ZPP_FluidArbiter, and ZPP_SensorArbiter.
2207
+ *
2208
+ * Converted from nape-compiled.js lines 29044–29362, 80738–80766.
2209
+ */
2210
+ type Any$n = any;
2211
+ declare class ZPP_Arbiter {
2212
+ static __name__: string[];
2213
+ static _nape: Any$n;
2214
+ static _zpp: Any$n;
2215
+ static internal: boolean;
2216
+ static COL: number;
2217
+ static FLUID: number;
2218
+ static SENSOR: number;
2219
+ static types: Any$n[];
2220
+ outer: Any$n;
2221
+ hnext: ZPP_Arbiter | null;
2222
+ id: number;
2223
+ di: number;
2224
+ stamp: number;
2225
+ up_stamp: number;
2226
+ sleep_stamp: number;
2227
+ endGenerated: number;
2228
+ active: boolean;
2229
+ cleared: boolean;
2230
+ sleeping: boolean;
2231
+ present: number;
2232
+ intchange: boolean;
2233
+ presentable: boolean;
2234
+ continuous: boolean;
2235
+ fresh: boolean;
2236
+ immState: number;
2237
+ invalidated: boolean;
2238
+ b1: Any$n;
2239
+ b2: Any$n;
2240
+ ws1: Any$n;
2241
+ ws2: Any$n;
2242
+ pair: Any$n;
2243
+ type: number;
2244
+ colarb: Any$n;
2245
+ fluidarb: Any$n;
2246
+ sensorarb: Any$n;
2247
+ __class__: Any$n;
2248
+ constructor();
2249
+ wrapper(): Any$n;
2250
+ inactiveme(): boolean;
2251
+ acting(): boolean;
2252
+ swap_features(): void;
2253
+ lazyRetire(s: Any$n, b: Any$n): void;
2254
+ sup_assign(s1: Any$n, s2: Any$n, id: number, di: number): void;
2255
+ sup_retire(): void;
2256
+ /** Remove this arbiter from a ZNPList_ZPP_Arbiter */
2257
+ static _removeFromArbiterList(list: Any$n, arb: ZPP_Arbiter, zpp: Any$n): void;
2258
+ /** Add this arbiter to a ZNPList_ZPP_Arbiter */
2259
+ static _addToArbiterList(list: Any$n, arb: ZPP_Arbiter, zpp: Any$n): void;
2260
+ }
2261
+
2201
2262
  type Any$m = any;
2202
2263
  /**
2203
2264
  * Represents an interaction arbiter between two shapes.
@@ -2205,12 +2266,12 @@ type Any$m = any;
2205
2266
  * Arbiters are pooled internally by the engine — they cannot be created directly.
2206
2267
  * Access arbiters via `Space.arbiters`, `Body.arbiters`, or callback handlers.
2207
2268
  *
2208
- * Thin wrapperdelegates to compiled ZPP_Arbiter (not yet extracted).
2269
+ * Fully modernizeduses extracted ZPP_Arbiter directly.
2209
2270
  */
2210
2271
  declare class Arbiter {
2211
2272
  static __name__: string[];
2212
2273
  /** @internal */
2213
- zpp_inner: Any$m;
2274
+ zpp_inner: ZPP_Arbiter;
2214
2275
  /** @internal Backward-compat: compiled code accesses `obj.zpp_inner`. */
2215
2276
  get _inner(): NapeInner;
2216
2277
  constructor();
@@ -2257,7 +2318,7 @@ type Any$l = any;
2257
2318
  * Provides access to contact points, collision normal, friction, elasticity,
2258
2319
  * and impulse information. Some properties are mutable only in pre-handlers.
2259
2320
  *
2260
- * Thin wrapperdelegates to compiled ZPP_Arbiter/ZPP_ColArbiter (not yet extracted).
2321
+ * Fully modernizeduses extracted ZPP_ColArbiter directly.
2261
2322
  */
2262
2323
  declare class CollisionArbiter extends Arbiter {
2263
2324
  static __name__: string[];
@@ -2297,8 +2358,6 @@ declare class CollisionArbiter extends Arbiter {
2297
2358
  totalImpulse(body?: Any$l, freshOnly?: boolean): Vec3;
2298
2359
  /** Rolling impulse for this collision. */
2299
2360
  rollingImpulse(body?: Any$l, freshOnly?: boolean): number;
2300
- /** @internal Recalculate material properties if invalidated. */
2301
- private _recalcIfInvalidated;
2302
2361
  /** @internal Throw if not in pre-handler mutable window. */
2303
2362
  private _mutableCheck;
2304
2363
  /** @internal Accumulate impulse from contacts. */
@@ -2312,7 +2371,7 @@ type Any$k = any;
2312
2371
  * Provides access to buoyancy/drag impulses, overlap area, and position.
2313
2372
  * Some properties are mutable only in pre-handlers.
2314
2373
  *
2315
- * Thin wrapperdelegates to compiled ZPP_Arbiter/ZPP_FluidArbiter (not yet extracted).
2374
+ * Fully modernizeduses extracted ZPP_FluidArbiter directly.
2316
2375
  */
2317
2376
  declare class FluidArbiter extends Arbiter {
2318
2377
  static __name__: string[];