@newkrok/nape-js 3.3.24 → 3.3.26

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.cts 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$K = any;
28
+ type Any$T = any;
29
29
  declare class ZPP_Vec2 {
30
30
  static zpp_pool: ZPP_Vec2 | null;
31
31
  static __name__: string[];
32
- static _nape: Any$K;
33
- static _zpp: Any$K;
34
- static _wrapFn: ((zpp: ZPP_Vec2) => Any$K) | null;
32
+ static _nape: Any$T;
33
+ static _zpp: Any$T;
34
+ static _wrapFn: ((zpp: ZPP_Vec2) => Any$T) | 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$K;
43
+ outer: Any$T;
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$K;
48
+ __class__: Any$T;
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$K;
54
+ wrapper(): Any$T;
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$J = any;
206
+ type Any$S = any;
207
207
  declare class ZPP_Vec3 {
208
208
  static __name__: string[];
209
- static _zpp: Any$J;
210
- static _wrapFn: ((zpp: ZPP_Vec3) => Any$J) | null;
211
- outer: Any$J;
209
+ static _zpp: Any$S;
210
+ static _wrapFn: ((zpp: ZPP_Vec3) => Any$S) | null;
211
+ outer: Any$S;
212
212
  x: number;
213
213
  y: number;
214
214
  z: number;
215
215
  immutable: boolean;
216
216
  _validate: (() => void) | null;
217
- __class__: Any$J;
217
+ __class__: Any$S;
218
218
  validate(): void;
219
- wrapper(): Any$J;
219
+ wrapper(): Any$S;
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$I = any;
283
+ type Any$R = any;
284
284
  declare class ZPP_Mat23 {
285
285
  static __name__: string[];
286
- static _nape: Any$I;
287
- static _wrapFn: ((zpp: ZPP_Mat23) => Any$I) | null;
286
+ static _nape: Any$R;
287
+ static _wrapFn: ((zpp: ZPP_Mat23) => Any$R) | null;
288
288
  static zpp_pool: ZPP_Mat23 | null;
289
- outer: Any$I;
289
+ outer: Any$R;
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$I;
298
+ __class__: Any$R;
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$I;
304
+ wrapper(): Any$R;
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$H = any;
365
+ type Any$Q = any;
366
366
  declare class ZPP_GeomPoly {
367
367
  static __name__: string[];
368
- outer: Any$H;
369
- vertices: Any$H;
370
- __class__: Any$H;
371
- constructor(outer?: Any$H);
368
+ outer: Any$Q;
369
+ vertices: Any$Q;
370
+ __class__: Any$Q;
371
+ constructor(outer?: Any$Q);
372
372
  }
373
373
 
374
374
  /**
@@ -392,7 +392,7 @@ declare class Winding {
392
392
  toString(): string;
393
393
  }
394
394
 
395
- type Any$G = any;
395
+ type Any$P = 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$G;
411
- constructor(vertices?: Any$G);
410
+ get _inner(): Any$P;
411
+ constructor(vertices?: Any$P);
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$G): GeomPoly;
437
+ static get(vertices?: Any$P): GeomPoly;
438
438
  empty(): boolean;
439
439
  size(): number;
440
- iterator(): Any$G;
441
- forwardIterator(): Any$G;
442
- backwardsIterator(): Any$G;
440
+ iterator(): Any$P;
441
+ forwardIterator(): Any$P;
442
+ backwardsIterator(): Any$P;
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$G;
455
+ winding(): Any$P;
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$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;
463
+ simpleDecomposition(output?: Any$P): Any$P;
464
+ monotoneDecomposition(output?: Any$P): Any$P;
465
+ convexDecomposition(delaunay?: boolean, output?: Any$P): Any$P;
466
+ triangularDecomposition(delaunay?: boolean, output?: Any$P): Any$P;
467
467
  inflate(inflation: number): GeomPoly;
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;
468
+ cut(start: Vec2, end: Vec2, boundedStart?: boolean, boundedEnd?: boolean, output?: Any$P): Any$P;
469
+ transform(matrix: Any$P): this;
470
+ bounds(): Any$P;
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$F = any;
486
+ type Any$O = any;
487
487
  declare class ZPP_AABB {
488
488
  static zpp_pool: ZPP_AABB | null;
489
489
  static __name__: string[];
490
- static _nape: Any$F;
491
- static _zpp: Any$F;
492
- static _wrapFn: ((zpp: ZPP_AABB) => Any$F) | null;
490
+ static _nape: Any$O;
491
+ static _zpp: Any$O;
492
+ static _wrapFn: ((zpp: ZPP_AABB) => Any$O) | null;
493
493
  _invalidate: ((self: ZPP_AABB) => void) | null;
494
494
  _validate: (() => void) | null;
495
495
  _immutable: boolean;
496
- outer: Any$F;
496
+ outer: Any$O;
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$F;
503
- wrap_max: Any$F;
504
- __class__: Any$F;
502
+ wrap_min: Any$O;
503
+ wrap_max: Any$O;
504
+ __class__: Any$O;
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$F;
509
+ wrapper(): Any$O;
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$F): void;
520
+ mod_min(min: Any$O): void;
521
521
  getmax(): void;
522
522
  dom_max(): void;
523
- mod_max(max: Any$F): void;
523
+ mod_max(max: Any$O): 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$E = any;
587
+ type Any$N = any;
588
588
  declare class ZPP_MatMN {
589
589
  static __name__: string[];
590
- outer: Any$E;
590
+ outer: Any$N;
591
591
  m: number;
592
592
  n: number;
593
593
  x: number[];
594
- __class__: Any$E;
594
+ __class__: Any$N;
595
595
  constructor(m: number, n: number);
596
596
  }
597
597
 
598
- type Any$D = any;
598
+ type Any$M = 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$D): MatMN;
609
+ static _wrap(inner: Any$M): 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$C = any;
619
+ type Any$L = 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$C): Any$C;
642
+ static run(iso: (x: number, y: number) => number, bounds: AABB, cellsize: Vec2, quality?: number, subgrid?: Vec2 | null, combine?: boolean, output?: Any$L): Any$L;
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$B = any;
678
+ type Any$K = 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$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;
684
+ static _createRayResult: (() => Any$K) | null;
685
+ static _createConvexResult: (() => Any$K) | null;
686
+ normal: Any$K;
687
+ shape: Any$K;
688
+ convex: Any$K;
689
+ position: Any$K;
690
+ ray: Any$K;
691
691
  inner: boolean;
692
692
  next: ZPP_ConvexRayResult | null;
693
693
  toiDistance: number;
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;
694
+ __class__: Any$K;
695
+ static getRay(normal: Any$K, time: number, inner: boolean, shape: Any$K): Any$K;
696
+ static getConvex(normal: Any$K, position: Any$K, toiDistance: number, shape: Any$K): Any$K;
697
697
  disposed(): void;
698
698
  free(): void;
699
699
  private static _disposeVec2;
700
700
  }
701
701
 
702
- type Any$A = any;
702
+ type Any$J = 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$A): ConvexResult;
717
+ static _wrap(inner: Any$J): ConvexResult;
718
718
  get normal(): Vec2;
719
719
  get position(): Vec2;
720
720
  get toi(): number;
721
- get shape(): Any$A;
721
+ get shape(): Any$J;
722
722
  dispose(): void;
723
723
  toString(): string;
724
724
  /** @internal */
725
725
  private _disposed;
726
726
  }
727
727
 
728
- type Any$z = any;
728
+ type Any$I = 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$z): RayResult;
743
+ static _wrap(inner: Any$I): RayResult;
744
744
  get normal(): Vec2;
745
745
  get distance(): number;
746
746
  get inner(): boolean;
747
- get shape(): Any$z;
747
+ get shape(): Any$I;
748
748
  dispose(): void;
749
749
  toString(): string;
750
750
  /** @internal */
751
751
  private _disposed;
752
752
  }
753
753
 
754
- type Any$y = any;
754
+ type Any$H = 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$y, body2: Any$y, out1: Vec2, out2: Vec2): number;
772
+ static distanceBody(body1: Any$H, body2: Any$H, 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$y, shape2: Any$y, out1: Vec2, out2: Vec2): number;
781
+ static distance(shape1: Any$H, shape2: Any$H, 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$y, body2: Any$y): boolean;
788
+ static intersectsBody(body1: Any$H, body2: Any$H): 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$y, shape2: Any$y): boolean;
795
+ static intersects(shape1: Any$H, shape2: Any$H): 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$y, shape2: Any$y): boolean;
802
+ static contains(shape1: Any$H, shape2: Any$H): 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$x = any;
866
+ type Any$G = 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$x;
880
- static _zpp: Any$x;
879
+ static _nape: Any$G;
880
+ static _zpp: Any$G;
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$x) | null;
885
+ static _wrapFn: ((zpp: ZPP_Material) => Any$G) | null;
886
886
  elasticity: number;
887
887
  dynamicFriction: number;
888
888
  staticFriction: number;
889
889
  density: number;
890
890
  rollingFriction: number;
891
- shapes: Any$x;
892
- wrap_shapes: Any$x;
893
- outer: Any$x;
894
- userData: Any$x;
891
+ shapes: Any$G;
892
+ wrap_shapes: Any$G;
893
+ outer: Any$G;
894
+ userData: Any$G;
895
895
  next: ZPP_Material | null;
896
- __class__: Any$x;
896
+ __class__: Any$G;
897
897
  constructor();
898
898
  /** Create/return the public nape.phys.Material wrapper for this internal object. */
899
- wrapper(): Any$x;
899
+ wrapper(): Any$G;
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$x): void;
907
+ addShape(shape: Any$G): void;
908
908
  /** Unregister a shape that no longer uses this material. */
909
- remShape(shape: Any$x): void;
909
+ remShape(shape: Any$G): 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$w = any;
969
+ type Any$F = any;
970
970
  declare class ZPP_FluidProperties {
971
971
  static zpp_pool: ZPP_FluidProperties | null;
972
972
  static __name__: string[];
973
- static _nape: Any$w;
974
- static _zpp: Any$w;
975
- static _wrapFn: ((zpp: ZPP_FluidProperties) => Any$w) | null;
973
+ static _nape: Any$F;
974
+ static _zpp: Any$F;
975
+ static _wrapFn: ((zpp: ZPP_FluidProperties) => Any$F) | null;
976
976
  viscosity: number;
977
977
  density: number;
978
978
  gravityx: number;
979
979
  gravityy: number;
980
- wrap_gravity: Any$w;
981
- shapes: Any$w;
982
- wrap_shapes: Any$w;
983
- outer: Any$w;
984
- userData: Any$w;
980
+ wrap_gravity: Any$F;
981
+ shapes: Any$F;
982
+ wrap_shapes: Any$F;
983
+ outer: Any$F;
984
+ userData: Any$F;
985
985
  next: ZPP_FluidProperties | null;
986
- __class__: Any$w;
986
+ __class__: Any$F;
987
987
  constructor();
988
988
  /** Create/return the public nape.phys.FluidProperties wrapper. */
989
- wrapper(): Any$w;
989
+ wrapper(): Any$F;
990
990
  free(): void;
991
991
  alloc(): void;
992
992
  feature_cons(): void;
993
- addShape(shape: Any$w): void;
994
- remShape(shape: Any$w): void;
993
+ addShape(shape: Any$F): void;
994
+ remShape(shape: Any$F): 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$w): void;
998
+ gravity_invalidate(x: Any$F): 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$v = any;
1049
+ type Any$E = any;
1050
1050
  declare class ZPP_InteractionFilter {
1051
1051
  static zpp_pool: ZPP_InteractionFilter | null;
1052
1052
  static __name__: string[];
1053
- static _nape: Any$v;
1054
- static _zpp: Any$v;
1055
- static _wrapFn: ((zpp: ZPP_InteractionFilter) => Any$v) | null;
1053
+ static _nape: Any$E;
1054
+ static _zpp: Any$E;
1055
+ static _wrapFn: ((zpp: ZPP_InteractionFilter) => Any$E) | 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$v;
1063
- wrap_shapes: Any$v;
1064
- outer: Any$v;
1065
- userData: Any$v;
1062
+ shapes: Any$E;
1063
+ wrap_shapes: Any$E;
1064
+ outer: Any$E;
1065
+ userData: Any$E;
1066
1066
  next: ZPP_InteractionFilter | null;
1067
- __class__: Any$v;
1067
+ __class__: Any$E;
1068
1068
  constructor();
1069
1069
  /** Create/return the public nape.dynamics.InteractionFilter wrapper. */
1070
- wrapper(): Any$v;
1070
+ wrapper(): Any$E;
1071
1071
  free(): void;
1072
1072
  alloc(): void;
1073
1073
  feature_cons(): void;
1074
- addShape(shape: Any$v): void;
1075
- remShape(shape: Any$v): void;
1074
+ addShape(shape: Any$E): void;
1075
+ remShape(shape: Any$E): 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$u = any;
1139
+ type Any$D = 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$u;
1145
- static _wrapFn: ((zpp: ZPP_InteractionGroup) => Any$u) | null;
1146
- outer: Any$u;
1144
+ static _zpp: Any$D;
1145
+ static _wrapFn: ((zpp: ZPP_InteractionGroup) => Any$D) | null;
1146
+ outer: Any$D;
1147
1147
  ignore: boolean;
1148
1148
  group: ZPP_InteractionGroup | null;
1149
- groups: Any$u;
1150
- wrap_groups: Any$u;
1151
- interactors: Any$u;
1152
- wrap_interactors: Any$u;
1149
+ groups: Any$D;
1150
+ wrap_groups: Any$D;
1151
+ interactors: Any$D;
1152
+ wrap_interactors: Any$D;
1153
1153
  depth: number;
1154
- __class__: Any$u;
1154
+ __class__: Any$D;
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$u): void;
1165
+ addInteractor(intx: Any$D): void;
1166
1166
  /** Unregister an interactor from this group. */
1167
- remInteractor(intx: Any$u, flag?: number): void;
1167
+ remInteractor(intx: Any$D, flag?: number): void;
1168
1168
  }
1169
1169
 
1170
1170
  /**
@@ -1316,23 +1316,114 @@ interface CbTypeSet {
1316
1316
  readonly length: number;
1317
1317
  }
1318
1318
 
1319
+ /**
1320
+ * ZPP_Constraint — Internal base class for all constraints / joints.
1321
+ *
1322
+ * Manages activation/deactivation, callback types, space integration,
1323
+ * and provides stubs for solver methods overridden by joint subclasses.
1324
+ *
1325
+ * Converted from nape-compiled.js lines 21424–21827.
1326
+ */
1327
+ type Any$C = any;
1328
+ declare class ZPP_Constraint {
1329
+ static __name__: string[];
1330
+ /**
1331
+ * Namespace references, set by the compiled module after import.
1332
+ * _nape = the `nape` public namespace (for CbTypeIterator in copyto)
1333
+ * _zpp = the `zpp_nape` internal namespace (for ZNPList_*, ZPP_CbSet, etc.)
1334
+ */
1335
+ static _nape: Any$C;
1336
+ static _zpp: Any$C;
1337
+ outer: Any$C;
1338
+ id: number;
1339
+ userData: Any$C;
1340
+ compound: Any$C;
1341
+ space: Any$C;
1342
+ active: boolean;
1343
+ stiff: boolean;
1344
+ frequency: number;
1345
+ damping: number;
1346
+ maxForce: number;
1347
+ maxError: number;
1348
+ breakUnderForce: boolean;
1349
+ breakUnderError: boolean;
1350
+ removeOnBreak: boolean;
1351
+ component: Any$C;
1352
+ ignore: boolean;
1353
+ __velocity: boolean;
1354
+ cbTypes: Any$C;
1355
+ cbSet: Any$C;
1356
+ wrap_cbTypes: Any$C;
1357
+ pre_dt: number;
1358
+ __class__: Any$C;
1359
+ constructor();
1360
+ /**
1361
+ * Initialise base constraint fields.
1362
+ * Extracted into a separate method because compiled joint subclasses
1363
+ * call `ZPP_Constraint.call(this)` — ES classes can't be invoked that
1364
+ * way, so the compiled wrapper delegates to this method instead.
1365
+ */
1366
+ _initBase(): void;
1367
+ clear(): void;
1368
+ activeBodies(): void;
1369
+ inactiveBodies(): void;
1370
+ clearcache(): void;
1371
+ validate(): void;
1372
+ wake_connected(): void;
1373
+ forest(): void;
1374
+ broken(): void;
1375
+ warmStart(): void;
1376
+ draw(_g: Any$C): void;
1377
+ pair_exists(_id: Any$C, _di: Any$C): boolean;
1378
+ preStep(_dt: number): boolean;
1379
+ applyImpulseVel(): boolean;
1380
+ applyImpulsePos(): boolean;
1381
+ copy(_dict?: Any$C, _todo?: Any$C): Any$C;
1382
+ immutable_midstep(name: string): void;
1383
+ setupcbTypes(): void;
1384
+ immutable_cbTypes(): void;
1385
+ wrap_cbTypes_subber(pcb: Any$C): void;
1386
+ wrap_cbTypes_adder(cb: Any$C): boolean;
1387
+ insert_cbtype(cb: Any$C): void;
1388
+ alloc_cbSet(): void;
1389
+ dealloc_cbSet(): void;
1390
+ activate(): void;
1391
+ deactivate(): void;
1392
+ addedToSpace(): void;
1393
+ removedFromSpace(): void;
1394
+ activeInSpace(): void;
1395
+ inactiveOrOutSpace(): void;
1396
+ wake(): void;
1397
+ copyto(ret: Any$C): void;
1398
+ }
1399
+
1400
+ type Any$B = any;
1319
1401
  /**
1320
1402
  * Base class for all constraints / joints.
1321
- * Not instantiated directly.
1403
+ *
1404
+ * Fully modernized — uses ZPP_Constraint directly (extracted to TypeScript).
1405
+ * Not instantiated directly; only via joint subclasses.
1322
1406
  */
1323
1407
  declare class Constraint {
1324
- /** @internal */
1325
- readonly _inner: NapeInner;
1408
+ static __name__: string[];
1409
+ /** Direct access to the extracted internal ZPP_Constraint. */
1410
+ zpp_inner: ZPP_Constraint;
1411
+ /**
1412
+ * Compiled joint reference for joint-specific methods (body1/body2/anchors etc.).
1413
+ * Joint subclasses set this to the compiled joint instance until those joints
1414
+ * are fully modernized. Also serves as backward compat for compiled code.
1415
+ * @internal
1416
+ */
1417
+ _inner: Any$B;
1418
+ debugDraw: boolean;
1326
1419
  /** @internal */
1327
1420
  protected constructor();
1328
1421
  /** @internal */
1329
- static _wrap(inner: NapeInner): Constraint;
1330
- get space(): Space;
1422
+ static _wrap(inner: Any$B): Constraint;
1423
+ get space(): Space | null;
1331
1424
  set space(value: Space | null);
1332
- get compound(): NapeInner;
1333
- set compound(value: {
1334
- _inner: NapeInner;
1335
- } | null);
1425
+ get compound(): Any$B;
1426
+ set compound(value: Any$B);
1336
1427
  get active(): boolean;
1337
1428
  set active(value: boolean);
1338
1429
  get ignore(): boolean;
@@ -1355,11 +1446,39 @@ declare class Constraint {
1355
1446
  set removeOnBreak(value: boolean);
1356
1447
  get isSleeping(): boolean;
1357
1448
  get userData(): Record<string, unknown>;
1358
- impulse(): NapeInner;
1359
- bodyImpulse(body: Body): NapeInner;
1360
- visitBodies(fn: (body: Body) => void): void;
1449
+ get cbTypes(): Any$B;
1450
+ impulse(): Any$B;
1451
+ bodyImpulse(_body: Body): Any$B;
1452
+ visitBodies(_fn: (body: Body) => void): void;
1361
1453
  copy(): Constraint;
1362
1454
  toString(): string;
1455
+ /** @internal */ get_userData(): Any$B;
1456
+ /** @internal */ get_compound(): Any$B;
1457
+ /** @internal */ set_compound(v: Any$B): Any$B;
1458
+ /** @internal */ get_space(): Any$B;
1459
+ /** @internal */ set_space(v: Any$B): Any$B;
1460
+ /** @internal */ get_isSleeping(): boolean;
1461
+ /** @internal */ get_active(): boolean;
1462
+ /** @internal */ set_active(v: boolean): boolean;
1463
+ /** @internal */ get_ignore(): boolean;
1464
+ /** @internal */ set_ignore(v: boolean): boolean;
1465
+ /** @internal */ get_stiff(): boolean;
1466
+ /** @internal */ set_stiff(v: boolean): boolean;
1467
+ /** @internal */ get_frequency(): number;
1468
+ /** @internal */ set_frequency(v: number): number;
1469
+ /** @internal */ get_damping(): number;
1470
+ /** @internal */ set_damping(v: number): number;
1471
+ /** @internal */ get_maxForce(): number;
1472
+ /** @internal */ set_maxForce(v: number): number;
1473
+ /** @internal */ get_maxError(): number;
1474
+ /** @internal */ set_maxError(v: number): number;
1475
+ /** @internal */ get_breakUnderForce(): boolean;
1476
+ /** @internal */ set_breakUnderForce(v: boolean): boolean;
1477
+ /** @internal */ get_breakUnderError(): boolean;
1478
+ /** @internal */ set_breakUnderError(v: boolean): boolean;
1479
+ /** @internal */ get_removeOnBreak(): boolean;
1480
+ /** @internal */ set_removeOnBreak(v: boolean): boolean;
1481
+ /** @internal */ get_cbTypes(): Any$B;
1363
1482
  }
1364
1483
 
1365
1484
  /**
@@ -1371,24 +1490,24 @@ declare class Constraint {
1371
1490
  *
1372
1491
  * Converted from nape-compiled.js lines 27259–27304, 112053–112139.
1373
1492
  */
1374
- type Any$t = any;
1493
+ type Any$A = any;
1375
1494
  declare class ZPP_Listener {
1376
1495
  static __name__: string[];
1377
- static _nape: Any$t;
1378
- static _zpp: Any$t;
1496
+ static _nape: Any$A;
1497
+ static _zpp: Any$A;
1379
1498
  static internal: boolean;
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;
1499
+ static types: Any$A[];
1500
+ static events: Any$A[];
1501
+ space: Any$A;
1502
+ interaction: Any$A;
1503
+ constraint: Any$A;
1504
+ body: Any$A;
1386
1505
  precedence: number;
1387
1506
  event: number;
1388
1507
  type: number;
1389
1508
  id: number;
1390
- outer: Any$t;
1391
- __class__: Any$t;
1509
+ outer: Any$A;
1510
+ __class__: Any$A;
1392
1511
  constructor();
1393
1512
  /** Sort comparator: higher precedence first, then by id descending. */
1394
1513
  static setlt(a: ZPP_Listener, b: ZPP_Listener): boolean;
@@ -1464,20 +1583,20 @@ declare class ListenerType {
1464
1583
  * Fully modernized from nape-compiled.js lines 231–433.
1465
1584
  */
1466
1585
 
1467
- type Any$s = any;
1586
+ type Any$z = any;
1468
1587
  declare class Listener {
1469
1588
  static __name__: string[];
1470
1589
  zpp_inner: ZPP_Listener;
1471
- get _inner(): Any$s;
1590
+ get _inner(): Any$z;
1472
1591
  constructor();
1473
- static _wrap(inner: Any$s): Listener;
1592
+ static _wrap(inner: Any$z): Listener;
1474
1593
  get type(): ListenerType;
1475
1594
  get event(): CbEvent;
1476
1595
  set event(event: CbEvent);
1477
1596
  get precedence(): number;
1478
1597
  set precedence(precedence: number);
1479
1598
  get space(): Space | null;
1480
- set space(space: Space | Any$s | null);
1599
+ set space(space: Space | Any$z | null);
1481
1600
  toString(): string;
1482
1601
  }
1483
1602
 
@@ -1564,46 +1683,46 @@ declare class BodyType {
1564
1683
  * Converted from nape-compiled.js lines 52431–54547.
1565
1684
  */
1566
1685
 
1567
- type Any$r = any;
1686
+ type Any$y = any;
1568
1687
  declare class ZPP_Body {
1569
1688
  static __name__: string[];
1570
- static __super__: Any$r;
1689
+ static __super__: Any$y;
1571
1690
  /**
1572
1691
  * Namespace references, set by the compiled module after import.
1573
1692
  * _nape = the `nape` public namespace
1574
1693
  * _zpp = the `zpp_nape` internal namespace
1575
1694
  */
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;
1695
+ static _nape: Any$y;
1696
+ static _zpp: Any$y;
1697
+ static types: Any$y[];
1698
+ static bodystack: Any$y;
1699
+ static bodyset: Any$y;
1581
1700
  static cur_graph_depth: number;
1582
- static bodysetlt(a: Any$r, b: Any$r): boolean;
1583
- static __static(): Any$r;
1584
- outer_i: Any$r;
1701
+ static bodysetlt(a: Any$y, b: Any$y): boolean;
1702
+ static __static(): Any$y;
1703
+ outer_i: Any$y;
1585
1704
  id: number;
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;
1705
+ userData: Any$y;
1706
+ ishape: Any$y;
1707
+ ibody: Any$y;
1708
+ icompound: Any$y;
1709
+ wrap_cbTypes: Any$y;
1710
+ cbSet: Any$y;
1711
+ cbTypes: Any$y;
1712
+ group: Any$y;
1713
+ cbsets: Any$y;
1714
+ outer: Any$y;
1596
1715
  world: boolean;
1597
1716
  type: number;
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;
1717
+ compound: Any$y;
1718
+ shapes: Any$y;
1719
+ wrap_shapes: Any$y;
1720
+ space: Any$y;
1721
+ arbiters: Any$y;
1722
+ wrap_arbiters: Any$y;
1723
+ constraints: Any$y;
1724
+ wrap_constraints: Any$y;
1725
+ component: Any$y;
1607
1726
  graph_depth: number;
1608
1727
  sweepTime: number;
1609
1728
  sweep_angvel: number;
@@ -1616,20 +1735,20 @@ declare class ZPP_Body {
1616
1735
  pre_posy: number;
1617
1736
  posx: number;
1618
1737
  posy: number;
1619
- wrap_pos: Any$r;
1738
+ wrap_pos: Any$y;
1620
1739
  velx: number;
1621
1740
  vely: number;
1622
- wrap_vel: Any$r;
1741
+ wrap_vel: Any$y;
1623
1742
  forcex: number;
1624
1743
  forcey: number;
1625
- wrap_force: Any$r;
1744
+ wrap_force: Any$y;
1626
1745
  kinvelx: number;
1627
1746
  kinvely: number;
1628
- wrap_kinvel: Any$r;
1747
+ wrap_kinvel: Any$y;
1629
1748
  svelx: number;
1630
1749
  svely: number;
1631
- wrap_svel: Any$r;
1632
- wrapcvel: Any$r;
1750
+ wrap_svel: Any$y;
1751
+ wrapcvel: Any$y;
1633
1752
  angvel: number;
1634
1753
  torque: number;
1635
1754
  kinangvel: number;
@@ -1666,9 +1785,9 @@ declare class ZPP_Body {
1666
1785
  worldCOMx: number;
1667
1786
  worldCOMy: number;
1668
1787
  zip_worldCOM: boolean;
1669
- wrap_localCOM: Any$r;
1670
- wrap_worldCOM: Any$r;
1671
- __class__: Any$r;
1788
+ wrap_localCOM: Any$y;
1789
+ wrap_worldCOM: Any$y;
1790
+ __class__: Any$y;
1672
1791
  constructor();
1673
1792
  isStatic(): boolean;
1674
1793
  isDynamic(): boolean;
@@ -1676,23 +1795,23 @@ declare class ZPP_Body {
1676
1795
  invalidate_type(): void;
1677
1796
  invalidate_shapes(): void;
1678
1797
  init_bodysetlist(): void;
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;
1798
+ connectedBodies_cont(b: Any$y): void;
1799
+ connectedBodies(depth: number, output: Any$y): Any$y;
1800
+ interactingBodies(type: number, output: Any$y): Any$y;
1682
1801
  atRest(dt: number): boolean;
1683
1802
  refreshArbiters(): void;
1684
1803
  sweepIntegrate(dt: number): void;
1685
- sweepValidate(s: Any$r): void;
1804
+ sweepValidate(s: Any$y): void;
1686
1805
  invalidate_pos(): void;
1687
- pos_invalidate(pos: Any$r): void;
1806
+ pos_invalidate(pos: Any$y): void;
1688
1807
  pos_validate(): void;
1689
- vel_invalidate(vel: Any$r): void;
1808
+ vel_invalidate(vel: Any$y): void;
1690
1809
  vel_validate(): void;
1691
- kinvel_invalidate(vel: Any$r): void;
1810
+ kinvel_invalidate(vel: Any$y): void;
1692
1811
  kinvel_validate(): void;
1693
- svel_invalidate(vel: Any$r): void;
1812
+ svel_invalidate(vel: Any$y): void;
1694
1813
  svel_validate(): void;
1695
- force_invalidate(force: Any$r): void;
1814
+ force_invalidate(force: Any$y): void;
1696
1815
  force_validate(): void;
1697
1816
  private _setupVec2Wrapper;
1698
1817
  setupPosition(): void;
@@ -1729,37 +1848,37 @@ declare class ZPP_Body {
1729
1848
  getworldCOM(): void;
1730
1849
  __immutable_midstep(): void;
1731
1850
  clear(): void;
1732
- shapes_adder(s: Any$r): boolean;
1733
- shapes_subber(s: Any$r): void;
1734
- shapes_invalidate(_param: Any$r): void;
1851
+ shapes_adder(s: Any$y): boolean;
1852
+ shapes_subber(s: Any$y): void;
1853
+ shapes_invalidate(_param: Any$y): void;
1735
1854
  shapes_modifiable(): void;
1736
1855
  addedToSpace(): void;
1737
1856
  removedFromSpace(): void;
1738
1857
  private _removeArbiterFromList;
1739
- copy(): Any$r;
1858
+ copy(): Any$y;
1740
1859
  wake: () => void;
1741
1860
  __iaddedToSpace: () => void;
1742
1861
  __iremovedFromSpace: () => void;
1743
1862
  immutable_midstep: (name: string) => void;
1744
- copyto: (ret: Any$r) => void;
1745
- insert_cbtype: (cb: Any$r) => void;
1863
+ copyto: (ret: Any$y) => void;
1864
+ insert_cbtype: (cb: Any$y) => void;
1746
1865
  alloc_cbSet: () => void;
1747
1866
  dealloc_cbSet: () => void;
1748
1867
  setupcbTypes: () => void;
1749
1868
  immutable_cbTypes: () => void;
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;
1869
+ wrap_cbTypes_subber: (pcb: Any$y) => void;
1870
+ wrap_cbTypes_adder: (cb: Any$y) => void;
1871
+ setGroup: (group: Any$y) => void;
1872
+ lookup_group: () => Any$y;
1873
+ getSpace: () => Any$y;
1755
1874
  isShape: () => boolean;
1756
1875
  isBody: () => boolean;
1757
1876
  isCompound: () => boolean;
1758
1877
  static _initialized: boolean;
1759
- static _init(zpp: Any$r, nape: Any$r): void;
1878
+ static _init(zpp: Any$y, nape: Any$y): void;
1760
1879
  }
1761
1880
 
1762
- type Any$q = any;
1881
+ type Any$x = any;
1763
1882
  /**
1764
1883
  * A rigid body in the physics simulation.
1765
1884
  *
@@ -1767,19 +1886,19 @@ type Any$q = any;
1767
1886
  */
1768
1887
  declare class Body extends Interactor {
1769
1888
  static __name__: string[];
1770
- static __super__: Any$q;
1889
+ static __super__: Any$x;
1771
1890
  /** Direct access to the extracted internal ZPP_Body. */
1772
1891
  zpp_inner: ZPP_Body;
1773
1892
  debugDraw: boolean;
1774
- /** @internal */ set_type: (type: Any$q) => Any$q;
1775
- /** @internal */ set_position: (position: Any$q) => Any$q;
1893
+ /** @internal */ set_type: (type: Any$x) => Any$x;
1894
+ /** @internal */ set_position: (position: Any$x) => Any$x;
1776
1895
  /** @internal */ set_rotation: (rotation: number) => number;
1777
- /** @internal */ set_velocity: (velocity: Any$q) => Any$q;
1896
+ /** @internal */ set_velocity: (velocity: Any$x) => Any$x;
1778
1897
  /** @internal */ set_angularVel: (angularVel: number) => number;
1779
- /** @internal */ set_kinematicVel: (kinematicVel: Any$q) => Any$q;
1898
+ /** @internal */ set_kinematicVel: (kinematicVel: Any$x) => Any$x;
1780
1899
  /** @internal */ set_kinAngVel: (kinAngVel: number) => number;
1781
- /** @internal */ set_surfaceVel: (surfaceVel: Any$q) => Any$q;
1782
- /** @internal */ set_force: (force: Any$q) => Any$q;
1900
+ /** @internal */ set_surfaceVel: (surfaceVel: Any$x) => Any$x;
1901
+ /** @internal */ set_force: (force: Any$x) => Any$x;
1783
1902
  /** @internal */ set_torque: (torque: number) => number;
1784
1903
  /** @internal */ get_mass: () => number;
1785
1904
  /** @internal */ set_mass: (mass: number) => number;
@@ -1791,36 +1910,36 @@ declare class Body extends Interactor {
1791
1910
  /** @internal */ set_gravMassScale: (gravMassScale: number) => number;
1792
1911
  /** @internal */ set_allowMovement: (v: boolean) => boolean;
1793
1912
  /** @internal */ set_allowRotation: (v: boolean) => boolean;
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;
1913
+ /** @internal */ set_space: (space: Any$x) => Any$x;
1914
+ /** @internal */ set_compound: (compound: Any$x) => Any$x;
1915
+ /** @internal */ get_localCOM: () => Any$x;
1916
+ /** @internal */ get_worldCOM: () => Any$x;
1917
+ /** @internal */ integrate: (deltaTime: number) => Any$x;
1918
+ /** @internal */ applyImpulse: (impulse: Any$x, pos?: Any$x, sleepable?: boolean) => void;
1800
1919
  /** @internal */ applyAngularImpulse: (impulse: number, sleepable?: boolean) => 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;
1920
+ /** @internal */ setVelocityFromTarget: (targetPosition: Any$x, targetRotation: number, deltaTime: number) => Any$x;
1921
+ /** @internal */ localPointToWorld: (point: Any$x, weak?: boolean) => Any$x;
1922
+ /** @internal */ worldPointToLocal: (point: Any$x, weak?: boolean) => Any$x;
1923
+ /** @internal */ localVectorToWorld: (vector: Any$x, weak?: boolean) => Any$x;
1924
+ /** @internal */ worldVectorToLocal: (vector: Any$x, weak?: boolean) => Any$x;
1925
+ /** @internal */ translateShapes: (translation: Any$x) => void;
1807
1926
  /** @internal */ rotateShapes: (angle: number) => void;
1808
1927
  /** @internal */ scaleShapes: (scaleX: number, scaleY: number) => void;
1809
1928
  /** @internal */ align: () => void;
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;
1929
+ /** @internal */ rotate: (centre: Any$x, angle: number) => void;
1930
+ /** @internal */ setShapeMaterials: (material: Any$x) => void;
1931
+ /** @internal */ setShapeFilters: (filter: Any$x) => void;
1932
+ /** @internal */ setShapeFluidProperties: (fluidProperties: Any$x) => void;
1933
+ /** @internal */ contains: (point: Any$x) => boolean;
1815
1934
  /** @internal */ crushFactor: () => number;
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;
1935
+ /** @internal */ connectedBodies: (depth?: number, output?: Any$x) => Any$x;
1936
+ /** @internal */ interactingBodies: (type?: Any$x, depth?: number, output?: Any$x) => Any$x;
1937
+ /** @internal */ get_massMode: () => Any$x;
1938
+ /** @internal */ set_massMode: (mode: Any$x) => Any$x;
1939
+ /** @internal */ get_inertiaMode: () => Any$x;
1940
+ /** @internal */ set_inertiaMode: (mode: Any$x) => Any$x;
1941
+ /** @internal */ get_gravMassMode: () => Any$x;
1942
+ /** @internal */ set_gravMassMode: (mode: Any$x) => Any$x;
1824
1943
  /** @internal */ _toString: () => string;
1825
1944
  constructor(type?: BodyType, position?: Vec2);
1826
1945
  /** @internal */
@@ -1870,40 +1989,40 @@ declare class Body extends Interactor {
1870
1989
  get shapes(): NapeList<Shape>;
1871
1990
  get space(): Space;
1872
1991
  set space(value: Space | null);
1873
- get compound(): Any$q;
1874
- set compound(value: Any$q);
1992
+ get compound(): Any$x;
1993
+ set compound(value: Any$x);
1875
1994
  get bounds(): AABB;
1876
1995
  get constraintVelocity(): Vec2;
1877
1996
  get localCOM(): Vec2;
1878
1997
  get worldCOM(): Vec2;
1879
1998
  copy(): Body;
1880
1999
  toString(): string;
1881
- get_type(): Any$q;
1882
- get_shapes(): Any$q;
2000
+ get_type(): Any$x;
2001
+ get_shapes(): Any$x;
1883
2002
  get_isBullet(): boolean;
1884
2003
  set_isBullet(v: boolean): boolean;
1885
2004
  get_disableCCD(): boolean;
1886
2005
  set_disableCCD(v: boolean): boolean;
1887
- get_position(): Any$q;
1888
- get_velocity(): Any$q;
2006
+ get_position(): Any$x;
2007
+ get_velocity(): Any$x;
1889
2008
  get_rotation(): number;
1890
2009
  get_angularVel(): number;
1891
- get_kinematicVel(): Any$q;
2010
+ get_kinematicVel(): Any$x;
1892
2011
  get_kinAngVel(): number;
1893
- get_surfaceVel(): Any$q;
1894
- get_force(): Any$q;
2012
+ get_surfaceVel(): Any$x;
2013
+ get_force(): Any$x;
1895
2014
  get_torque(): number;
1896
- get_bounds(): Any$q;
1897
- get_constraintVelocity(): Any$q;
2015
+ get_bounds(): Any$x;
2016
+ get_constraintVelocity(): Any$x;
1898
2017
  get_constraintMass(): number;
1899
2018
  get_constraintInertia(): number;
1900
2019
  get_allowMovement(): boolean;
1901
2020
  get_allowRotation(): boolean;
1902
2021
  get_isSleeping(): boolean;
1903
- get_compound(): Any$q;
1904
- get_space(): Any$q;
1905
- get_arbiters(): Any$q;
1906
- get_constraints(): Any$q;
2022
+ get_compound(): Any$x;
2023
+ get_space(): Any$x;
2024
+ get_arbiters(): Any$x;
2025
+ get_constraints(): Any$x;
1907
2026
  }
1908
2027
 
1909
2028
  /**
@@ -1914,77 +2033,77 @@ declare class Body extends Interactor {
1914
2033
  *
1915
2034
  * Converted from nape-compiled.js lines 55195–55521.
1916
2035
  */
1917
- type Any$p = any;
2036
+ type Any$w = any;
1918
2037
  declare class ZPP_Compound {
1919
2038
  static __name__: string[];
1920
- static __super__: Any$p;
2039
+ static __super__: Any$w;
1921
2040
  /**
1922
2041
  * Namespace references, set by the compiled module after import.
1923
2042
  * _nape = the `nape` public namespace (for wrapper creation in copy())
1924
2043
  * _zpp = the `zpp_nape` internal namespace (for ZNPList_*, ZPP_BodyList, etc.)
1925
2044
  */
1926
- static _nape: Any$p;
1927
- static _zpp: Any$p;
2045
+ static _nape: Any$w;
2046
+ static _zpp: Any$w;
1928
2047
  /**
1929
2048
  * Wrapper factory callback, registered by the modernized Compound class.
1930
2049
  * When set, wrapper() uses this instead of the compiled Compound constructor.
1931
2050
  */
1932
- static _wrapFn: ((zpp: ZPP_Compound) => Any$p) | null;
1933
- outer_i: Any$p;
2051
+ static _wrapFn: ((zpp: ZPP_Compound) => Any$w) | null;
2052
+ outer_i: Any$w;
1934
2053
  id: number;
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;
2054
+ userData: Any$w;
2055
+ ishape: Any$w;
2056
+ ibody: Any$w;
2057
+ icompound: Any$w;
2058
+ wrap_cbTypes: Any$w;
2059
+ cbSet: Any$w;
2060
+ cbTypes: Any$w;
2061
+ group: Any$w;
2062
+ cbsets: Any$w;
2063
+ outer: Any$w;
2064
+ bodies: Any$w;
2065
+ constraints: Any$w;
2066
+ compounds: Any$w;
2067
+ wrap_bodies: Any$w;
2068
+ wrap_constraints: Any$w;
2069
+ wrap_compounds: Any$w;
1951
2070
  depth: number;
1952
- compound: Any$p;
1953
- space: Any$p;
1954
- __class__: Any$p;
2071
+ compound: Any$w;
2072
+ space: Any$w;
2073
+ __class__: Any$w;
1955
2074
  constructor();
1956
2075
  __imutable_midstep(name: string): void;
1957
2076
  addedToSpace(): void;
1958
2077
  removedFromSpace(): void;
1959
2078
  breakApart(): void;
1960
2079
  private static _zppOf;
1961
- bodies_adder(x: Any$p): boolean;
1962
- bodies_subber(x: Any$p): void;
2080
+ bodies_adder(x: Any$w): boolean;
2081
+ bodies_subber(x: Any$w): void;
1963
2082
  bodies_modifiable(): void;
1964
- constraints_adder(x: Any$p): boolean;
1965
- constraints_subber(x: Any$p): void;
2083
+ constraints_adder(x: Any$w): boolean;
2084
+ constraints_subber(x: Any$w): void;
1966
2085
  constraints_modifiable(): void;
1967
- compounds_adder(x: Any$p): boolean;
1968
- compounds_subber(x: Any$p): void;
2086
+ compounds_adder(x: Any$w): boolean;
2087
+ compounds_subber(x: Any$w): void;
1969
2088
  compounds_modifiable(): void;
1970
- copy(dict?: Any$p[], todo?: Any$p[]): Any$p;
2089
+ copy(dict?: Any$w[], todo?: Any$w[]): Any$w;
1971
2090
  isShape: () => boolean;
1972
2091
  isBody: () => boolean;
1973
2092
  isCompound: () => boolean;
1974
2093
  __iaddedToSpace: () => void;
1975
2094
  __iremovedFromSpace: () => void;
1976
2095
  wake: () => void;
1977
- getSpace: () => Any$p;
2096
+ getSpace: () => Any$w;
1978
2097
  setupcbTypes: () => void;
1979
2098
  immutable_cbTypes: () => void;
1980
- wrap_cbTypes_subber: (pcb: Any$p) => void;
1981
- wrap_cbTypes_adder: (cb: Any$p) => boolean;
1982
- insert_cbtype: (cb: Any$p) => void;
2099
+ wrap_cbTypes_subber: (pcb: Any$w) => void;
2100
+ wrap_cbTypes_adder: (cb: Any$w) => boolean;
2101
+ insert_cbtype: (cb: Any$w) => void;
1983
2102
  alloc_cbSet: () => void;
1984
2103
  dealloc_cbSet: () => void;
1985
2104
  immutable_midstep: (name: string) => void;
1986
- copyto: (ret: Any$p) => void;
1987
- lookup_group: () => Any$p;
2105
+ copyto: (ret: Any$w) => void;
2106
+ lookup_group: () => Any$w;
1988
2107
  /**
1989
2108
  * Initialize prototype by copying ZPP_Interactor methods.
1990
2109
  * Must be called after _zpp is set (during compiled module init).
@@ -1992,7 +2111,7 @@ declare class ZPP_Compound {
1992
2111
  static _init(): void;
1993
2112
  }
1994
2113
 
1995
- type Any$o = any;
2114
+ type Any$v = any;
1996
2115
  /**
1997
2116
  * A compound physics object — a hierarchical grouping of Bodies, Constraints,
1998
2117
  * and other Compounds.
@@ -2001,18 +2120,18 @@ type Any$o = any;
2001
2120
  */
2002
2121
  declare class Compound extends Interactor {
2003
2122
  static __name__: string[];
2004
- static __super__: Any$o;
2123
+ static __super__: Any$v;
2005
2124
  /** Direct access to the extracted internal ZPP_Compound. */
2006
2125
  zpp_inner: ZPP_Compound;
2007
2126
  constructor();
2008
2127
  /** @internal */
2009
2128
  static _wrap(inner: NapeInner): Compound;
2010
2129
  /** Bodies in this compound. */
2011
- get bodies(): Any$o;
2130
+ get bodies(): Any$v;
2012
2131
  /** Constraints in this compound. */
2013
- get constraints(): Any$o;
2132
+ get constraints(): Any$v;
2014
2133
  /** Child compounds in this compound. */
2015
- get compounds(): Any$o;
2134
+ get compounds(): Any$v;
2016
2135
  /** Parent compound, or null if this is a root compound. */
2017
2136
  get compound(): Compound | null;
2018
2137
  set compound(value: Compound | null);
@@ -2026,7 +2145,7 @@ declare class Compound extends Interactor {
2026
2145
  /** Recursively visit all bodies in this compound and its sub-compounds. */
2027
2146
  visitBodies(lambda: (body: Body) => void): void;
2028
2147
  /** Recursively visit all constraints in this compound and its sub-compounds. */
2029
- visitConstraints(lambda: (constraint: Any$o) => void): void;
2148
+ visitConstraints(lambda: (constraint: Any$v) => void): void;
2030
2149
  /** Recursively visit all sub-compounds in this compound. */
2031
2150
  visitCompounds(lambda: (compound: Compound) => void): void;
2032
2151
  /** Calculate the center of mass of all bodies in this compound. */
@@ -2036,13 +2155,13 @@ declare class Compound extends Interactor {
2036
2155
  /** Rotate all bodies in this compound around the given centre point. */
2037
2156
  rotate(centre: Vec2, angle: number): Compound;
2038
2157
  toString(): string;
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;
2158
+ get_bodies(): Any$v;
2159
+ get_constraints(): Any$v;
2160
+ get_compounds(): Any$v;
2161
+ get_compound(): Any$v;
2162
+ set_compound(compound: Any$v): Any$v;
2163
+ get_space(): Any$v;
2164
+ set_space(space: Any$v): Any$v;
2046
2165
  }
2047
2166
 
2048
2167
  /**
@@ -2207,17 +2326,17 @@ declare class ArbiterType {
2207
2326
  *
2208
2327
  * Converted from nape-compiled.js lines 29044–29362, 80738–80766.
2209
2328
  */
2210
- type Any$n = any;
2329
+ type Any$u = any;
2211
2330
  declare class ZPP_Arbiter {
2212
2331
  static __name__: string[];
2213
- static _nape: Any$n;
2214
- static _zpp: Any$n;
2332
+ static _nape: Any$u;
2333
+ static _zpp: Any$u;
2215
2334
  static internal: boolean;
2216
2335
  static COL: number;
2217
2336
  static FLUID: number;
2218
2337
  static SENSOR: number;
2219
- static types: Any$n[];
2220
- outer: Any$n;
2338
+ static types: Any$u[];
2339
+ outer: Any$u;
2221
2340
  hnext: ZPP_Arbiter | null;
2222
2341
  id: number;
2223
2342
  di: number;
@@ -2235,31 +2354,31 @@ declare class ZPP_Arbiter {
2235
2354
  fresh: boolean;
2236
2355
  immState: number;
2237
2356
  invalidated: boolean;
2238
- b1: Any$n;
2239
- b2: Any$n;
2240
- ws1: Any$n;
2241
- ws2: Any$n;
2242
- pair: Any$n;
2357
+ b1: Any$u;
2358
+ b2: Any$u;
2359
+ ws1: Any$u;
2360
+ ws2: Any$u;
2361
+ pair: Any$u;
2243
2362
  type: number;
2244
- colarb: Any$n;
2245
- fluidarb: Any$n;
2246
- sensorarb: Any$n;
2247
- __class__: Any$n;
2363
+ colarb: Any$u;
2364
+ fluidarb: Any$u;
2365
+ sensorarb: Any$u;
2366
+ __class__: Any$u;
2248
2367
  constructor();
2249
- wrapper(): Any$n;
2368
+ wrapper(): Any$u;
2250
2369
  inactiveme(): boolean;
2251
2370
  acting(): boolean;
2252
2371
  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;
2372
+ lazyRetire(s: Any$u, b: Any$u): void;
2373
+ sup_assign(s1: Any$u, s2: Any$u, id: number, di: number): void;
2255
2374
  sup_retire(): void;
2256
2375
  /** Remove this arbiter from a ZNPList_ZPP_Arbiter */
2257
- static _removeFromArbiterList(list: Any$n, arb: ZPP_Arbiter, zpp: Any$n): void;
2376
+ static _removeFromArbiterList(list: Any$u, arb: ZPP_Arbiter, zpp: Any$u): void;
2258
2377
  /** Add this arbiter to a ZNPList_ZPP_Arbiter */
2259
- static _addToArbiterList(list: Any$n, arb: ZPP_Arbiter, zpp: Any$n): void;
2378
+ static _addToArbiterList(list: Any$u, arb: ZPP_Arbiter, zpp: Any$u): void;
2260
2379
  }
2261
2380
 
2262
- type Any$m = any;
2381
+ type Any$t = any;
2263
2382
  /**
2264
2383
  * Represents an interaction arbiter between two shapes.
2265
2384
  *
@@ -2278,21 +2397,21 @@ declare class Arbiter {
2278
2397
  /** Whether this arbiter is currently sleeping. */
2279
2398
  get isSleeping(): boolean;
2280
2399
  /** The type of this arbiter (COLLISION, SENSOR, or FLUID). */
2281
- get type(): Any$m;
2400
+ get type(): Any$t;
2282
2401
  /** Cast to CollisionArbiter if this is a collision, else null. */
2283
- get collisionArbiter(): Any$m;
2402
+ get collisionArbiter(): Any$t;
2284
2403
  /** Cast to FluidArbiter if this is a fluid interaction, else null. */
2285
- get fluidArbiter(): Any$m;
2404
+ get fluidArbiter(): Any$t;
2286
2405
  /** First shape (lower id). */
2287
- get shape1(): Any$m;
2406
+ get shape1(): Any$t;
2288
2407
  /** Second shape (higher id). */
2289
- get shape2(): Any$m;
2408
+ get shape2(): Any$t;
2290
2409
  /** Body of shape1. */
2291
- get body1(): Any$m;
2410
+ get body1(): Any$t;
2292
2411
  /** Body of shape2. */
2293
- get body2(): Any$m;
2412
+ get body2(): Any$t;
2294
2413
  /** The pre-handler state of this arbiter. */
2295
- get state(): Any$m;
2414
+ get state(): Any$t;
2296
2415
  /** Whether this is a collision arbiter. */
2297
2416
  isCollisionArbiter(): boolean;
2298
2417
  /** Whether this is a fluid arbiter. */
@@ -2303,15 +2422,15 @@ declare class Arbiter {
2303
2422
  * Total impulse of this arbiter. Base implementation returns Vec3(0,0,0).
2304
2423
  * Overridden by CollisionArbiter and FluidArbiter.
2305
2424
  */
2306
- totalImpulse(body?: Any$m, _freshOnly?: boolean): Vec3;
2425
+ totalImpulse(body?: Any$t, _freshOnly?: boolean): Vec3;
2307
2426
  toString(): string;
2308
2427
  /** @internal */
2309
2428
  protected _activeCheck(): void;
2310
2429
  /** @internal */
2311
- protected _checkBody(body: Any$m): void;
2430
+ protected _checkBody(body: Any$t): void;
2312
2431
  }
2313
2432
 
2314
- type Any$l = any;
2433
+ type Any$s = any;
2315
2434
  /**
2316
2435
  * A collision arbiter between two shapes in contact.
2317
2436
  *
@@ -2325,15 +2444,15 @@ declare class CollisionArbiter extends Arbiter {
2325
2444
  static __super__: typeof Arbiter;
2326
2445
  constructor();
2327
2446
  /** Contact points for this collision. */
2328
- get contacts(): Any$l;
2447
+ get contacts(): Any$s;
2329
2448
  /** Collision normal vector. */
2330
- get normal(): Any$l;
2449
+ get normal(): Any$s;
2331
2450
  /** Sum of the radii of the two shapes at the collision point. */
2332
2451
  get radius(): number;
2333
2452
  /** Reference edge of shape1 (if polygon), or null. */
2334
- get referenceEdge1(): Any$l;
2453
+ get referenceEdge1(): Any$s;
2335
2454
  /** Reference edge of shape2 (if polygon), or null. */
2336
- get referenceEdge2(): Any$l;
2455
+ get referenceEdge2(): Any$s;
2337
2456
  /** Coefficient of restitution (elasticity). Mutable in pre-handler only. */
2338
2457
  get elasticity(): number;
2339
2458
  set elasticity(value: number);
@@ -2351,20 +2470,20 @@ declare class CollisionArbiter extends Arbiter {
2351
2470
  /** Whether the second contact point lies on a polygon vertex (poly-circle only). */
2352
2471
  secondVertex(): boolean;
2353
2472
  /** Normal impulse accumulated across all contacts. */
2354
- normalImpulse(body?: Any$l, freshOnly?: boolean): Vec3;
2473
+ normalImpulse(body?: Any$s, freshOnly?: boolean): Vec3;
2355
2474
  /** Tangent (friction) impulse accumulated across all contacts. */
2356
- tangentImpulse(body?: Any$l, freshOnly?: boolean): Vec3;
2475
+ tangentImpulse(body?: Any$s, freshOnly?: boolean): Vec3;
2357
2476
  /** Total impulse (normal + tangent + rolling) accumulated across all contacts. */
2358
- totalImpulse(body?: Any$l, freshOnly?: boolean): Vec3;
2477
+ totalImpulse(body?: Any$s, freshOnly?: boolean): Vec3;
2359
2478
  /** Rolling impulse for this collision. */
2360
- rollingImpulse(body?: Any$l, freshOnly?: boolean): number;
2479
+ rollingImpulse(body?: Any$s, freshOnly?: boolean): number;
2361
2480
  /** @internal Throw if not in pre-handler mutable window. */
2362
2481
  private _mutableCheck;
2363
2482
  /** @internal Accumulate impulse from contacts. */
2364
2483
  private _accumulateImpulse;
2365
2484
  }
2366
2485
 
2367
- type Any$k = any;
2486
+ type Any$r = any;
2368
2487
  /**
2369
2488
  * A fluid arbiter between two shapes with fluid interaction.
2370
2489
  *
@@ -2384,11 +2503,11 @@ declare class FluidArbiter extends Arbiter {
2384
2503
  get overlap(): number;
2385
2504
  set overlap(value: number);
2386
2505
  /** Buoyancy impulse applied by this fluid arbiter. */
2387
- buoyancyImpulse(body?: Any$k): Vec3;
2506
+ buoyancyImpulse(body?: Any$r): Vec3;
2388
2507
  /** Drag impulse applied by this fluid arbiter. */
2389
- dragImpulse(body?: Any$k): Vec3;
2508
+ dragImpulse(body?: Any$r): Vec3;
2390
2509
  /** Total impulse (buoyancy + drag). */
2391
- totalImpulse(body?: Any$k, _freshOnly?: boolean): Vec3;
2510
+ totalImpulse(body?: Any$r, _freshOnly?: boolean): Vec3;
2392
2511
  }
2393
2512
 
2394
2513
  /**
@@ -2400,7 +2519,7 @@ declare class FluidArbiter extends Arbiter {
2400
2519
  *
2401
2520
  * Converted from nape-compiled.js lines 32346–32733.
2402
2521
  */
2403
- type Any$j = any;
2522
+ type Any$q = any;
2404
2523
  declare class ZPP_IContact {
2405
2524
  static __name__: string[];
2406
2525
  length: number;
@@ -2422,7 +2541,7 @@ declare class ZPP_IContact {
2422
2541
  lr1y: number;
2423
2542
  lr2x: number;
2424
2543
  lr2y: number;
2425
- __class__: Any$j;
2544
+ __class__: Any$q;
2426
2545
  elem(): this;
2427
2546
  begin(): ZPP_IContact | null;
2428
2547
  setbegin(i: ZPP_IContact | null): void;
@@ -2466,19 +2585,19 @@ declare class ZPP_IContact {
2466
2585
  * Converted from nape-compiled.js lines 31853–32345, 81644–81645.
2467
2586
  */
2468
2587
 
2469
- type Any$i = any;
2588
+ type Any$p = any;
2470
2589
  declare class ZPP_Contact {
2471
2590
  static __name__: string[];
2472
- static _nape: Any$i;
2473
- static _zpp: Any$i;
2591
+ static _nape: Any$p;
2592
+ static _zpp: Any$p;
2474
2593
  static zpp_pool: ZPP_Contact | null;
2475
2594
  static internal: boolean;
2476
- static _wrapFn: ((zpp: ZPP_Contact) => Any$i) | null;
2477
- outer: Any$i;
2595
+ static _wrapFn: ((zpp: ZPP_Contact) => Any$p) | null;
2596
+ outer: Any$p;
2478
2597
  px: number;
2479
2598
  py: number;
2480
- wrap_position: Any$i;
2481
- arbiter: Any$i;
2599
+ wrap_position: Any$p;
2600
+ arbiter: Any$p;
2482
2601
  inner: ZPP_IContact;
2483
2602
  active: boolean;
2484
2603
  posOnly: boolean;
@@ -2492,9 +2611,9 @@ declare class ZPP_Contact {
2492
2611
  modified: boolean;
2493
2612
  _inuse: boolean;
2494
2613
  next: ZPP_Contact | null;
2495
- __class__: Any$i;
2614
+ __class__: Any$p;
2496
2615
  constructor();
2497
- wrapper(): Any$i;
2616
+ wrapper(): Any$p;
2498
2617
  position_validate(): void;
2499
2618
  getposition(): void;
2500
2619
  inactiveme(): boolean;
@@ -2532,7 +2651,7 @@ declare class ZPP_Contact {
2532
2651
  at(ind: number): ZPP_Contact | null;
2533
2652
  }
2534
2653
 
2535
- type Any$h = any;
2654
+ type Any$o = any;
2536
2655
  /**
2537
2656
  * Represents a contact point between two colliding shapes.
2538
2657
  *
@@ -2549,7 +2668,7 @@ declare class Contact {
2549
2668
  get _inner(): NapeInner;
2550
2669
  constructor();
2551
2670
  /** The collision arbiter this contact belongs to, or null. */
2552
- get arbiter(): Any$h;
2671
+ get arbiter(): Any$o;
2553
2672
  /** Penetration depth of this contact (positive = overlapping). */
2554
2673
  get penetration(): number;
2555
2674
  /** World-space position of this contact point. */
@@ -2563,25 +2682,25 @@ declare class Contact {
2563
2682
  * @param body - If null, returns world-frame impulse. Otherwise returns
2564
2683
  * impulse on the given body (must be one of the two in contact).
2565
2684
  */
2566
- normalImpulse(body?: Any$h): Vec3;
2685
+ normalImpulse(body?: Any$o): Vec3;
2567
2686
  /**
2568
2687
  * Tangent impulse at this contact point.
2569
2688
  * @param body - If null, returns world-frame impulse. Otherwise returns
2570
2689
  * impulse on the given body.
2571
2690
  */
2572
- tangentImpulse(body?: Any$h): Vec3;
2691
+ tangentImpulse(body?: Any$o): Vec3;
2573
2692
  /**
2574
2693
  * Rolling impulse at this contact point.
2575
2694
  * @param body - If null, returns total rolling impulse. Otherwise returns
2576
2695
  * rolling impulse on the given body.
2577
2696
  */
2578
- rollingImpulse(body?: Any$h): number;
2697
+ rollingImpulse(body?: Any$o): number;
2579
2698
  /**
2580
2699
  * Total impulse (normal + tangent + rolling) at this contact point.
2581
2700
  * @param body - If null, returns world-frame impulse. Otherwise returns
2582
2701
  * impulse on the given body.
2583
2702
  */
2584
- totalImpulse(body?: Any$h): Vec3;
2703
+ totalImpulse(body?: Any$o): Vec3;
2585
2704
  toString(): string;
2586
2705
  /** @internal */
2587
2706
  private _inactiveCheck;
@@ -2598,41 +2717,41 @@ declare class Contact {
2598
2717
  *
2599
2718
  * Converted from nape-compiled.js lines 48256–48482.
2600
2719
  */
2601
- type Any$g = any;
2720
+ type Any$n = any;
2602
2721
  declare class ZPP_CbType {
2603
2722
  static __name__: string[];
2604
- static _zpp: Any$g;
2605
- outer: Any$g;
2606
- userData: Any$g;
2723
+ static _zpp: Any$n;
2724
+ outer: Any$n;
2725
+ userData: Any$n;
2607
2726
  id: number;
2608
- cbsets: Any$g;
2609
- interactors: Any$g;
2610
- wrap_interactors: Any$g;
2611
- constraints: Any$g;
2612
- wrap_constraints: Any$g;
2613
- listeners: Any$g;
2614
- bodylisteners: Any$g;
2615
- conlisteners: Any$g;
2616
- __class__: Any$g;
2727
+ cbsets: Any$n;
2728
+ interactors: Any$n;
2729
+ wrap_interactors: Any$n;
2730
+ constraints: Any$n;
2731
+ wrap_constraints: Any$n;
2732
+ listeners: Any$n;
2733
+ bodylisteners: Any$n;
2734
+ conlisteners: Any$n;
2735
+ __class__: Any$n;
2617
2736
  constructor();
2618
2737
  /** Sort comparator by id. */
2619
2738
  static setlt(a: ZPP_CbType, b: ZPP_CbType): boolean;
2620
- addInteractor(intx: Any$g): void;
2621
- remInteractor(intx: Any$g): void;
2622
- addConstraint(con: Any$g): void;
2623
- remConstraint(con: Any$g): void;
2624
- addint(x: Any$g): void;
2625
- removeint(x: Any$g): void;
2739
+ addInteractor(intx: Any$n): void;
2740
+ remInteractor(intx: Any$n): void;
2741
+ addConstraint(con: Any$n): void;
2742
+ remConstraint(con: Any$n): void;
2743
+ addint(x: Any$n): void;
2744
+ removeint(x: Any$n): void;
2626
2745
  invalidateint(): void;
2627
- addbody(x: Any$g): void;
2628
- removebody(x: Any$g): void;
2746
+ addbody(x: Any$n): void;
2747
+ removebody(x: Any$n): void;
2629
2748
  invalidatebody(): void;
2630
- addconstraint(x: Any$g): void;
2631
- removeconstraint(x: Any$g): void;
2749
+ addconstraint(x: Any$n): void;
2750
+ removeconstraint(x: Any$n): void;
2632
2751
  invalidateconstraint(): void;
2633
2752
  }
2634
2753
 
2635
- type Any$f = any;
2754
+ type Any$m = any;
2636
2755
  /**
2637
2756
  * Callback type — used to tag interactors so that listeners
2638
2757
  * can filter which interactions they respond to.
@@ -2653,11 +2772,11 @@ declare class CbType {
2653
2772
  static get_ANY_SHAPE(): CbType;
2654
2773
  static get_ANY_COMPOUND(): CbType;
2655
2774
  get id(): number;
2656
- get userData(): Any$f;
2657
- get interactors(): Any$f;
2658
- get constraints(): Any$f;
2659
- including(includes: Any$f): Any$f;
2660
- excluding(excludes: Any$f): Any$f;
2775
+ get userData(): Any$m;
2776
+ get interactors(): Any$m;
2777
+ get constraints(): Any$m;
2778
+ including(includes: Any$m): Any$m;
2779
+ excluding(excludes: Any$m): Any$m;
2661
2780
  toString(): string;
2662
2781
  static _wrap(inner: any): CbType;
2663
2782
  }
@@ -2718,37 +2837,37 @@ declare class PreFlag {
2718
2837
  *
2719
2838
  * Converted from nape-compiled.js lines 51337–51655.
2720
2839
  */
2721
- type Any$e = any;
2840
+ type Any$l = any;
2722
2841
  declare class ZPP_OptionType {
2723
2842
  static __name__: string[];
2724
- static _nape: Any$e;
2725
- static _zpp: Any$e;
2726
- outer: Any$e;
2727
- handler: ((val: Any$e, included: boolean, added: boolean) => void) | null;
2728
- includes: Any$e;
2729
- excludes: Any$e;
2730
- wrap_includes: Any$e;
2731
- wrap_excludes: Any$e;
2732
- __class__: Any$e;
2843
+ static _nape: Any$l;
2844
+ static _zpp: Any$l;
2845
+ outer: Any$l;
2846
+ handler: ((val: Any$l, included: boolean, added: boolean) => void) | null;
2847
+ includes: Any$l;
2848
+ excludes: Any$l;
2849
+ wrap_includes: Any$l;
2850
+ wrap_excludes: Any$l;
2851
+ __class__: Any$l;
2733
2852
  constructor();
2734
2853
  /** Coerce a value to OptionType (null → new, OptionType → pass-through, CbType → including). */
2735
- static argument(val: Any$e): Any$e;
2854
+ static argument(val: Any$l): Any$l;
2736
2855
  setup_includes(): void;
2737
2856
  setup_excludes(): void;
2738
- excluded(xs: Any$e): boolean;
2739
- included(xs: Any$e): boolean;
2740
- compatible(xs: Any$e): boolean;
2857
+ excluded(xs: Any$l): boolean;
2858
+ included(xs: Any$l): boolean;
2859
+ compatible(xs: Any$l): boolean;
2741
2860
  /** Check whether two sorted-by-id lists share any element. */
2742
- nonemptyintersection(xs: Any$e, ys: Any$e): boolean;
2861
+ nonemptyintersection(xs: Any$l, ys: Any$l): boolean;
2743
2862
  /** Insert into the ordered include or exclude list, using pool nodes. */
2744
2863
  private insertOrdered;
2745
- effect_change(val: Any$e, included: boolean, added: boolean): void;
2746
- append_type(list: Any$e, val: Any$e): void;
2864
+ effect_change(val: Any$l, included: boolean, added: boolean): void;
2865
+ append_type(list: Any$l, val: Any$l): void;
2747
2866
  set(options: ZPP_OptionType): this;
2748
- append(list: Any$e, val: Any$e): void;
2867
+ append(list: Any$l, val: Any$l): void;
2749
2868
  }
2750
2869
 
2751
- type Any$d = any;
2870
+ type Any$k = any;
2752
2871
  /**
2753
2872
  * Composite callback option type — allows including and excluding CbTypes.
2754
2873
  *
@@ -2758,13 +2877,13 @@ declare class OptionType {
2758
2877
  static __name__: string[];
2759
2878
  zpp_inner: ZPP_OptionType;
2760
2879
  get _inner(): NapeInner;
2761
- constructor(includes?: Any$d, excludes?: Any$d);
2762
- get includes(): Any$d;
2763
- get excludes(): Any$d;
2764
- get_includes(): Any$d;
2765
- get_excludes(): Any$d;
2766
- including(includes: Any$d): this;
2767
- excluding(excludes: Any$d): this;
2880
+ constructor(includes?: Any$k, excludes?: Any$k);
2881
+ get includes(): Any$k;
2882
+ get excludes(): Any$k;
2883
+ get_includes(): Any$k;
2884
+ get_excludes(): Any$k;
2885
+ including(includes: Any$k): this;
2886
+ excluding(excludes: Any$k): this;
2768
2887
  toString(): string;
2769
2888
  static _wrap(inner: any): OptionType;
2770
2889
  }
@@ -2778,18 +2897,18 @@ declare class OptionType {
2778
2897
  * Converted from nape-compiled.js lines 27305–27497.
2779
2898
  */
2780
2899
 
2781
- type Any$c = any;
2900
+ type Any$j = any;
2782
2901
  declare class ZPP_BodyListener extends ZPP_Listener {
2783
2902
  static __name__: string[];
2784
- handler: Any$c;
2785
- options: Any$c;
2786
- outer_zn: Any$c;
2787
- __class__: Any$c;
2788
- constructor(options: Any$c, event: number, handler: Any$c);
2903
+ handler: Any$j;
2904
+ options: Any$j;
2905
+ outer_zn: Any$j;
2906
+ __class__: Any$j;
2907
+ constructor(options: Any$j, event: number, handler: Any$j);
2789
2908
  immutable_options(): void;
2790
2909
  addedToSpace(): void;
2791
2910
  removedFromSpace(): void;
2792
- cbtype_change(cb: Any$c, included: boolean, added: boolean): void;
2911
+ cbtype_change(cb: Any$j, included: boolean, added: boolean): void;
2793
2912
  invalidate_precedence(): void;
2794
2913
  swapEvent(newev: number): void;
2795
2914
  }
@@ -2800,15 +2919,15 @@ declare class ZPP_BodyListener extends ZPP_Listener {
2800
2919
  * Fully modernized from nape-compiled.js lines 434–515.
2801
2920
  */
2802
2921
 
2803
- type Any$b = any;
2922
+ type Any$i = any;
2804
2923
  declare class BodyListener extends Listener {
2805
2924
  static __name__: string[];
2806
2925
  zpp_inner_zn: ZPP_BodyListener;
2807
- constructor(event: CbEvent, options: Any$b, handler: (cb: Any$b) => void, precedence?: number);
2808
- get options(): Any$b;
2809
- set options(options: Any$b);
2810
- get handler(): (cb: Any$b) => void;
2811
- set handler(handler: (cb: Any$b) => void);
2926
+ constructor(event: CbEvent, options: Any$i, handler: (cb: Any$i) => void, precedence?: number);
2927
+ get options(): Any$i;
2928
+ set options(options: Any$i);
2929
+ get handler(): (cb: Any$i) => void;
2930
+ set handler(handler: (cb: Any$i) => void);
2812
2931
  }
2813
2932
 
2814
2933
  /**
@@ -2821,38 +2940,38 @@ declare class BodyListener extends Listener {
2821
2940
  * Converted from nape-compiled.js lines 28138–30352, 112140–112151.
2822
2941
  */
2823
2942
 
2824
- type Any$a = any;
2943
+ type Any$h = any;
2825
2944
  declare class ZPP_InteractionListener extends ZPP_Listener {
2826
2945
  static __name__: string[];
2827
- static UCbSet: Any$a;
2828
- static VCbSet: Any$a;
2829
- static WCbSet: Any$a;
2830
- static UCbType: Any$a;
2831
- static VCbType: Any$a;
2832
- static WCbType: Any$a;
2833
- outer_zni: Any$a;
2834
- outer_znp: Any$a;
2946
+ static UCbSet: Any$h;
2947
+ static VCbSet: Any$h;
2948
+ static WCbSet: Any$h;
2949
+ static UCbType: Any$h;
2950
+ static VCbType: Any$h;
2951
+ static WCbType: Any$h;
2952
+ outer_zni: Any$h;
2953
+ outer_znp: Any$h;
2835
2954
  itype: number;
2836
- options1: Any$a;
2837
- options2: Any$a;
2838
- handleri: Any$a;
2955
+ options1: Any$h;
2956
+ options2: Any$h;
2957
+ handleri: Any$h;
2839
2958
  allowSleepingCallbacks: boolean;
2840
2959
  pure: boolean;
2841
- handlerp: Any$a;
2842
- __class__: Any$a;
2843
- constructor(options1: Any$a, options2: Any$a, event: number, type: number);
2960
+ handlerp: Any$h;
2961
+ __class__: Any$h;
2962
+ constructor(options1: Any$h, options2: Any$h, event: number, type: number);
2844
2963
  setInteractionType(itype: number): void;
2845
2964
  wake(): void;
2846
- CbSetset(A: Any$a, B: Any$a, lambda: (a: Any$a, b: Any$a) => void): void;
2847
- CbTypeset(A: Any$a, B: Any$a, lambda: (a: Any$a, b: Any$a) => void): void;
2965
+ CbSetset(A: Any$h, B: Any$h, lambda: (a: Any$h, b: Any$h) => void): void;
2966
+ CbTypeset(A: Any$h, B: Any$h, lambda: (a: Any$h, b: Any$h) => void): void;
2848
2967
  with_uniquesets(fresh: boolean): void;
2849
- with_union(lambda: (cb: Any$a) => void): void;
2968
+ with_union(lambda: (cb: Any$h) => void): void;
2850
2969
  addedToSpace(): void;
2851
2970
  removedFromSpace(): void;
2852
2971
  invalidate_precedence(): void;
2853
- cbtype_change1(cb: Any$a, included: boolean, added: boolean): void;
2854
- cbtype_change2(cb: Any$a, included: boolean, added: boolean): void;
2855
- cbtype_change(options: Any$a, cb: Any$a, included: boolean, added: boolean): void;
2972
+ cbtype_change1(cb: Any$h, included: boolean, added: boolean): void;
2973
+ cbtype_change2(cb: Any$h, included: boolean, added: boolean): void;
2974
+ cbtype_change(options: Any$h, cb: Any$h, included: boolean, added: boolean): void;
2856
2975
  swapEvent(newev: number): void;
2857
2976
  private _allocCbSetNode;
2858
2977
  private _allocCbTypeNode;
@@ -2864,17 +2983,17 @@ declare class ZPP_InteractionListener extends ZPP_Listener {
2864
2983
  * Fully modernized from nape-compiled.js lines 659–1091.
2865
2984
  */
2866
2985
 
2867
- type Any$9 = any;
2986
+ type Any$g = any;
2868
2987
  declare class InteractionListener extends Listener {
2869
2988
  static __name__: string[];
2870
2989
  zpp_inner_zn: ZPP_InteractionListener;
2871
- constructor(event: CbEvent, interactionType: InteractionType, options1: Any$9, options2: Any$9, handler: (cb: Any$9) => void, precedence?: number);
2872
- get options1(): Any$9;
2873
- set options1(options1: Any$9);
2874
- get options2(): Any$9;
2875
- set options2(options2: Any$9);
2876
- get handler(): (cb: Any$9) => void;
2877
- set handler(handler: (cb: Any$9) => void);
2990
+ constructor(event: CbEvent, interactionType: InteractionType, options1: Any$g, options2: Any$g, handler: (cb: Any$g) => void, precedence?: number);
2991
+ get options1(): Any$g;
2992
+ set options1(options1: Any$g);
2993
+ get options2(): Any$g;
2994
+ set options2(options2: Any$g);
2995
+ get handler(): (cb: Any$g) => void;
2996
+ set handler(handler: (cb: Any$g) => void);
2878
2997
  get interactionType(): InteractionType | null;
2879
2998
  set interactionType(interactionType: InteractionType | null);
2880
2999
  get allowSleepingCallbacks(): boolean;
@@ -2890,18 +3009,18 @@ declare class InteractionListener extends Listener {
2890
3009
  * Converted from nape-compiled.js lines 27498–27694.
2891
3010
  */
2892
3011
 
2893
- type Any$8 = any;
3012
+ type Any$f = any;
2894
3013
  declare class ZPP_ConstraintListener extends ZPP_Listener {
2895
3014
  static __name__: string[];
2896
- handler: Any$8;
2897
- options: Any$8;
2898
- outer_zn: Any$8;
2899
- __class__: Any$8;
2900
- constructor(options: Any$8, event: number, handler: Any$8);
3015
+ handler: Any$f;
3016
+ options: Any$f;
3017
+ outer_zn: Any$f;
3018
+ __class__: Any$f;
3019
+ constructor(options: Any$f, event: number, handler: Any$f);
2901
3020
  immutable_options(): void;
2902
3021
  addedToSpace(): void;
2903
3022
  removedFromSpace(): void;
2904
- cbtype_change(cb: Any$8, included: boolean, added: boolean): void;
3023
+ cbtype_change(cb: Any$f, included: boolean, added: boolean): void;
2905
3024
  invalidate_precedence(): void;
2906
3025
  swapEvent(newev: number): void;
2907
3026
  }
@@ -2912,15 +3031,15 @@ declare class ZPP_ConstraintListener extends ZPP_Listener {
2912
3031
  * Fully modernized from nape-compiled.js lines 546–649.
2913
3032
  */
2914
3033
 
2915
- type Any$7 = any;
3034
+ type Any$e = any;
2916
3035
  declare class ConstraintListener extends Listener {
2917
3036
  static __name__: string[];
2918
3037
  zpp_inner_zn: ZPP_ConstraintListener;
2919
- constructor(event: CbEvent, options: Any$7, handler: (cb: Any$7) => void, precedence?: number);
2920
- get options(): Any$7;
2921
- set options(options: Any$7);
2922
- get handler(): (cb: Any$7) => void;
2923
- set handler(handler: (cb: Any$7) => void);
3038
+ constructor(event: CbEvent, options: Any$e, handler: (cb: Any$e) => void, precedence?: number);
3039
+ get options(): Any$e;
3040
+ set options(options: Any$e);
3041
+ get handler(): (cb: Any$e) => void;
3042
+ set handler(handler: (cb: Any$e) => void);
2924
3043
  }
2925
3044
 
2926
3045
  /**
@@ -2931,17 +3050,17 @@ declare class ConstraintListener extends Listener {
2931
3050
  * Fully modernized from nape-compiled.js lines 1142–1338.
2932
3051
  */
2933
3052
 
2934
- type Any$6 = any;
3053
+ type Any$d = any;
2935
3054
  declare class PreListener extends Listener {
2936
3055
  static __name__: string[];
2937
3056
  zpp_inner_zn: ZPP_InteractionListener;
2938
- constructor(interactionType: InteractionType, options1: Any$6, options2: Any$6, handler: (cb: Any$6) => Any$6, precedence?: number, pure?: boolean);
2939
- get options1(): Any$6;
2940
- set options1(options1: Any$6);
2941
- get options2(): Any$6;
2942
- set options2(options2: Any$6);
2943
- get handler(): (cb: Any$6) => Any$6;
2944
- set handler(handler: (cb: Any$6) => Any$6);
3057
+ constructor(interactionType: InteractionType, options1: Any$d, options2: Any$d, handler: (cb: Any$d) => Any$d, precedence?: number, pure?: boolean);
3058
+ get options1(): Any$d;
3059
+ set options1(options1: Any$d);
3060
+ get options2(): Any$d;
3061
+ set options2(options2: Any$d);
3062
+ get handler(): (cb: Any$d) => Any$d;
3063
+ set handler(handler: (cb: Any$d) => Any$d);
2945
3064
  get pure(): boolean;
2946
3065
  set pure(pure: boolean);
2947
3066
  get interactionType(): InteractionType | null;
@@ -2956,35 +3075,35 @@ declare class PreListener extends Listener {
2956
3075
  *
2957
3076
  * Converted from nape-compiled.js lines 44587–44794, 133299–133300.
2958
3077
  */
2959
- type Any$5 = any;
3078
+ type Any$c = any;
2960
3079
  declare class ZPP_Callback {
2961
3080
  static __name__: string[];
2962
- static _nape: Any$5;
2963
- static _zpp: Any$5;
3081
+ static _nape: Any$c;
3082
+ static _zpp: Any$c;
2964
3083
  static internal: boolean;
2965
3084
  static zpp_pool: ZPP_Callback | null;
2966
- outer_body: Any$5;
2967
- outer_con: Any$5;
2968
- outer_int: Any$5;
3085
+ outer_body: Any$c;
3086
+ outer_con: Any$c;
3087
+ outer_int: Any$c;
2969
3088
  event: number;
2970
- listener: Any$5;
2971
- space: Any$5;
3089
+ listener: Any$c;
3090
+ space: Any$c;
2972
3091
  index: number;
2973
3092
  next: ZPP_Callback | null;
2974
3093
  prev: ZPP_Callback | null;
2975
3094
  length: number;
2976
- int1: Any$5;
2977
- int2: Any$5;
2978
- set: Any$5;
2979
- wrap_arbiters: Any$5;
2980
- pre_arbiter: Any$5;
3095
+ int1: Any$c;
3096
+ int2: Any$c;
3097
+ set: Any$c;
3098
+ wrap_arbiters: Any$c;
3099
+ pre_arbiter: Any$c;
2981
3100
  pre_swapped: boolean;
2982
- body: Any$5;
2983
- constraint: Any$5;
2984
- __class__: Any$5;
2985
- wrapper_body(): Any$5;
2986
- wrapper_con(): Any$5;
2987
- wrapper_int(): Any$5;
3101
+ body: Any$c;
3102
+ constraint: Any$c;
3103
+ __class__: Any$c;
3104
+ wrapper_body(): Any$c;
3105
+ wrapper_con(): Any$c;
3106
+ wrapper_int(): Any$c;
2988
3107
  push(obj: ZPP_Callback): void;
2989
3108
  push_rev(obj: ZPP_Callback): void;
2990
3109
  pop(): ZPP_Callback;
@@ -3003,7 +3122,7 @@ declare class ZPP_Callback {
3003
3122
  genarbs(): void;
3004
3123
  }
3005
3124
 
3006
- type Any$4 = any;
3125
+ type Any$b = any;
3007
3126
  /**
3008
3127
  * Base class for all physics engine callbacks.
3009
3128
  *
@@ -3016,12 +3135,12 @@ declare class Callback {
3016
3135
  static __name__: string[];
3017
3136
  zpp_inner: ZPP_Callback | null;
3018
3137
  constructor();
3019
- get event(): Any$4;
3020
- get listener(): Any$4;
3138
+ get event(): Any$b;
3139
+ get listener(): Any$b;
3021
3140
  toString(): string;
3022
3141
  }
3023
3142
 
3024
- type Any$3 = any;
3143
+ type Any$a = any;
3025
3144
  /**
3026
3145
  * Callback for body events (WAKE/SLEEP).
3027
3146
  *
@@ -3031,11 +3150,11 @@ type Any$3 = any;
3031
3150
  */
3032
3151
  declare class BodyCallback extends Callback {
3033
3152
  static __name__: string[];
3034
- get body(): Any$3;
3153
+ get body(): Any$a;
3035
3154
  toString(): string;
3036
3155
  }
3037
3156
 
3038
- type Any$2 = any;
3157
+ type Any$9 = any;
3039
3158
  /**
3040
3159
  * Callback for constraint events (WAKE/SLEEP/BREAK).
3041
3160
  *
@@ -3045,11 +3164,11 @@ type Any$2 = any;
3045
3164
  */
3046
3165
  declare class ConstraintCallback extends Callback {
3047
3166
  static __name__: string[];
3048
- get constraint(): Any$2;
3167
+ get constraint(): Any$9;
3049
3168
  toString(): string;
3050
3169
  }
3051
3170
 
3052
- type Any$1 = any;
3171
+ type Any$8 = any;
3053
3172
  /**
3054
3173
  * Callback for interaction events (BEGIN/END/ONGOING).
3055
3174
  *
@@ -3059,13 +3178,13 @@ type Any$1 = any;
3059
3178
  */
3060
3179
  declare class InteractionCallback extends Callback {
3061
3180
  static __name__: string[];
3062
- get int1(): Any$1;
3063
- get int2(): Any$1;
3064
- get arbiters(): Any$1;
3181
+ get int1(): Any$8;
3182
+ get int2(): Any$8;
3183
+ get arbiters(): Any$8;
3065
3184
  toString(): string;
3066
3185
  }
3067
3186
 
3068
- type Any = any;
3187
+ type Any$7 = any;
3069
3188
  /**
3070
3189
  * Callback for pre-interaction events.
3071
3190
  *
@@ -3075,20 +3194,21 @@ type Any = any;
3075
3194
  */
3076
3195
  declare class PreCallback extends Callback {
3077
3196
  static __name__: string[];
3078
- get arbiter(): Any;
3079
- get int1(): Any;
3080
- get int2(): Any;
3197
+ get arbiter(): Any$7;
3198
+ get int1(): Any$7;
3199
+ get int2(): Any$7;
3081
3200
  get swapped(): boolean;
3082
3201
  toString(): string;
3083
3202
  }
3084
3203
 
3204
+ type Any$6 = any;
3085
3205
  /**
3086
3206
  * A pivot (pin) joint that constrains two bodies to share an anchor point.
3087
3207
  */
3088
3208
  declare class PivotJoint extends Constraint {
3089
3209
  constructor(body1: Body | null, body2: Body | null, anchor1: Vec2, anchor2: Vec2);
3090
3210
  /** @internal */
3091
- static _wrap(inner: NapeInner): PivotJoint;
3211
+ static _wrap(inner: Any$6): PivotJoint;
3092
3212
  get body1(): Body;
3093
3213
  set body1(value: Body | null);
3094
3214
  get body2(): Body;
@@ -3099,13 +3219,14 @@ declare class PivotJoint extends Constraint {
3099
3219
  set anchor2(value: Vec2);
3100
3220
  }
3101
3221
 
3222
+ type Any$5 = any;
3102
3223
  /**
3103
3224
  * Constrains the distance between two anchor points on two bodies.
3104
3225
  */
3105
3226
  declare class DistanceJoint extends Constraint {
3106
3227
  constructor(body1: Body | null, body2: Body | null, anchor1: Vec2, anchor2: Vec2, jointMin: number, jointMax: number);
3107
3228
  /** @internal */
3108
- static _wrap(inner: NapeInner): DistanceJoint;
3229
+ static _wrap(inner: Any$5): DistanceJoint;
3109
3230
  get body1(): Body;
3110
3231
  set body1(value: Body | null);
3111
3232
  get body2(): Body;
@@ -3120,13 +3241,14 @@ declare class DistanceJoint extends Constraint {
3120
3241
  set jointMax(value: number);
3121
3242
  }
3122
3243
 
3244
+ type Any$4 = any;
3123
3245
  /**
3124
3246
  * Constrains the relative angle between two bodies.
3125
3247
  */
3126
3248
  declare class AngleJoint extends Constraint {
3127
3249
  constructor(body1: Body | null, body2: Body | null, jointMin: number, jointMax: number, ratio?: number);
3128
3250
  /** @internal */
3129
- static _wrap(inner: NapeInner): AngleJoint;
3251
+ static _wrap(inner: Any$4): AngleJoint;
3130
3252
  get body1(): Body;
3131
3253
  set body1(value: Body | null);
3132
3254
  get body2(): Body;
@@ -3139,6 +3261,7 @@ declare class AngleJoint extends Constraint {
3139
3261
  set ratio(value: number);
3140
3262
  }
3141
3263
 
3264
+ type Any$3 = any;
3142
3265
  /**
3143
3266
  * Weld joint — constrains two bodies to maintain a fixed relative
3144
3267
  * position and angle (like gluing them together).
@@ -3146,7 +3269,7 @@ declare class AngleJoint extends Constraint {
3146
3269
  declare class WeldJoint extends Constraint {
3147
3270
  constructor(body1: Body | null, body2: Body | null, anchor1: Vec2, anchor2: Vec2, phase?: number);
3148
3271
  /** @internal */
3149
- static _wrap(inner: NapeInner): WeldJoint;
3272
+ static _wrap(inner: Any$3): WeldJoint;
3150
3273
  get body1(): Body;
3151
3274
  set body1(value: Body | null);
3152
3275
  get body2(): Body;
@@ -3159,13 +3282,14 @@ declare class WeldJoint extends Constraint {
3159
3282
  set phase(value: number);
3160
3283
  }
3161
3284
 
3285
+ type Any$2 = any;
3162
3286
  /**
3163
3287
  * Motor joint — applies angular velocity to rotate bodies relative to each other.
3164
3288
  */
3165
3289
  declare class MotorJoint extends Constraint {
3166
3290
  constructor(body1: Body | null, body2: Body | null, rate: number, ratio?: number);
3167
3291
  /** @internal */
3168
- static _wrap(inner: NapeInner): MotorJoint;
3292
+ static _wrap(inner: Any$2): MotorJoint;
3169
3293
  get body1(): Body;
3170
3294
  set body1(value: Body | null);
3171
3295
  get body2(): Body;
@@ -3176,6 +3300,7 @@ declare class MotorJoint extends Constraint {
3176
3300
  set ratio(value: number);
3177
3301
  }
3178
3302
 
3303
+ type Any$1 = any;
3179
3304
  /**
3180
3305
  * Line joint — constrains body2's anchor to slide along a line
3181
3306
  * defined by body1's anchor and direction.
@@ -3183,7 +3308,7 @@ declare class MotorJoint extends Constraint {
3183
3308
  declare class LineJoint extends Constraint {
3184
3309
  constructor(body1: Body | null, body2: Body | null, anchor1: Vec2, anchor2: Vec2, direction: Vec2, jointMin: number, jointMax: number);
3185
3310
  /** @internal */
3186
- static _wrap(inner: NapeInner): LineJoint;
3311
+ static _wrap(inner: Any$1): LineJoint;
3187
3312
  get body1(): Body;
3188
3313
  set body1(value: Body | null);
3189
3314
  get body2(): Body;
@@ -3200,6 +3325,7 @@ declare class LineJoint extends Constraint {
3200
3325
  set jointMax(value: number);
3201
3326
  }
3202
3327
 
3328
+ type Any = any;
3203
3329
  /**
3204
3330
  * Pulley joint — constrains the sum of distances between four anchor points
3205
3331
  * on four bodies.
@@ -3207,7 +3333,7 @@ declare class LineJoint extends Constraint {
3207
3333
  declare class PulleyJoint extends Constraint {
3208
3334
  constructor(body1: Body | null, body2: Body | null, body3: Body | null, body4: Body | null, anchor1: Vec2, anchor2: Vec2, anchor3: Vec2, anchor4: Vec2, jointMin: number, jointMax: number, ratio?: number);
3209
3335
  /** @internal */
3210
- static _wrap(inner: NapeInner): PulleyJoint;
3336
+ static _wrap(inner: Any): PulleyJoint;
3211
3337
  get body1(): Body;
3212
3338
  set body1(value: Body | null);
3213
3339
  get body2(): Body;