@newkrok/nape-js 3.3.26 → 3.3.28

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$T = any;
28
+ type Any$V = any;
29
29
  declare class ZPP_Vec2 {
30
30
  static zpp_pool: ZPP_Vec2 | null;
31
31
  static __name__: string[];
32
- static _nape: Any$T;
33
- static _zpp: Any$T;
34
- static _wrapFn: ((zpp: ZPP_Vec2) => Any$T) | null;
32
+ static _nape: Any$V;
33
+ static _zpp: Any$V;
34
+ static _wrapFn: ((zpp: ZPP_Vec2) => Any$V) | 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$T;
43
+ outer: Any$V;
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$T;
48
+ __class__: Any$V;
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$T;
54
+ wrapper(): Any$V;
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$S = any;
206
+ type Any$U = any;
207
207
  declare class ZPP_Vec3 {
208
208
  static __name__: string[];
209
- static _zpp: Any$S;
210
- static _wrapFn: ((zpp: ZPP_Vec3) => Any$S) | null;
211
- outer: Any$S;
209
+ static _zpp: Any$U;
210
+ static _wrapFn: ((zpp: ZPP_Vec3) => Any$U) | null;
211
+ outer: Any$U;
212
212
  x: number;
213
213
  y: number;
214
214
  z: number;
215
215
  immutable: boolean;
216
216
  _validate: (() => void) | null;
217
- __class__: Any$S;
217
+ __class__: Any$U;
218
218
  validate(): void;
219
- wrapper(): Any$S;
219
+ wrapper(): Any$U;
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$R = any;
283
+ type Any$T = any;
284
284
  declare class ZPP_Mat23 {
285
285
  static __name__: string[];
286
- static _nape: Any$R;
287
- static _wrapFn: ((zpp: ZPP_Mat23) => Any$R) | null;
286
+ static _nape: Any$T;
287
+ static _wrapFn: ((zpp: ZPP_Mat23) => Any$T) | null;
288
288
  static zpp_pool: ZPP_Mat23 | null;
289
- outer: Any$R;
289
+ outer: Any$T;
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$R;
298
+ __class__: Any$T;
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$R;
304
+ wrapper(): Any$T;
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$Q = any;
365
+ type Any$S = any;
366
366
  declare class ZPP_GeomPoly {
367
367
  static __name__: string[];
368
- outer: Any$Q;
369
- vertices: Any$Q;
370
- __class__: Any$Q;
371
- constructor(outer?: Any$Q);
368
+ outer: Any$S;
369
+ vertices: Any$S;
370
+ __class__: Any$S;
371
+ constructor(outer?: Any$S);
372
372
  }
373
373
 
374
374
  /**
@@ -392,7 +392,7 @@ declare class Winding {
392
392
  toString(): string;
393
393
  }
394
394
 
395
- type Any$P = any;
395
+ type Any$R = 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$P;
411
- constructor(vertices?: Any$P);
410
+ get _inner(): Any$R;
411
+ constructor(vertices?: Any$R);
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$P): GeomPoly;
437
+ static get(vertices?: Any$R): GeomPoly;
438
438
  empty(): boolean;
439
439
  size(): number;
440
- iterator(): Any$P;
441
- forwardIterator(): Any$P;
442
- backwardsIterator(): Any$P;
440
+ iterator(): Any$R;
441
+ forwardIterator(): Any$R;
442
+ backwardsIterator(): Any$R;
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$P;
455
+ winding(): Any$R;
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$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;
463
+ simpleDecomposition(output?: Any$R): Any$R;
464
+ monotoneDecomposition(output?: Any$R): Any$R;
465
+ convexDecomposition(delaunay?: boolean, output?: Any$R): Any$R;
466
+ triangularDecomposition(delaunay?: boolean, output?: Any$R): Any$R;
467
467
  inflate(inflation: number): GeomPoly;
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;
468
+ cut(start: Vec2, end: Vec2, boundedStart?: boolean, boundedEnd?: boolean, output?: Any$R): Any$R;
469
+ transform(matrix: Any$R): this;
470
+ bounds(): Any$R;
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$O = any;
486
+ type Any$Q = any;
487
487
  declare class ZPP_AABB {
488
488
  static zpp_pool: ZPP_AABB | null;
489
489
  static __name__: string[];
490
- static _nape: Any$O;
491
- static _zpp: Any$O;
492
- static _wrapFn: ((zpp: ZPP_AABB) => Any$O) | null;
490
+ static _nape: Any$Q;
491
+ static _zpp: Any$Q;
492
+ static _wrapFn: ((zpp: ZPP_AABB) => Any$Q) | null;
493
493
  _invalidate: ((self: ZPP_AABB) => void) | null;
494
494
  _validate: (() => void) | null;
495
495
  _immutable: boolean;
496
- outer: Any$O;
496
+ outer: Any$Q;
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$O;
503
- wrap_max: Any$O;
504
- __class__: Any$O;
502
+ wrap_min: Any$Q;
503
+ wrap_max: Any$Q;
504
+ __class__: Any$Q;
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$O;
509
+ wrapper(): Any$Q;
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$O): void;
520
+ mod_min(min: Any$Q): void;
521
521
  getmax(): void;
522
522
  dom_max(): void;
523
- mod_max(max: Any$O): void;
523
+ mod_max(max: Any$Q): 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$N = any;
587
+ type Any$P = any;
588
588
  declare class ZPP_MatMN {
589
589
  static __name__: string[];
590
- outer: Any$N;
590
+ outer: Any$P;
591
591
  m: number;
592
592
  n: number;
593
593
  x: number[];
594
- __class__: Any$N;
594
+ __class__: Any$P;
595
595
  constructor(m: number, n: number);
596
596
  }
597
597
 
598
- type Any$M = any;
598
+ type Any$O = 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$M): MatMN;
609
+ static _wrap(inner: Any$O): 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$L = any;
619
+ type Any$N = 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$L): Any$L;
642
+ static run(iso: (x: number, y: number) => number, bounds: AABB, cellsize: Vec2, quality?: number, subgrid?: Vec2 | null, combine?: boolean, output?: Any$N): Any$N;
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$K = any;
678
+ type Any$M = 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$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;
684
+ static _createRayResult: (() => Any$M) | null;
685
+ static _createConvexResult: (() => Any$M) | null;
686
+ normal: Any$M;
687
+ shape: Any$M;
688
+ convex: Any$M;
689
+ position: Any$M;
690
+ ray: Any$M;
691
691
  inner: boolean;
692
692
  next: ZPP_ConvexRayResult | null;
693
693
  toiDistance: number;
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;
694
+ __class__: Any$M;
695
+ static getRay(normal: Any$M, time: number, inner: boolean, shape: Any$M): Any$M;
696
+ static getConvex(normal: Any$M, position: Any$M, toiDistance: number, shape: Any$M): Any$M;
697
697
  disposed(): void;
698
698
  free(): void;
699
699
  private static _disposeVec2;
700
700
  }
701
701
 
702
- type Any$J = any;
702
+ type Any$L = 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$J): ConvexResult;
717
+ static _wrap(inner: Any$L): ConvexResult;
718
718
  get normal(): Vec2;
719
719
  get position(): Vec2;
720
720
  get toi(): number;
721
- get shape(): Any$J;
721
+ get shape(): Any$L;
722
722
  dispose(): void;
723
723
  toString(): string;
724
724
  /** @internal */
725
725
  private _disposed;
726
726
  }
727
727
 
728
- type Any$I = any;
728
+ type Any$K = 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$I): RayResult;
743
+ static _wrap(inner: Any$K): RayResult;
744
744
  get normal(): Vec2;
745
745
  get distance(): number;
746
746
  get inner(): boolean;
747
- get shape(): Any$I;
747
+ get shape(): Any$K;
748
748
  dispose(): void;
749
749
  toString(): string;
750
750
  /** @internal */
751
751
  private _disposed;
752
752
  }
753
753
 
754
- type Any$H = any;
754
+ type Any$J = 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$H, body2: Any$H, out1: Vec2, out2: Vec2): number;
772
+ static distanceBody(body1: Any$J, body2: Any$J, 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$H, shape2: Any$H, out1: Vec2, out2: Vec2): number;
781
+ static distance(shape1: Any$J, shape2: Any$J, 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$H, body2: Any$H): boolean;
788
+ static intersectsBody(body1: Any$J, body2: Any$J): 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$H, shape2: Any$H): boolean;
795
+ static intersects(shape1: Any$J, shape2: Any$J): 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$H, shape2: Any$H): boolean;
802
+ static contains(shape1: Any$J, shape2: Any$J): 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$G = any;
866
+ type Any$I = 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$G;
880
- static _zpp: Any$G;
879
+ static _nape: Any$I;
880
+ static _zpp: Any$I;
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$G) | null;
885
+ static _wrapFn: ((zpp: ZPP_Material) => Any$I) | null;
886
886
  elasticity: number;
887
887
  dynamicFriction: number;
888
888
  staticFriction: number;
889
889
  density: number;
890
890
  rollingFriction: number;
891
- shapes: Any$G;
892
- wrap_shapes: Any$G;
893
- outer: Any$G;
894
- userData: Any$G;
891
+ shapes: Any$I;
892
+ wrap_shapes: Any$I;
893
+ outer: Any$I;
894
+ userData: Any$I;
895
895
  next: ZPP_Material | null;
896
- __class__: Any$G;
896
+ __class__: Any$I;
897
897
  constructor();
898
898
  /** Create/return the public nape.phys.Material wrapper for this internal object. */
899
- wrapper(): Any$G;
899
+ wrapper(): Any$I;
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$G): void;
907
+ addShape(shape: Any$I): void;
908
908
  /** Unregister a shape that no longer uses this material. */
909
- remShape(shape: Any$G): void;
909
+ remShape(shape: Any$I): 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$F = any;
969
+ type Any$H = any;
970
970
  declare class ZPP_FluidProperties {
971
971
  static zpp_pool: ZPP_FluidProperties | null;
972
972
  static __name__: string[];
973
- static _nape: Any$F;
974
- static _zpp: Any$F;
975
- static _wrapFn: ((zpp: ZPP_FluidProperties) => Any$F) | null;
973
+ static _nape: Any$H;
974
+ static _zpp: Any$H;
975
+ static _wrapFn: ((zpp: ZPP_FluidProperties) => Any$H) | null;
976
976
  viscosity: number;
977
977
  density: number;
978
978
  gravityx: number;
979
979
  gravityy: number;
980
- wrap_gravity: Any$F;
981
- shapes: Any$F;
982
- wrap_shapes: Any$F;
983
- outer: Any$F;
984
- userData: Any$F;
980
+ wrap_gravity: Any$H;
981
+ shapes: Any$H;
982
+ wrap_shapes: Any$H;
983
+ outer: Any$H;
984
+ userData: Any$H;
985
985
  next: ZPP_FluidProperties | null;
986
- __class__: Any$F;
986
+ __class__: Any$H;
987
987
  constructor();
988
988
  /** Create/return the public nape.phys.FluidProperties wrapper. */
989
- wrapper(): Any$F;
989
+ wrapper(): Any$H;
990
990
  free(): void;
991
991
  alloc(): void;
992
992
  feature_cons(): void;
993
- addShape(shape: Any$F): void;
994
- remShape(shape: Any$F): void;
993
+ addShape(shape: Any$H): void;
994
+ remShape(shape: Any$H): 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$F): void;
998
+ gravity_invalidate(x: Any$H): 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$E = any;
1049
+ type Any$G = any;
1050
1050
  declare class ZPP_InteractionFilter {
1051
1051
  static zpp_pool: ZPP_InteractionFilter | null;
1052
1052
  static __name__: string[];
1053
- static _nape: Any$E;
1054
- static _zpp: Any$E;
1055
- static _wrapFn: ((zpp: ZPP_InteractionFilter) => Any$E) | null;
1053
+ static _nape: Any$G;
1054
+ static _zpp: Any$G;
1055
+ static _wrapFn: ((zpp: ZPP_InteractionFilter) => Any$G) | 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$E;
1063
- wrap_shapes: Any$E;
1064
- outer: Any$E;
1065
- userData: Any$E;
1062
+ shapes: Any$G;
1063
+ wrap_shapes: Any$G;
1064
+ outer: Any$G;
1065
+ userData: Any$G;
1066
1066
  next: ZPP_InteractionFilter | null;
1067
- __class__: Any$E;
1067
+ __class__: Any$G;
1068
1068
  constructor();
1069
1069
  /** Create/return the public nape.dynamics.InteractionFilter wrapper. */
1070
- wrapper(): Any$E;
1070
+ wrapper(): Any$G;
1071
1071
  free(): void;
1072
1072
  alloc(): void;
1073
1073
  feature_cons(): void;
1074
- addShape(shape: Any$E): void;
1075
- remShape(shape: Any$E): void;
1074
+ addShape(shape: Any$G): void;
1075
+ remShape(shape: Any$G): 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$D = any;
1139
+ type Any$F = 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$D;
1145
- static _wrapFn: ((zpp: ZPP_InteractionGroup) => Any$D) | null;
1146
- outer: Any$D;
1144
+ static _zpp: Any$F;
1145
+ static _wrapFn: ((zpp: ZPP_InteractionGroup) => Any$F) | null;
1146
+ outer: Any$F;
1147
1147
  ignore: boolean;
1148
1148
  group: ZPP_InteractionGroup | null;
1149
- groups: Any$D;
1150
- wrap_groups: Any$D;
1151
- interactors: Any$D;
1152
- wrap_interactors: Any$D;
1149
+ groups: Any$F;
1150
+ wrap_groups: Any$F;
1151
+ interactors: Any$F;
1152
+ wrap_interactors: Any$F;
1153
1153
  depth: number;
1154
- __class__: Any$D;
1154
+ __class__: Any$F;
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$D): void;
1165
+ addInteractor(intx: Any$F): void;
1166
1166
  /** Unregister an interactor from this group. */
1167
- remInteractor(intx: Any$D, flag?: number): void;
1167
+ remInteractor(intx: Any$F, flag?: number): void;
1168
1168
  }
1169
1169
 
1170
1170
  /**
@@ -1324,7 +1324,7 @@ interface CbTypeSet {
1324
1324
  *
1325
1325
  * Converted from nape-compiled.js lines 21424–21827.
1326
1326
  */
1327
- type Any$C = any;
1327
+ type Any$E = any;
1328
1328
  declare class ZPP_Constraint {
1329
1329
  static __name__: string[];
1330
1330
  /**
@@ -1332,13 +1332,13 @@ declare class ZPP_Constraint {
1332
1332
  * _nape = the `nape` public namespace (for CbTypeIterator in copyto)
1333
1333
  * _zpp = the `zpp_nape` internal namespace (for ZNPList_*, ZPP_CbSet, etc.)
1334
1334
  */
1335
- static _nape: Any$C;
1336
- static _zpp: Any$C;
1337
- outer: Any$C;
1335
+ static _nape: Any$E;
1336
+ static _zpp: Any$E;
1337
+ outer: Any$E;
1338
1338
  id: number;
1339
- userData: Any$C;
1340
- compound: Any$C;
1341
- space: Any$C;
1339
+ userData: Any$E;
1340
+ compound: Any$E;
1341
+ space: Any$E;
1342
1342
  active: boolean;
1343
1343
  stiff: boolean;
1344
1344
  frequency: number;
@@ -1348,14 +1348,14 @@ declare class ZPP_Constraint {
1348
1348
  breakUnderForce: boolean;
1349
1349
  breakUnderError: boolean;
1350
1350
  removeOnBreak: boolean;
1351
- component: Any$C;
1351
+ component: Any$E;
1352
1352
  ignore: boolean;
1353
1353
  __velocity: boolean;
1354
- cbTypes: Any$C;
1355
- cbSet: Any$C;
1356
- wrap_cbTypes: Any$C;
1354
+ cbTypes: Any$E;
1355
+ cbSet: Any$E;
1356
+ wrap_cbTypes: Any$E;
1357
1357
  pre_dt: number;
1358
- __class__: Any$C;
1358
+ __class__: Any$E;
1359
1359
  constructor();
1360
1360
  /**
1361
1361
  * Initialise base constraint fields.
@@ -1373,18 +1373,18 @@ declare class ZPP_Constraint {
1373
1373
  forest(): void;
1374
1374
  broken(): void;
1375
1375
  warmStart(): void;
1376
- draw(_g: Any$C): void;
1377
- pair_exists(_id: Any$C, _di: Any$C): boolean;
1376
+ draw(_g: Any$E): void;
1377
+ pair_exists(_id: Any$E, _di: Any$E): boolean;
1378
1378
  preStep(_dt: number): boolean;
1379
1379
  applyImpulseVel(): boolean;
1380
1380
  applyImpulsePos(): boolean;
1381
- copy(_dict?: Any$C, _todo?: Any$C): Any$C;
1381
+ copy(_dict?: Any$E, _todo?: Any$E): Any$E;
1382
1382
  immutable_midstep(name: string): void;
1383
1383
  setupcbTypes(): void;
1384
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;
1385
+ wrap_cbTypes_subber(pcb: Any$E): void;
1386
+ wrap_cbTypes_adder(cb: Any$E): boolean;
1387
+ insert_cbtype(cb: Any$E): void;
1388
1388
  alloc_cbSet(): void;
1389
1389
  dealloc_cbSet(): void;
1390
1390
  activate(): void;
@@ -1394,10 +1394,10 @@ declare class ZPP_Constraint {
1394
1394
  activeInSpace(): void;
1395
1395
  inactiveOrOutSpace(): void;
1396
1396
  wake(): void;
1397
- copyto(ret: Any$C): void;
1397
+ copyto(ret: Any$E): void;
1398
1398
  }
1399
1399
 
1400
- type Any$B = any;
1400
+ type Any$D = any;
1401
1401
  /**
1402
1402
  * Base class for all constraints / joints.
1403
1403
  *
@@ -1414,16 +1414,16 @@ declare class Constraint {
1414
1414
  * are fully modernized. Also serves as backward compat for compiled code.
1415
1415
  * @internal
1416
1416
  */
1417
- _inner: Any$B;
1417
+ _inner: Any$D;
1418
1418
  debugDraw: boolean;
1419
1419
  /** @internal */
1420
1420
  protected constructor();
1421
1421
  /** @internal */
1422
- static _wrap(inner: Any$B): Constraint;
1422
+ static _wrap(inner: Any$D): Constraint;
1423
1423
  get space(): Space | null;
1424
1424
  set space(value: Space | null);
1425
- get compound(): Any$B;
1426
- set compound(value: Any$B);
1425
+ get compound(): Any$D;
1426
+ set compound(value: Any$D);
1427
1427
  get active(): boolean;
1428
1428
  set active(value: boolean);
1429
1429
  get ignore(): boolean;
@@ -1446,17 +1446,17 @@ declare class Constraint {
1446
1446
  set removeOnBreak(value: boolean);
1447
1447
  get isSleeping(): boolean;
1448
1448
  get userData(): Record<string, unknown>;
1449
- get cbTypes(): Any$B;
1450
- impulse(): Any$B;
1451
- bodyImpulse(_body: Body): Any$B;
1449
+ get cbTypes(): Any$D;
1450
+ impulse(): Any$D;
1451
+ bodyImpulse(_body: Body): Any$D;
1452
1452
  visitBodies(_fn: (body: Body) => void): void;
1453
1453
  copy(): Constraint;
1454
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;
1455
+ /** @internal */ get_userData(): Any$D;
1456
+ /** @internal */ get_compound(): Any$D;
1457
+ /** @internal */ set_compound(v: Any$D): Any$D;
1458
+ /** @internal */ get_space(): Any$D;
1459
+ /** @internal */ set_space(v: Any$D): Any$D;
1460
1460
  /** @internal */ get_isSleeping(): boolean;
1461
1461
  /** @internal */ get_active(): boolean;
1462
1462
  /** @internal */ set_active(v: boolean): boolean;
@@ -1478,7 +1478,7 @@ declare class Constraint {
1478
1478
  /** @internal */ set_breakUnderError(v: boolean): boolean;
1479
1479
  /** @internal */ get_removeOnBreak(): boolean;
1480
1480
  /** @internal */ set_removeOnBreak(v: boolean): boolean;
1481
- /** @internal */ get_cbTypes(): Any$B;
1481
+ /** @internal */ get_cbTypes(): Any$D;
1482
1482
  }
1483
1483
 
1484
1484
  /**
@@ -1490,24 +1490,24 @@ declare class Constraint {
1490
1490
  *
1491
1491
  * Converted from nape-compiled.js lines 27259–27304, 112053–112139.
1492
1492
  */
1493
- type Any$A = any;
1493
+ type Any$C = any;
1494
1494
  declare class ZPP_Listener {
1495
1495
  static __name__: string[];
1496
- static _nape: Any$A;
1497
- static _zpp: Any$A;
1496
+ static _nape: Any$C;
1497
+ static _zpp: Any$C;
1498
1498
  static internal: boolean;
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;
1499
+ static types: Any$C[];
1500
+ static events: Any$C[];
1501
+ space: Any$C;
1502
+ interaction: Any$C;
1503
+ constraint: Any$C;
1504
+ body: Any$C;
1505
1505
  precedence: number;
1506
1506
  event: number;
1507
1507
  type: number;
1508
1508
  id: number;
1509
- outer: Any$A;
1510
- __class__: Any$A;
1509
+ outer: Any$C;
1510
+ __class__: Any$C;
1511
1511
  constructor();
1512
1512
  /** Sort comparator: higher precedence first, then by id descending. */
1513
1513
  static setlt(a: ZPP_Listener, b: ZPP_Listener): boolean;
@@ -1583,20 +1583,20 @@ declare class ListenerType {
1583
1583
  * Fully modernized from nape-compiled.js lines 231–433.
1584
1584
  */
1585
1585
 
1586
- type Any$z = any;
1586
+ type Any$B = any;
1587
1587
  declare class Listener {
1588
1588
  static __name__: string[];
1589
1589
  zpp_inner: ZPP_Listener;
1590
- get _inner(): Any$z;
1590
+ get _inner(): Any$B;
1591
1591
  constructor();
1592
- static _wrap(inner: Any$z): Listener;
1592
+ static _wrap(inner: Any$B): Listener;
1593
1593
  get type(): ListenerType;
1594
1594
  get event(): CbEvent;
1595
1595
  set event(event: CbEvent);
1596
1596
  get precedence(): number;
1597
1597
  set precedence(precedence: number);
1598
1598
  get space(): Space | null;
1599
- set space(space: Space | Any$z | null);
1599
+ set space(space: Space | Any$B | null);
1600
1600
  toString(): string;
1601
1601
  }
1602
1602
 
@@ -1683,46 +1683,46 @@ declare class BodyType {
1683
1683
  * Converted from nape-compiled.js lines 52431–54547.
1684
1684
  */
1685
1685
 
1686
- type Any$y = any;
1686
+ type Any$A = any;
1687
1687
  declare class ZPP_Body {
1688
1688
  static __name__: string[];
1689
- static __super__: Any$y;
1689
+ static __super__: Any$A;
1690
1690
  /**
1691
1691
  * Namespace references, set by the compiled module after import.
1692
1692
  * _nape = the `nape` public namespace
1693
1693
  * _zpp = the `zpp_nape` internal namespace
1694
1694
  */
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;
1695
+ static _nape: Any$A;
1696
+ static _zpp: Any$A;
1697
+ static types: Any$A[];
1698
+ static bodystack: Any$A;
1699
+ static bodyset: Any$A;
1700
1700
  static cur_graph_depth: number;
1701
- static bodysetlt(a: Any$y, b: Any$y): boolean;
1702
- static __static(): Any$y;
1703
- outer_i: Any$y;
1701
+ static bodysetlt(a: Any$A, b: Any$A): boolean;
1702
+ static __static(): Any$A;
1703
+ outer_i: Any$A;
1704
1704
  id: number;
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;
1705
+ userData: Any$A;
1706
+ ishape: Any$A;
1707
+ ibody: Any$A;
1708
+ icompound: Any$A;
1709
+ wrap_cbTypes: Any$A;
1710
+ cbSet: Any$A;
1711
+ cbTypes: Any$A;
1712
+ group: Any$A;
1713
+ cbsets: Any$A;
1714
+ outer: Any$A;
1715
1715
  world: boolean;
1716
1716
  type: number;
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;
1717
+ compound: Any$A;
1718
+ shapes: Any$A;
1719
+ wrap_shapes: Any$A;
1720
+ space: Any$A;
1721
+ arbiters: Any$A;
1722
+ wrap_arbiters: Any$A;
1723
+ constraints: Any$A;
1724
+ wrap_constraints: Any$A;
1725
+ component: Any$A;
1726
1726
  graph_depth: number;
1727
1727
  sweepTime: number;
1728
1728
  sweep_angvel: number;
@@ -1735,20 +1735,20 @@ declare class ZPP_Body {
1735
1735
  pre_posy: number;
1736
1736
  posx: number;
1737
1737
  posy: number;
1738
- wrap_pos: Any$y;
1738
+ wrap_pos: Any$A;
1739
1739
  velx: number;
1740
1740
  vely: number;
1741
- wrap_vel: Any$y;
1741
+ wrap_vel: Any$A;
1742
1742
  forcex: number;
1743
1743
  forcey: number;
1744
- wrap_force: Any$y;
1744
+ wrap_force: Any$A;
1745
1745
  kinvelx: number;
1746
1746
  kinvely: number;
1747
- wrap_kinvel: Any$y;
1747
+ wrap_kinvel: Any$A;
1748
1748
  svelx: number;
1749
1749
  svely: number;
1750
- wrap_svel: Any$y;
1751
- wrapcvel: Any$y;
1750
+ wrap_svel: Any$A;
1751
+ wrapcvel: Any$A;
1752
1752
  angvel: number;
1753
1753
  torque: number;
1754
1754
  kinangvel: number;
@@ -1785,9 +1785,9 @@ declare class ZPP_Body {
1785
1785
  worldCOMx: number;
1786
1786
  worldCOMy: number;
1787
1787
  zip_worldCOM: boolean;
1788
- wrap_localCOM: Any$y;
1789
- wrap_worldCOM: Any$y;
1790
- __class__: Any$y;
1788
+ wrap_localCOM: Any$A;
1789
+ wrap_worldCOM: Any$A;
1790
+ __class__: Any$A;
1791
1791
  constructor();
1792
1792
  isStatic(): boolean;
1793
1793
  isDynamic(): boolean;
@@ -1795,23 +1795,23 @@ declare class ZPP_Body {
1795
1795
  invalidate_type(): void;
1796
1796
  invalidate_shapes(): void;
1797
1797
  init_bodysetlist(): void;
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;
1798
+ connectedBodies_cont(b: Any$A): void;
1799
+ connectedBodies(depth: number, output: Any$A): Any$A;
1800
+ interactingBodies(type: number, output: Any$A): Any$A;
1801
1801
  atRest(dt: number): boolean;
1802
1802
  refreshArbiters(): void;
1803
1803
  sweepIntegrate(dt: number): void;
1804
- sweepValidate(s: Any$y): void;
1804
+ sweepValidate(s: Any$A): void;
1805
1805
  invalidate_pos(): void;
1806
- pos_invalidate(pos: Any$y): void;
1806
+ pos_invalidate(pos: Any$A): void;
1807
1807
  pos_validate(): void;
1808
- vel_invalidate(vel: Any$y): void;
1808
+ vel_invalidate(vel: Any$A): void;
1809
1809
  vel_validate(): void;
1810
- kinvel_invalidate(vel: Any$y): void;
1810
+ kinvel_invalidate(vel: Any$A): void;
1811
1811
  kinvel_validate(): void;
1812
- svel_invalidate(vel: Any$y): void;
1812
+ svel_invalidate(vel: Any$A): void;
1813
1813
  svel_validate(): void;
1814
- force_invalidate(force: Any$y): void;
1814
+ force_invalidate(force: Any$A): void;
1815
1815
  force_validate(): void;
1816
1816
  private _setupVec2Wrapper;
1817
1817
  setupPosition(): void;
@@ -1848,37 +1848,37 @@ declare class ZPP_Body {
1848
1848
  getworldCOM(): void;
1849
1849
  __immutable_midstep(): void;
1850
1850
  clear(): void;
1851
- shapes_adder(s: Any$y): boolean;
1852
- shapes_subber(s: Any$y): void;
1853
- shapes_invalidate(_param: Any$y): void;
1851
+ shapes_adder(s: Any$A): boolean;
1852
+ shapes_subber(s: Any$A): void;
1853
+ shapes_invalidate(_param: Any$A): void;
1854
1854
  shapes_modifiable(): void;
1855
1855
  addedToSpace(): void;
1856
1856
  removedFromSpace(): void;
1857
1857
  private _removeArbiterFromList;
1858
- copy(): Any$y;
1858
+ copy(): Any$A;
1859
1859
  wake: () => void;
1860
1860
  __iaddedToSpace: () => void;
1861
1861
  __iremovedFromSpace: () => void;
1862
1862
  immutable_midstep: (name: string) => void;
1863
- copyto: (ret: Any$y) => void;
1864
- insert_cbtype: (cb: Any$y) => void;
1863
+ copyto: (ret: Any$A) => void;
1864
+ insert_cbtype: (cb: Any$A) => void;
1865
1865
  alloc_cbSet: () => void;
1866
1866
  dealloc_cbSet: () => void;
1867
1867
  setupcbTypes: () => void;
1868
1868
  immutable_cbTypes: () => void;
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;
1869
+ wrap_cbTypes_subber: (pcb: Any$A) => void;
1870
+ wrap_cbTypes_adder: (cb: Any$A) => void;
1871
+ setGroup: (group: Any$A) => void;
1872
+ lookup_group: () => Any$A;
1873
+ getSpace: () => Any$A;
1874
1874
  isShape: () => boolean;
1875
1875
  isBody: () => boolean;
1876
1876
  isCompound: () => boolean;
1877
1877
  static _initialized: boolean;
1878
- static _init(zpp: Any$y, nape: Any$y): void;
1878
+ static _init(zpp: Any$A, nape: Any$A): void;
1879
1879
  }
1880
1880
 
1881
- type Any$x = any;
1881
+ type Any$z = any;
1882
1882
  /**
1883
1883
  * A rigid body in the physics simulation.
1884
1884
  *
@@ -1886,19 +1886,19 @@ type Any$x = any;
1886
1886
  */
1887
1887
  declare class Body extends Interactor {
1888
1888
  static __name__: string[];
1889
- static __super__: Any$x;
1889
+ static __super__: Any$z;
1890
1890
  /** Direct access to the extracted internal ZPP_Body. */
1891
1891
  zpp_inner: ZPP_Body;
1892
1892
  debugDraw: boolean;
1893
- /** @internal */ set_type: (type: Any$x) => Any$x;
1894
- /** @internal */ set_position: (position: Any$x) => Any$x;
1893
+ /** @internal */ set_type: (type: Any$z) => Any$z;
1894
+ /** @internal */ set_position: (position: Any$z) => Any$z;
1895
1895
  /** @internal */ set_rotation: (rotation: number) => number;
1896
- /** @internal */ set_velocity: (velocity: Any$x) => Any$x;
1896
+ /** @internal */ set_velocity: (velocity: Any$z) => Any$z;
1897
1897
  /** @internal */ set_angularVel: (angularVel: number) => number;
1898
- /** @internal */ set_kinematicVel: (kinematicVel: Any$x) => Any$x;
1898
+ /** @internal */ set_kinematicVel: (kinematicVel: Any$z) => Any$z;
1899
1899
  /** @internal */ set_kinAngVel: (kinAngVel: number) => number;
1900
- /** @internal */ set_surfaceVel: (surfaceVel: Any$x) => Any$x;
1901
- /** @internal */ set_force: (force: Any$x) => Any$x;
1900
+ /** @internal */ set_surfaceVel: (surfaceVel: Any$z) => Any$z;
1901
+ /** @internal */ set_force: (force: Any$z) => Any$z;
1902
1902
  /** @internal */ set_torque: (torque: number) => number;
1903
1903
  /** @internal */ get_mass: () => number;
1904
1904
  /** @internal */ set_mass: (mass: number) => number;
@@ -1910,36 +1910,36 @@ declare class Body extends Interactor {
1910
1910
  /** @internal */ set_gravMassScale: (gravMassScale: number) => number;
1911
1911
  /** @internal */ set_allowMovement: (v: boolean) => boolean;
1912
1912
  /** @internal */ set_allowRotation: (v: boolean) => boolean;
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;
1913
+ /** @internal */ set_space: (space: Any$z) => Any$z;
1914
+ /** @internal */ set_compound: (compound: Any$z) => Any$z;
1915
+ /** @internal */ get_localCOM: () => Any$z;
1916
+ /** @internal */ get_worldCOM: () => Any$z;
1917
+ /** @internal */ integrate: (deltaTime: number) => Any$z;
1918
+ /** @internal */ applyImpulse: (impulse: Any$z, pos?: Any$z, sleepable?: boolean) => void;
1919
1919
  /** @internal */ applyAngularImpulse: (impulse: number, sleepable?: boolean) => 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;
1920
+ /** @internal */ setVelocityFromTarget: (targetPosition: Any$z, targetRotation: number, deltaTime: number) => Any$z;
1921
+ /** @internal */ localPointToWorld: (point: Any$z, weak?: boolean) => Any$z;
1922
+ /** @internal */ worldPointToLocal: (point: Any$z, weak?: boolean) => Any$z;
1923
+ /** @internal */ localVectorToWorld: (vector: Any$z, weak?: boolean) => Any$z;
1924
+ /** @internal */ worldVectorToLocal: (vector: Any$z, weak?: boolean) => Any$z;
1925
+ /** @internal */ translateShapes: (translation: Any$z) => void;
1926
1926
  /** @internal */ rotateShapes: (angle: number) => void;
1927
1927
  /** @internal */ scaleShapes: (scaleX: number, scaleY: number) => void;
1928
1928
  /** @internal */ align: () => void;
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;
1929
+ /** @internal */ rotate: (centre: Any$z, angle: number) => void;
1930
+ /** @internal */ setShapeMaterials: (material: Any$z) => void;
1931
+ /** @internal */ setShapeFilters: (filter: Any$z) => void;
1932
+ /** @internal */ setShapeFluidProperties: (fluidProperties: Any$z) => void;
1933
+ /** @internal */ contains: (point: Any$z) => boolean;
1934
1934
  /** @internal */ crushFactor: () => number;
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;
1935
+ /** @internal */ connectedBodies: (depth?: number, output?: Any$z) => Any$z;
1936
+ /** @internal */ interactingBodies: (type?: Any$z, depth?: number, output?: Any$z) => Any$z;
1937
+ /** @internal */ get_massMode: () => Any$z;
1938
+ /** @internal */ set_massMode: (mode: Any$z) => Any$z;
1939
+ /** @internal */ get_inertiaMode: () => Any$z;
1940
+ /** @internal */ set_inertiaMode: (mode: Any$z) => Any$z;
1941
+ /** @internal */ get_gravMassMode: () => Any$z;
1942
+ /** @internal */ set_gravMassMode: (mode: Any$z) => Any$z;
1943
1943
  /** @internal */ _toString: () => string;
1944
1944
  constructor(type?: BodyType, position?: Vec2);
1945
1945
  /** @internal */
@@ -1989,40 +1989,40 @@ declare class Body extends Interactor {
1989
1989
  get shapes(): NapeList<Shape>;
1990
1990
  get space(): Space;
1991
1991
  set space(value: Space | null);
1992
- get compound(): Any$x;
1993
- set compound(value: Any$x);
1992
+ get compound(): Any$z;
1993
+ set compound(value: Any$z);
1994
1994
  get bounds(): AABB;
1995
1995
  get constraintVelocity(): Vec2;
1996
1996
  get localCOM(): Vec2;
1997
1997
  get worldCOM(): Vec2;
1998
1998
  copy(): Body;
1999
1999
  toString(): string;
2000
- get_type(): Any$x;
2001
- get_shapes(): Any$x;
2000
+ get_type(): Any$z;
2001
+ get_shapes(): Any$z;
2002
2002
  get_isBullet(): boolean;
2003
2003
  set_isBullet(v: boolean): boolean;
2004
2004
  get_disableCCD(): boolean;
2005
2005
  set_disableCCD(v: boolean): boolean;
2006
- get_position(): Any$x;
2007
- get_velocity(): Any$x;
2006
+ get_position(): Any$z;
2007
+ get_velocity(): Any$z;
2008
2008
  get_rotation(): number;
2009
2009
  get_angularVel(): number;
2010
- get_kinematicVel(): Any$x;
2010
+ get_kinematicVel(): Any$z;
2011
2011
  get_kinAngVel(): number;
2012
- get_surfaceVel(): Any$x;
2013
- get_force(): Any$x;
2012
+ get_surfaceVel(): Any$z;
2013
+ get_force(): Any$z;
2014
2014
  get_torque(): number;
2015
- get_bounds(): Any$x;
2016
- get_constraintVelocity(): Any$x;
2015
+ get_bounds(): Any$z;
2016
+ get_constraintVelocity(): Any$z;
2017
2017
  get_constraintMass(): number;
2018
2018
  get_constraintInertia(): number;
2019
2019
  get_allowMovement(): boolean;
2020
2020
  get_allowRotation(): boolean;
2021
2021
  get_isSleeping(): boolean;
2022
- get_compound(): Any$x;
2023
- get_space(): Any$x;
2024
- get_arbiters(): Any$x;
2025
- get_constraints(): Any$x;
2022
+ get_compound(): Any$z;
2023
+ get_space(): Any$z;
2024
+ get_arbiters(): Any$z;
2025
+ get_constraints(): Any$z;
2026
2026
  }
2027
2027
 
2028
2028
  /**
@@ -2033,77 +2033,77 @@ declare class Body extends Interactor {
2033
2033
  *
2034
2034
  * Converted from nape-compiled.js lines 55195–55521.
2035
2035
  */
2036
- type Any$w = any;
2036
+ type Any$y = any;
2037
2037
  declare class ZPP_Compound {
2038
2038
  static __name__: string[];
2039
- static __super__: Any$w;
2039
+ static __super__: Any$y;
2040
2040
  /**
2041
2041
  * Namespace references, set by the compiled module after import.
2042
2042
  * _nape = the `nape` public namespace (for wrapper creation in copy())
2043
2043
  * _zpp = the `zpp_nape` internal namespace (for ZNPList_*, ZPP_BodyList, etc.)
2044
2044
  */
2045
- static _nape: Any$w;
2046
- static _zpp: Any$w;
2045
+ static _nape: Any$y;
2046
+ static _zpp: Any$y;
2047
2047
  /**
2048
2048
  * Wrapper factory callback, registered by the modernized Compound class.
2049
2049
  * When set, wrapper() uses this instead of the compiled Compound constructor.
2050
2050
  */
2051
- static _wrapFn: ((zpp: ZPP_Compound) => Any$w) | null;
2052
- outer_i: Any$w;
2051
+ static _wrapFn: ((zpp: ZPP_Compound) => Any$y) | null;
2052
+ outer_i: Any$y;
2053
2053
  id: number;
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;
2054
+ userData: Any$y;
2055
+ ishape: Any$y;
2056
+ ibody: Any$y;
2057
+ icompound: Any$y;
2058
+ wrap_cbTypes: Any$y;
2059
+ cbSet: Any$y;
2060
+ cbTypes: Any$y;
2061
+ group: Any$y;
2062
+ cbsets: Any$y;
2063
+ outer: Any$y;
2064
+ bodies: Any$y;
2065
+ constraints: Any$y;
2066
+ compounds: Any$y;
2067
+ wrap_bodies: Any$y;
2068
+ wrap_constraints: Any$y;
2069
+ wrap_compounds: Any$y;
2070
2070
  depth: number;
2071
- compound: Any$w;
2072
- space: Any$w;
2073
- __class__: Any$w;
2071
+ compound: Any$y;
2072
+ space: Any$y;
2073
+ __class__: Any$y;
2074
2074
  constructor();
2075
2075
  __imutable_midstep(name: string): void;
2076
2076
  addedToSpace(): void;
2077
2077
  removedFromSpace(): void;
2078
2078
  breakApart(): void;
2079
2079
  private static _zppOf;
2080
- bodies_adder(x: Any$w): boolean;
2081
- bodies_subber(x: Any$w): void;
2080
+ bodies_adder(x: Any$y): boolean;
2081
+ bodies_subber(x: Any$y): void;
2082
2082
  bodies_modifiable(): void;
2083
- constraints_adder(x: Any$w): boolean;
2084
- constraints_subber(x: Any$w): void;
2083
+ constraints_adder(x: Any$y): boolean;
2084
+ constraints_subber(x: Any$y): void;
2085
2085
  constraints_modifiable(): void;
2086
- compounds_adder(x: Any$w): boolean;
2087
- compounds_subber(x: Any$w): void;
2086
+ compounds_adder(x: Any$y): boolean;
2087
+ compounds_subber(x: Any$y): void;
2088
2088
  compounds_modifiable(): void;
2089
- copy(dict?: Any$w[], todo?: Any$w[]): Any$w;
2089
+ copy(dict?: Any$y[], todo?: Any$y[]): Any$y;
2090
2090
  isShape: () => boolean;
2091
2091
  isBody: () => boolean;
2092
2092
  isCompound: () => boolean;
2093
2093
  __iaddedToSpace: () => void;
2094
2094
  __iremovedFromSpace: () => void;
2095
2095
  wake: () => void;
2096
- getSpace: () => Any$w;
2096
+ getSpace: () => Any$y;
2097
2097
  setupcbTypes: () => void;
2098
2098
  immutable_cbTypes: () => void;
2099
- wrap_cbTypes_subber: (pcb: Any$w) => void;
2100
- wrap_cbTypes_adder: (cb: Any$w) => boolean;
2101
- insert_cbtype: (cb: Any$w) => void;
2099
+ wrap_cbTypes_subber: (pcb: Any$y) => void;
2100
+ wrap_cbTypes_adder: (cb: Any$y) => boolean;
2101
+ insert_cbtype: (cb: Any$y) => void;
2102
2102
  alloc_cbSet: () => void;
2103
2103
  dealloc_cbSet: () => void;
2104
2104
  immutable_midstep: (name: string) => void;
2105
- copyto: (ret: Any$w) => void;
2106
- lookup_group: () => Any$w;
2105
+ copyto: (ret: Any$y) => void;
2106
+ lookup_group: () => Any$y;
2107
2107
  /**
2108
2108
  * Initialize prototype by copying ZPP_Interactor methods.
2109
2109
  * Must be called after _zpp is set (during compiled module init).
@@ -2111,7 +2111,7 @@ declare class ZPP_Compound {
2111
2111
  static _init(): void;
2112
2112
  }
2113
2113
 
2114
- type Any$v = any;
2114
+ type Any$x = any;
2115
2115
  /**
2116
2116
  * A compound physics object — a hierarchical grouping of Bodies, Constraints,
2117
2117
  * and other Compounds.
@@ -2120,18 +2120,18 @@ type Any$v = any;
2120
2120
  */
2121
2121
  declare class Compound extends Interactor {
2122
2122
  static __name__: string[];
2123
- static __super__: Any$v;
2123
+ static __super__: Any$x;
2124
2124
  /** Direct access to the extracted internal ZPP_Compound. */
2125
2125
  zpp_inner: ZPP_Compound;
2126
2126
  constructor();
2127
2127
  /** @internal */
2128
2128
  static _wrap(inner: NapeInner): Compound;
2129
2129
  /** Bodies in this compound. */
2130
- get bodies(): Any$v;
2130
+ get bodies(): Any$x;
2131
2131
  /** Constraints in this compound. */
2132
- get constraints(): Any$v;
2132
+ get constraints(): Any$x;
2133
2133
  /** Child compounds in this compound. */
2134
- get compounds(): Any$v;
2134
+ get compounds(): Any$x;
2135
2135
  /** Parent compound, or null if this is a root compound. */
2136
2136
  get compound(): Compound | null;
2137
2137
  set compound(value: Compound | null);
@@ -2145,7 +2145,7 @@ declare class Compound extends Interactor {
2145
2145
  /** Recursively visit all bodies in this compound and its sub-compounds. */
2146
2146
  visitBodies(lambda: (body: Body) => void): void;
2147
2147
  /** Recursively visit all constraints in this compound and its sub-compounds. */
2148
- visitConstraints(lambda: (constraint: Any$v) => void): void;
2148
+ visitConstraints(lambda: (constraint: Any$x) => void): void;
2149
2149
  /** Recursively visit all sub-compounds in this compound. */
2150
2150
  visitCompounds(lambda: (compound: Compound) => void): void;
2151
2151
  /** Calculate the center of mass of all bodies in this compound. */
@@ -2155,13 +2155,13 @@ declare class Compound extends Interactor {
2155
2155
  /** Rotate all bodies in this compound around the given centre point. */
2156
2156
  rotate(centre: Vec2, angle: number): Compound;
2157
2157
  toString(): string;
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;
2158
+ get_bodies(): Any$x;
2159
+ get_constraints(): Any$x;
2160
+ get_compounds(): Any$x;
2161
+ get_compound(): Any$x;
2162
+ set_compound(compound: Any$x): Any$x;
2163
+ get_space(): Any$x;
2164
+ set_space(space: Any$x): Any$x;
2165
2165
  }
2166
2166
 
2167
2167
  /**
@@ -2326,17 +2326,17 @@ declare class ArbiterType {
2326
2326
  *
2327
2327
  * Converted from nape-compiled.js lines 29044–29362, 80738–80766.
2328
2328
  */
2329
- type Any$u = any;
2329
+ type Any$w = any;
2330
2330
  declare class ZPP_Arbiter {
2331
2331
  static __name__: string[];
2332
- static _nape: Any$u;
2333
- static _zpp: Any$u;
2332
+ static _nape: Any$w;
2333
+ static _zpp: Any$w;
2334
2334
  static internal: boolean;
2335
2335
  static COL: number;
2336
2336
  static FLUID: number;
2337
2337
  static SENSOR: number;
2338
- static types: Any$u[];
2339
- outer: Any$u;
2338
+ static types: Any$w[];
2339
+ outer: Any$w;
2340
2340
  hnext: ZPP_Arbiter | null;
2341
2341
  id: number;
2342
2342
  di: number;
@@ -2354,31 +2354,31 @@ declare class ZPP_Arbiter {
2354
2354
  fresh: boolean;
2355
2355
  immState: number;
2356
2356
  invalidated: boolean;
2357
- b1: Any$u;
2358
- b2: Any$u;
2359
- ws1: Any$u;
2360
- ws2: Any$u;
2361
- pair: Any$u;
2357
+ b1: Any$w;
2358
+ b2: Any$w;
2359
+ ws1: Any$w;
2360
+ ws2: Any$w;
2361
+ pair: Any$w;
2362
2362
  type: number;
2363
- colarb: Any$u;
2364
- fluidarb: Any$u;
2365
- sensorarb: Any$u;
2366
- __class__: Any$u;
2363
+ colarb: Any$w;
2364
+ fluidarb: Any$w;
2365
+ sensorarb: Any$w;
2366
+ __class__: Any$w;
2367
2367
  constructor();
2368
- wrapper(): Any$u;
2368
+ wrapper(): Any$w;
2369
2369
  inactiveme(): boolean;
2370
2370
  acting(): boolean;
2371
2371
  swap_features(): void;
2372
- lazyRetire(s: Any$u, b: Any$u): void;
2373
- sup_assign(s1: Any$u, s2: Any$u, id: number, di: number): void;
2372
+ lazyRetire(s: Any$w, b: Any$w): void;
2373
+ sup_assign(s1: Any$w, s2: Any$w, id: number, di: number): void;
2374
2374
  sup_retire(): void;
2375
2375
  /** Remove this arbiter from a ZNPList_ZPP_Arbiter */
2376
- static _removeFromArbiterList(list: Any$u, arb: ZPP_Arbiter, zpp: Any$u): void;
2376
+ static _removeFromArbiterList(list: Any$w, arb: ZPP_Arbiter, zpp: Any$w): void;
2377
2377
  /** Add this arbiter to a ZNPList_ZPP_Arbiter */
2378
- static _addToArbiterList(list: Any$u, arb: ZPP_Arbiter, zpp: Any$u): void;
2378
+ static _addToArbiterList(list: Any$w, arb: ZPP_Arbiter, zpp: Any$w): void;
2379
2379
  }
2380
2380
 
2381
- type Any$t = any;
2381
+ type Any$v = any;
2382
2382
  /**
2383
2383
  * Represents an interaction arbiter between two shapes.
2384
2384
  *
@@ -2397,21 +2397,21 @@ declare class Arbiter {
2397
2397
  /** Whether this arbiter is currently sleeping. */
2398
2398
  get isSleeping(): boolean;
2399
2399
  /** The type of this arbiter (COLLISION, SENSOR, or FLUID). */
2400
- get type(): Any$t;
2400
+ get type(): Any$v;
2401
2401
  /** Cast to CollisionArbiter if this is a collision, else null. */
2402
- get collisionArbiter(): Any$t;
2402
+ get collisionArbiter(): Any$v;
2403
2403
  /** Cast to FluidArbiter if this is a fluid interaction, else null. */
2404
- get fluidArbiter(): Any$t;
2404
+ get fluidArbiter(): Any$v;
2405
2405
  /** First shape (lower id). */
2406
- get shape1(): Any$t;
2406
+ get shape1(): Any$v;
2407
2407
  /** Second shape (higher id). */
2408
- get shape2(): Any$t;
2408
+ get shape2(): Any$v;
2409
2409
  /** Body of shape1. */
2410
- get body1(): Any$t;
2410
+ get body1(): Any$v;
2411
2411
  /** Body of shape2. */
2412
- get body2(): Any$t;
2412
+ get body2(): Any$v;
2413
2413
  /** The pre-handler state of this arbiter. */
2414
- get state(): Any$t;
2414
+ get state(): Any$v;
2415
2415
  /** Whether this is a collision arbiter. */
2416
2416
  isCollisionArbiter(): boolean;
2417
2417
  /** Whether this is a fluid arbiter. */
@@ -2422,15 +2422,15 @@ declare class Arbiter {
2422
2422
  * Total impulse of this arbiter. Base implementation returns Vec3(0,0,0).
2423
2423
  * Overridden by CollisionArbiter and FluidArbiter.
2424
2424
  */
2425
- totalImpulse(body?: Any$t, _freshOnly?: boolean): Vec3;
2425
+ totalImpulse(body?: Any$v, _freshOnly?: boolean): Vec3;
2426
2426
  toString(): string;
2427
2427
  /** @internal */
2428
2428
  protected _activeCheck(): void;
2429
2429
  /** @internal */
2430
- protected _checkBody(body: Any$t): void;
2430
+ protected _checkBody(body: Any$v): void;
2431
2431
  }
2432
2432
 
2433
- type Any$s = any;
2433
+ type Any$u = any;
2434
2434
  /**
2435
2435
  * A collision arbiter between two shapes in contact.
2436
2436
  *
@@ -2444,15 +2444,15 @@ declare class CollisionArbiter extends Arbiter {
2444
2444
  static __super__: typeof Arbiter;
2445
2445
  constructor();
2446
2446
  /** Contact points for this collision. */
2447
- get contacts(): Any$s;
2447
+ get contacts(): Any$u;
2448
2448
  /** Collision normal vector. */
2449
- get normal(): Any$s;
2449
+ get normal(): Any$u;
2450
2450
  /** Sum of the radii of the two shapes at the collision point. */
2451
2451
  get radius(): number;
2452
2452
  /** Reference edge of shape1 (if polygon), or null. */
2453
- get referenceEdge1(): Any$s;
2453
+ get referenceEdge1(): Any$u;
2454
2454
  /** Reference edge of shape2 (if polygon), or null. */
2455
- get referenceEdge2(): Any$s;
2455
+ get referenceEdge2(): Any$u;
2456
2456
  /** Coefficient of restitution (elasticity). Mutable in pre-handler only. */
2457
2457
  get elasticity(): number;
2458
2458
  set elasticity(value: number);
@@ -2470,20 +2470,20 @@ declare class CollisionArbiter extends Arbiter {
2470
2470
  /** Whether the second contact point lies on a polygon vertex (poly-circle only). */
2471
2471
  secondVertex(): boolean;
2472
2472
  /** Normal impulse accumulated across all contacts. */
2473
- normalImpulse(body?: Any$s, freshOnly?: boolean): Vec3;
2473
+ normalImpulse(body?: Any$u, freshOnly?: boolean): Vec3;
2474
2474
  /** Tangent (friction) impulse accumulated across all contacts. */
2475
- tangentImpulse(body?: Any$s, freshOnly?: boolean): Vec3;
2475
+ tangentImpulse(body?: Any$u, freshOnly?: boolean): Vec3;
2476
2476
  /** Total impulse (normal + tangent + rolling) accumulated across all contacts. */
2477
- totalImpulse(body?: Any$s, freshOnly?: boolean): Vec3;
2477
+ totalImpulse(body?: Any$u, freshOnly?: boolean): Vec3;
2478
2478
  /** Rolling impulse for this collision. */
2479
- rollingImpulse(body?: Any$s, freshOnly?: boolean): number;
2479
+ rollingImpulse(body?: Any$u, freshOnly?: boolean): number;
2480
2480
  /** @internal Throw if not in pre-handler mutable window. */
2481
2481
  private _mutableCheck;
2482
2482
  /** @internal Accumulate impulse from contacts. */
2483
2483
  private _accumulateImpulse;
2484
2484
  }
2485
2485
 
2486
- type Any$r = any;
2486
+ type Any$t = any;
2487
2487
  /**
2488
2488
  * A fluid arbiter between two shapes with fluid interaction.
2489
2489
  *
@@ -2503,11 +2503,11 @@ declare class FluidArbiter extends Arbiter {
2503
2503
  get overlap(): number;
2504
2504
  set overlap(value: number);
2505
2505
  /** Buoyancy impulse applied by this fluid arbiter. */
2506
- buoyancyImpulse(body?: Any$r): Vec3;
2506
+ buoyancyImpulse(body?: Any$t): Vec3;
2507
2507
  /** Drag impulse applied by this fluid arbiter. */
2508
- dragImpulse(body?: Any$r): Vec3;
2508
+ dragImpulse(body?: Any$t): Vec3;
2509
2509
  /** Total impulse (buoyancy + drag). */
2510
- totalImpulse(body?: Any$r, _freshOnly?: boolean): Vec3;
2510
+ totalImpulse(body?: Any$t, _freshOnly?: boolean): Vec3;
2511
2511
  }
2512
2512
 
2513
2513
  /**
@@ -2519,7 +2519,7 @@ declare class FluidArbiter extends Arbiter {
2519
2519
  *
2520
2520
  * Converted from nape-compiled.js lines 32346–32733.
2521
2521
  */
2522
- type Any$q = any;
2522
+ type Any$s = any;
2523
2523
  declare class ZPP_IContact {
2524
2524
  static __name__: string[];
2525
2525
  length: number;
@@ -2541,7 +2541,7 @@ declare class ZPP_IContact {
2541
2541
  lr1y: number;
2542
2542
  lr2x: number;
2543
2543
  lr2y: number;
2544
- __class__: Any$q;
2544
+ __class__: Any$s;
2545
2545
  elem(): this;
2546
2546
  begin(): ZPP_IContact | null;
2547
2547
  setbegin(i: ZPP_IContact | null): void;
@@ -2585,19 +2585,19 @@ declare class ZPP_IContact {
2585
2585
  * Converted from nape-compiled.js lines 31853–32345, 81644–81645.
2586
2586
  */
2587
2587
 
2588
- type Any$p = any;
2588
+ type Any$r = any;
2589
2589
  declare class ZPP_Contact {
2590
2590
  static __name__: string[];
2591
- static _nape: Any$p;
2592
- static _zpp: Any$p;
2591
+ static _nape: Any$r;
2592
+ static _zpp: Any$r;
2593
2593
  static zpp_pool: ZPP_Contact | null;
2594
2594
  static internal: boolean;
2595
- static _wrapFn: ((zpp: ZPP_Contact) => Any$p) | null;
2596
- outer: Any$p;
2595
+ static _wrapFn: ((zpp: ZPP_Contact) => Any$r) | null;
2596
+ outer: Any$r;
2597
2597
  px: number;
2598
2598
  py: number;
2599
- wrap_position: Any$p;
2600
- arbiter: Any$p;
2599
+ wrap_position: Any$r;
2600
+ arbiter: Any$r;
2601
2601
  inner: ZPP_IContact;
2602
2602
  active: boolean;
2603
2603
  posOnly: boolean;
@@ -2611,9 +2611,9 @@ declare class ZPP_Contact {
2611
2611
  modified: boolean;
2612
2612
  _inuse: boolean;
2613
2613
  next: ZPP_Contact | null;
2614
- __class__: Any$p;
2614
+ __class__: Any$r;
2615
2615
  constructor();
2616
- wrapper(): Any$p;
2616
+ wrapper(): Any$r;
2617
2617
  position_validate(): void;
2618
2618
  getposition(): void;
2619
2619
  inactiveme(): boolean;
@@ -2651,7 +2651,7 @@ declare class ZPP_Contact {
2651
2651
  at(ind: number): ZPP_Contact | null;
2652
2652
  }
2653
2653
 
2654
- type Any$o = any;
2654
+ type Any$q = any;
2655
2655
  /**
2656
2656
  * Represents a contact point between two colliding shapes.
2657
2657
  *
@@ -2668,7 +2668,7 @@ declare class Contact {
2668
2668
  get _inner(): NapeInner;
2669
2669
  constructor();
2670
2670
  /** The collision arbiter this contact belongs to, or null. */
2671
- get arbiter(): Any$o;
2671
+ get arbiter(): Any$q;
2672
2672
  /** Penetration depth of this contact (positive = overlapping). */
2673
2673
  get penetration(): number;
2674
2674
  /** World-space position of this contact point. */
@@ -2682,25 +2682,25 @@ declare class Contact {
2682
2682
  * @param body - If null, returns world-frame impulse. Otherwise returns
2683
2683
  * impulse on the given body (must be one of the two in contact).
2684
2684
  */
2685
- normalImpulse(body?: Any$o): Vec3;
2685
+ normalImpulse(body?: Any$q): Vec3;
2686
2686
  /**
2687
2687
  * Tangent impulse at this contact point.
2688
2688
  * @param body - If null, returns world-frame impulse. Otherwise returns
2689
2689
  * impulse on the given body.
2690
2690
  */
2691
- tangentImpulse(body?: Any$o): Vec3;
2691
+ tangentImpulse(body?: Any$q): Vec3;
2692
2692
  /**
2693
2693
  * Rolling impulse at this contact point.
2694
2694
  * @param body - If null, returns total rolling impulse. Otherwise returns
2695
2695
  * rolling impulse on the given body.
2696
2696
  */
2697
- rollingImpulse(body?: Any$o): number;
2697
+ rollingImpulse(body?: Any$q): number;
2698
2698
  /**
2699
2699
  * Total impulse (normal + tangent + rolling) at this contact point.
2700
2700
  * @param body - If null, returns world-frame impulse. Otherwise returns
2701
2701
  * impulse on the given body.
2702
2702
  */
2703
- totalImpulse(body?: Any$o): Vec3;
2703
+ totalImpulse(body?: Any$q): Vec3;
2704
2704
  toString(): string;
2705
2705
  /** @internal */
2706
2706
  private _inactiveCheck;
@@ -2717,41 +2717,41 @@ declare class Contact {
2717
2717
  *
2718
2718
  * Converted from nape-compiled.js lines 48256–48482.
2719
2719
  */
2720
- type Any$n = any;
2720
+ type Any$p = any;
2721
2721
  declare class ZPP_CbType {
2722
2722
  static __name__: string[];
2723
- static _zpp: Any$n;
2724
- outer: Any$n;
2725
- userData: Any$n;
2723
+ static _zpp: Any$p;
2724
+ outer: Any$p;
2725
+ userData: Any$p;
2726
2726
  id: number;
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;
2727
+ cbsets: Any$p;
2728
+ interactors: Any$p;
2729
+ wrap_interactors: Any$p;
2730
+ constraints: Any$p;
2731
+ wrap_constraints: Any$p;
2732
+ listeners: Any$p;
2733
+ bodylisteners: Any$p;
2734
+ conlisteners: Any$p;
2735
+ __class__: Any$p;
2736
2736
  constructor();
2737
2737
  /** Sort comparator by id. */
2738
2738
  static setlt(a: ZPP_CbType, b: ZPP_CbType): boolean;
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;
2739
+ addInteractor(intx: Any$p): void;
2740
+ remInteractor(intx: Any$p): void;
2741
+ addConstraint(con: Any$p): void;
2742
+ remConstraint(con: Any$p): void;
2743
+ addint(x: Any$p): void;
2744
+ removeint(x: Any$p): void;
2745
2745
  invalidateint(): void;
2746
- addbody(x: Any$n): void;
2747
- removebody(x: Any$n): void;
2746
+ addbody(x: Any$p): void;
2747
+ removebody(x: Any$p): void;
2748
2748
  invalidatebody(): void;
2749
- addconstraint(x: Any$n): void;
2750
- removeconstraint(x: Any$n): void;
2749
+ addconstraint(x: Any$p): void;
2750
+ removeconstraint(x: Any$p): void;
2751
2751
  invalidateconstraint(): void;
2752
2752
  }
2753
2753
 
2754
- type Any$m = any;
2754
+ type Any$o = any;
2755
2755
  /**
2756
2756
  * Callback type — used to tag interactors so that listeners
2757
2757
  * can filter which interactions they respond to.
@@ -2772,11 +2772,11 @@ declare class CbType {
2772
2772
  static get_ANY_SHAPE(): CbType;
2773
2773
  static get_ANY_COMPOUND(): CbType;
2774
2774
  get id(): number;
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;
2775
+ get userData(): Any$o;
2776
+ get interactors(): Any$o;
2777
+ get constraints(): Any$o;
2778
+ including(includes: Any$o): Any$o;
2779
+ excluding(excludes: Any$o): Any$o;
2780
2780
  toString(): string;
2781
2781
  static _wrap(inner: any): CbType;
2782
2782
  }
@@ -2837,37 +2837,37 @@ declare class PreFlag {
2837
2837
  *
2838
2838
  * Converted from nape-compiled.js lines 51337–51655.
2839
2839
  */
2840
- type Any$l = any;
2840
+ type Any$n = any;
2841
2841
  declare class ZPP_OptionType {
2842
2842
  static __name__: string[];
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;
2843
+ static _nape: Any$n;
2844
+ static _zpp: Any$n;
2845
+ outer: Any$n;
2846
+ handler: ((val: Any$n, included: boolean, added: boolean) => void) | null;
2847
+ includes: Any$n;
2848
+ excludes: Any$n;
2849
+ wrap_includes: Any$n;
2850
+ wrap_excludes: Any$n;
2851
+ __class__: Any$n;
2852
2852
  constructor();
2853
2853
  /** Coerce a value to OptionType (null → new, OptionType → pass-through, CbType → including). */
2854
- static argument(val: Any$l): Any$l;
2854
+ static argument(val: Any$n): Any$n;
2855
2855
  setup_includes(): void;
2856
2856
  setup_excludes(): void;
2857
- excluded(xs: Any$l): boolean;
2858
- included(xs: Any$l): boolean;
2859
- compatible(xs: Any$l): boolean;
2857
+ excluded(xs: Any$n): boolean;
2858
+ included(xs: Any$n): boolean;
2859
+ compatible(xs: Any$n): boolean;
2860
2860
  /** Check whether two sorted-by-id lists share any element. */
2861
- nonemptyintersection(xs: Any$l, ys: Any$l): boolean;
2861
+ nonemptyintersection(xs: Any$n, ys: Any$n): boolean;
2862
2862
  /** Insert into the ordered include or exclude list, using pool nodes. */
2863
2863
  private insertOrdered;
2864
- effect_change(val: Any$l, included: boolean, added: boolean): void;
2865
- append_type(list: Any$l, val: Any$l): void;
2864
+ effect_change(val: Any$n, included: boolean, added: boolean): void;
2865
+ append_type(list: Any$n, val: Any$n): void;
2866
2866
  set(options: ZPP_OptionType): this;
2867
- append(list: Any$l, val: Any$l): void;
2867
+ append(list: Any$n, val: Any$n): void;
2868
2868
  }
2869
2869
 
2870
- type Any$k = any;
2870
+ type Any$m = any;
2871
2871
  /**
2872
2872
  * Composite callback option type — allows including and excluding CbTypes.
2873
2873
  *
@@ -2877,13 +2877,13 @@ declare class OptionType {
2877
2877
  static __name__: string[];
2878
2878
  zpp_inner: ZPP_OptionType;
2879
2879
  get _inner(): NapeInner;
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;
2880
+ constructor(includes?: Any$m, excludes?: Any$m);
2881
+ get includes(): Any$m;
2882
+ get excludes(): Any$m;
2883
+ get_includes(): Any$m;
2884
+ get_excludes(): Any$m;
2885
+ including(includes: Any$m): this;
2886
+ excluding(excludes: Any$m): this;
2887
2887
  toString(): string;
2888
2888
  static _wrap(inner: any): OptionType;
2889
2889
  }
@@ -2897,18 +2897,18 @@ declare class OptionType {
2897
2897
  * Converted from nape-compiled.js lines 27305–27497.
2898
2898
  */
2899
2899
 
2900
- type Any$j = any;
2900
+ type Any$l = any;
2901
2901
  declare class ZPP_BodyListener extends ZPP_Listener {
2902
2902
  static __name__: string[];
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);
2903
+ handler: Any$l;
2904
+ options: Any$l;
2905
+ outer_zn: Any$l;
2906
+ __class__: Any$l;
2907
+ constructor(options: Any$l, event: number, handler: Any$l);
2908
2908
  immutable_options(): void;
2909
2909
  addedToSpace(): void;
2910
2910
  removedFromSpace(): void;
2911
- cbtype_change(cb: Any$j, included: boolean, added: boolean): void;
2911
+ cbtype_change(cb: Any$l, included: boolean, added: boolean): void;
2912
2912
  invalidate_precedence(): void;
2913
2913
  swapEvent(newev: number): void;
2914
2914
  }
@@ -2919,15 +2919,15 @@ declare class ZPP_BodyListener extends ZPP_Listener {
2919
2919
  * Fully modernized from nape-compiled.js lines 434–515.
2920
2920
  */
2921
2921
 
2922
- type Any$i = any;
2922
+ type Any$k = any;
2923
2923
  declare class BodyListener extends Listener {
2924
2924
  static __name__: string[];
2925
2925
  zpp_inner_zn: ZPP_BodyListener;
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);
2926
+ constructor(event: CbEvent, options: Any$k, handler: (cb: Any$k) => void, precedence?: number);
2927
+ get options(): Any$k;
2928
+ set options(options: Any$k);
2929
+ get handler(): (cb: Any$k) => void;
2930
+ set handler(handler: (cb: Any$k) => void);
2931
2931
  }
2932
2932
 
2933
2933
  /**
@@ -2940,38 +2940,38 @@ declare class BodyListener extends Listener {
2940
2940
  * Converted from nape-compiled.js lines 28138–30352, 112140–112151.
2941
2941
  */
2942
2942
 
2943
- type Any$h = any;
2943
+ type Any$j = any;
2944
2944
  declare class ZPP_InteractionListener extends ZPP_Listener {
2945
2945
  static __name__: string[];
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;
2946
+ static UCbSet: Any$j;
2947
+ static VCbSet: Any$j;
2948
+ static WCbSet: Any$j;
2949
+ static UCbType: Any$j;
2950
+ static VCbType: Any$j;
2951
+ static WCbType: Any$j;
2952
+ outer_zni: Any$j;
2953
+ outer_znp: Any$j;
2954
2954
  itype: number;
2955
- options1: Any$h;
2956
- options2: Any$h;
2957
- handleri: Any$h;
2955
+ options1: Any$j;
2956
+ options2: Any$j;
2957
+ handleri: Any$j;
2958
2958
  allowSleepingCallbacks: boolean;
2959
2959
  pure: boolean;
2960
- handlerp: Any$h;
2961
- __class__: Any$h;
2962
- constructor(options1: Any$h, options2: Any$h, event: number, type: number);
2960
+ handlerp: Any$j;
2961
+ __class__: Any$j;
2962
+ constructor(options1: Any$j, options2: Any$j, event: number, type: number);
2963
2963
  setInteractionType(itype: number): void;
2964
2964
  wake(): 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;
2965
+ CbSetset(A: Any$j, B: Any$j, lambda: (a: Any$j, b: Any$j) => void): void;
2966
+ CbTypeset(A: Any$j, B: Any$j, lambda: (a: Any$j, b: Any$j) => void): void;
2967
2967
  with_uniquesets(fresh: boolean): void;
2968
- with_union(lambda: (cb: Any$h) => void): void;
2968
+ with_union(lambda: (cb: Any$j) => void): void;
2969
2969
  addedToSpace(): void;
2970
2970
  removedFromSpace(): void;
2971
2971
  invalidate_precedence(): 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;
2972
+ cbtype_change1(cb: Any$j, included: boolean, added: boolean): void;
2973
+ cbtype_change2(cb: Any$j, included: boolean, added: boolean): void;
2974
+ cbtype_change(options: Any$j, cb: Any$j, included: boolean, added: boolean): void;
2975
2975
  swapEvent(newev: number): void;
2976
2976
  private _allocCbSetNode;
2977
2977
  private _allocCbTypeNode;
@@ -2983,17 +2983,17 @@ declare class ZPP_InteractionListener extends ZPP_Listener {
2983
2983
  * Fully modernized from nape-compiled.js lines 659–1091.
2984
2984
  */
2985
2985
 
2986
- type Any$g = any;
2986
+ type Any$i = any;
2987
2987
  declare class InteractionListener extends Listener {
2988
2988
  static __name__: string[];
2989
2989
  zpp_inner_zn: ZPP_InteractionListener;
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);
2990
+ constructor(event: CbEvent, interactionType: InteractionType, options1: Any$i, options2: Any$i, handler: (cb: Any$i) => void, precedence?: number);
2991
+ get options1(): Any$i;
2992
+ set options1(options1: Any$i);
2993
+ get options2(): Any$i;
2994
+ set options2(options2: Any$i);
2995
+ get handler(): (cb: Any$i) => void;
2996
+ set handler(handler: (cb: Any$i) => void);
2997
2997
  get interactionType(): InteractionType | null;
2998
2998
  set interactionType(interactionType: InteractionType | null);
2999
2999
  get allowSleepingCallbacks(): boolean;
@@ -3009,18 +3009,18 @@ declare class InteractionListener extends Listener {
3009
3009
  * Converted from nape-compiled.js lines 27498–27694.
3010
3010
  */
3011
3011
 
3012
- type Any$f = any;
3012
+ type Any$h = any;
3013
3013
  declare class ZPP_ConstraintListener extends ZPP_Listener {
3014
3014
  static __name__: string[];
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);
3015
+ handler: Any$h;
3016
+ options: Any$h;
3017
+ outer_zn: Any$h;
3018
+ __class__: Any$h;
3019
+ constructor(options: Any$h, event: number, handler: Any$h);
3020
3020
  immutable_options(): void;
3021
3021
  addedToSpace(): void;
3022
3022
  removedFromSpace(): void;
3023
- cbtype_change(cb: Any$f, included: boolean, added: boolean): void;
3023
+ cbtype_change(cb: Any$h, included: boolean, added: boolean): void;
3024
3024
  invalidate_precedence(): void;
3025
3025
  swapEvent(newev: number): void;
3026
3026
  }
@@ -3031,15 +3031,15 @@ declare class ZPP_ConstraintListener extends ZPP_Listener {
3031
3031
  * Fully modernized from nape-compiled.js lines 546–649.
3032
3032
  */
3033
3033
 
3034
- type Any$e = any;
3034
+ type Any$g = any;
3035
3035
  declare class ConstraintListener extends Listener {
3036
3036
  static __name__: string[];
3037
3037
  zpp_inner_zn: ZPP_ConstraintListener;
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);
3038
+ constructor(event: CbEvent, options: Any$g, handler: (cb: Any$g) => void, precedence?: number);
3039
+ get options(): Any$g;
3040
+ set options(options: Any$g);
3041
+ get handler(): (cb: Any$g) => void;
3042
+ set handler(handler: (cb: Any$g) => void);
3043
3043
  }
3044
3044
 
3045
3045
  /**
@@ -3050,17 +3050,17 @@ declare class ConstraintListener extends Listener {
3050
3050
  * Fully modernized from nape-compiled.js lines 1142–1338.
3051
3051
  */
3052
3052
 
3053
- type Any$d = any;
3053
+ type Any$f = any;
3054
3054
  declare class PreListener extends Listener {
3055
3055
  static __name__: string[];
3056
3056
  zpp_inner_zn: ZPP_InteractionListener;
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);
3057
+ constructor(interactionType: InteractionType, options1: Any$f, options2: Any$f, handler: (cb: Any$f) => Any$f, precedence?: number, pure?: boolean);
3058
+ get options1(): Any$f;
3059
+ set options1(options1: Any$f);
3060
+ get options2(): Any$f;
3061
+ set options2(options2: Any$f);
3062
+ get handler(): (cb: Any$f) => Any$f;
3063
+ set handler(handler: (cb: Any$f) => Any$f);
3064
3064
  get pure(): boolean;
3065
3065
  set pure(pure: boolean);
3066
3066
  get interactionType(): InteractionType | null;
@@ -3075,35 +3075,35 @@ declare class PreListener extends Listener {
3075
3075
  *
3076
3076
  * Converted from nape-compiled.js lines 44587–44794, 133299–133300.
3077
3077
  */
3078
- type Any$c = any;
3078
+ type Any$e = any;
3079
3079
  declare class ZPP_Callback {
3080
3080
  static __name__: string[];
3081
- static _nape: Any$c;
3082
- static _zpp: Any$c;
3081
+ static _nape: Any$e;
3082
+ static _zpp: Any$e;
3083
3083
  static internal: boolean;
3084
3084
  static zpp_pool: ZPP_Callback | null;
3085
- outer_body: Any$c;
3086
- outer_con: Any$c;
3087
- outer_int: Any$c;
3085
+ outer_body: Any$e;
3086
+ outer_con: Any$e;
3087
+ outer_int: Any$e;
3088
3088
  event: number;
3089
- listener: Any$c;
3090
- space: Any$c;
3089
+ listener: Any$e;
3090
+ space: Any$e;
3091
3091
  index: number;
3092
3092
  next: ZPP_Callback | null;
3093
3093
  prev: ZPP_Callback | null;
3094
3094
  length: number;
3095
- int1: Any$c;
3096
- int2: Any$c;
3097
- set: Any$c;
3098
- wrap_arbiters: Any$c;
3099
- pre_arbiter: Any$c;
3095
+ int1: Any$e;
3096
+ int2: Any$e;
3097
+ set: Any$e;
3098
+ wrap_arbiters: Any$e;
3099
+ pre_arbiter: Any$e;
3100
3100
  pre_swapped: boolean;
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;
3101
+ body: Any$e;
3102
+ constraint: Any$e;
3103
+ __class__: Any$e;
3104
+ wrapper_body(): Any$e;
3105
+ wrapper_con(): Any$e;
3106
+ wrapper_int(): Any$e;
3107
3107
  push(obj: ZPP_Callback): void;
3108
3108
  push_rev(obj: ZPP_Callback): void;
3109
3109
  pop(): ZPP_Callback;
@@ -3122,7 +3122,7 @@ declare class ZPP_Callback {
3122
3122
  genarbs(): void;
3123
3123
  }
3124
3124
 
3125
- type Any$b = any;
3125
+ type Any$d = any;
3126
3126
  /**
3127
3127
  * Base class for all physics engine callbacks.
3128
3128
  *
@@ -3135,12 +3135,12 @@ declare class Callback {
3135
3135
  static __name__: string[];
3136
3136
  zpp_inner: ZPP_Callback | null;
3137
3137
  constructor();
3138
- get event(): Any$b;
3139
- get listener(): Any$b;
3138
+ get event(): Any$d;
3139
+ get listener(): Any$d;
3140
3140
  toString(): string;
3141
3141
  }
3142
3142
 
3143
- type Any$a = any;
3143
+ type Any$c = any;
3144
3144
  /**
3145
3145
  * Callback for body events (WAKE/SLEEP).
3146
3146
  *
@@ -3150,11 +3150,11 @@ type Any$a = any;
3150
3150
  */
3151
3151
  declare class BodyCallback extends Callback {
3152
3152
  static __name__: string[];
3153
- get body(): Any$a;
3153
+ get body(): Any$c;
3154
3154
  toString(): string;
3155
3155
  }
3156
3156
 
3157
- type Any$9 = any;
3157
+ type Any$b = any;
3158
3158
  /**
3159
3159
  * Callback for constraint events (WAKE/SLEEP/BREAK).
3160
3160
  *
@@ -3164,11 +3164,11 @@ type Any$9 = any;
3164
3164
  */
3165
3165
  declare class ConstraintCallback extends Callback {
3166
3166
  static __name__: string[];
3167
- get constraint(): Any$9;
3167
+ get constraint(): Any$b;
3168
3168
  toString(): string;
3169
3169
  }
3170
3170
 
3171
- type Any$8 = any;
3171
+ type Any$a = any;
3172
3172
  /**
3173
3173
  * Callback for interaction events (BEGIN/END/ONGOING).
3174
3174
  *
@@ -3178,13 +3178,13 @@ type Any$8 = any;
3178
3178
  */
3179
3179
  declare class InteractionCallback extends Callback {
3180
3180
  static __name__: string[];
3181
- get int1(): Any$8;
3182
- get int2(): Any$8;
3183
- get arbiters(): Any$8;
3181
+ get int1(): Any$a;
3182
+ get int2(): Any$a;
3183
+ get arbiters(): Any$a;
3184
3184
  toString(): string;
3185
3185
  }
3186
3186
 
3187
- type Any$7 = any;
3187
+ type Any$9 = any;
3188
3188
  /**
3189
3189
  * Callback for pre-interaction events.
3190
3190
  *
@@ -3194,21 +3194,21 @@ type Any$7 = any;
3194
3194
  */
3195
3195
  declare class PreCallback extends Callback {
3196
3196
  static __name__: string[];
3197
- get arbiter(): Any$7;
3198
- get int1(): Any$7;
3199
- get int2(): Any$7;
3197
+ get arbiter(): Any$9;
3198
+ get int1(): Any$9;
3199
+ get int2(): Any$9;
3200
3200
  get swapped(): boolean;
3201
3201
  toString(): string;
3202
3202
  }
3203
3203
 
3204
- type Any$6 = any;
3204
+ type Any$8 = any;
3205
3205
  /**
3206
3206
  * A pivot (pin) joint that constrains two bodies to share an anchor point.
3207
3207
  */
3208
3208
  declare class PivotJoint extends Constraint {
3209
3209
  constructor(body1: Body | null, body2: Body | null, anchor1: Vec2, anchor2: Vec2);
3210
3210
  /** @internal */
3211
- static _wrap(inner: Any$6): PivotJoint;
3211
+ static _wrap(inner: Any$8): PivotJoint;
3212
3212
  get body1(): Body;
3213
3213
  set body1(value: Body | null);
3214
3214
  get body2(): Body;
@@ -3219,14 +3219,14 @@ declare class PivotJoint extends Constraint {
3219
3219
  set anchor2(value: Vec2);
3220
3220
  }
3221
3221
 
3222
- type Any$5 = any;
3222
+ type Any$7 = any;
3223
3223
  /**
3224
3224
  * Constrains the distance between two anchor points on two bodies.
3225
3225
  */
3226
3226
  declare class DistanceJoint extends Constraint {
3227
3227
  constructor(body1: Body | null, body2: Body | null, anchor1: Vec2, anchor2: Vec2, jointMin: number, jointMax: number);
3228
3228
  /** @internal */
3229
- static _wrap(inner: Any$5): DistanceJoint;
3229
+ static _wrap(inner: Any$7): DistanceJoint;
3230
3230
  get body1(): Body;
3231
3231
  set body1(value: Body | null);
3232
3232
  get body2(): Body;
@@ -3241,27 +3241,98 @@ declare class DistanceJoint extends Constraint {
3241
3241
  set jointMax(value: number);
3242
3242
  }
3243
3243
 
3244
- type Any$4 = any;
3244
+ /**
3245
+ * ZPP_AngleJoint — Internal class for angle joint constraints.
3246
+ *
3247
+ * Constrains the relative angle between two bodies within min/max bounds.
3248
+ * Contains the complete solver logic (preStep, warmStart, impulse application).
3249
+ *
3250
+ * Converted from nape-compiled.js lines 21441–21912.
3251
+ */
3252
+
3253
+ type Any$6 = any;
3254
+ declare class ZPP_AngleJoint extends ZPP_Constraint {
3255
+ static __name__: string[];
3256
+ static _wrapFn: ((zpp: ZPP_AngleJoint) => Any$6) | null;
3257
+ outer_zn: Any$6;
3258
+ ratio: number;
3259
+ jointMin: number;
3260
+ jointMax: number;
3261
+ slack: boolean;
3262
+ equal: boolean;
3263
+ scale: number;
3264
+ b1: Any$6;
3265
+ b2: Any$6;
3266
+ kMass: number;
3267
+ jAcc: number;
3268
+ jMax: number;
3269
+ gamma: number;
3270
+ bias: number;
3271
+ stepped: boolean;
3272
+ __class__: Any$6;
3273
+ constructor();
3274
+ is_slack(): boolean;
3275
+ bodyImpulse(b: Any$6): Any$6;
3276
+ activeBodies(): void;
3277
+ inactiveBodies(): void;
3278
+ copy(dict?: Any$6, todo?: Any$6): Any$6;
3279
+ validate(): void;
3280
+ wake_connected(): void;
3281
+ forest(): void;
3282
+ pair_exists(id: Any$6, di: Any$6): boolean;
3283
+ clearcache(): void;
3284
+ preStep(dt: number): boolean;
3285
+ warmStart(): void;
3286
+ applyImpulseVel(): boolean;
3287
+ applyImpulsePos(): boolean;
3288
+ draw(_g: Any$6): void;
3289
+ }
3290
+
3291
+ type Any$5 = any;
3245
3292
  /**
3246
3293
  * Constrains the relative angle between two bodies.
3294
+ *
3295
+ * Fully modernized — uses ZPP_AngleJoint directly (extracted to TypeScript).
3247
3296
  */
3248
3297
  declare class AngleJoint extends Constraint {
3298
+ zpp_inner: ZPP_AngleJoint;
3249
3299
  constructor(body1: Body | null, body2: Body | null, jointMin: number, jointMax: number, ratio?: number);
3250
3300
  /** @internal */
3251
- static _wrap(inner: Any$4): AngleJoint;
3301
+ static _wrap(inner: Any$5): AngleJoint;
3252
3302
  get body1(): Body;
3253
3303
  set body1(value: Body | null);
3304
+ /** @internal */
3305
+ private _setBody1;
3254
3306
  get body2(): Body;
3255
3307
  set body2(value: Body | null);
3308
+ /** @internal */
3309
+ private _setBody2;
3256
3310
  get jointMin(): number;
3257
3311
  set jointMin(value: number);
3258
3312
  get jointMax(): number;
3259
3313
  set jointMax(value: number);
3260
3314
  get ratio(): number;
3261
3315
  set ratio(value: number);
3316
+ isSlack(): boolean;
3317
+ impulse(): Any$5;
3318
+ bodyImpulse(body: Body): Any$5;
3319
+ visitBodies(lambda: (body: Body) => void): void;
3320
+ /** @internal */ get_body1(): Any$5;
3321
+ /** @internal */ set_body1(v: Any$5): Any$5;
3322
+ /** @internal */ get_body2(): Any$5;
3323
+ /** @internal */ set_body2(v: Any$5): Any$5;
3324
+ /** @internal */ get_jointMin(): number;
3325
+ /** @internal */ set_jointMin(v: number): number;
3326
+ /** @internal */ get_jointMax(): number;
3327
+ /** @internal */ set_jointMax(v: number): number;
3328
+ /** @internal */ get_ratio(): number;
3329
+ /** @internal */ set_ratio(v: number): number;
3330
+ /** @internal backward compat alias for zpp_inner */
3331
+ get zpp_inner_zn(): ZPP_AngleJoint;
3332
+ set zpp_inner_zn(v: ZPP_AngleJoint);
3262
3333
  }
3263
3334
 
3264
- type Any$3 = any;
3335
+ type Any$4 = any;
3265
3336
  /**
3266
3337
  * Weld joint — constrains two bodies to maintain a fixed relative
3267
3338
  * position and angle (like gluing them together).
@@ -3269,7 +3340,7 @@ type Any$3 = any;
3269
3340
  declare class WeldJoint extends Constraint {
3270
3341
  constructor(body1: Body | null, body2: Body | null, anchor1: Vec2, anchor2: Vec2, phase?: number);
3271
3342
  /** @internal */
3272
- static _wrap(inner: Any$3): WeldJoint;
3343
+ static _wrap(inner: Any$4): WeldJoint;
3273
3344
  get body1(): Body;
3274
3345
  set body1(value: Body | null);
3275
3346
  get body2(): Body;
@@ -3282,22 +3353,82 @@ declare class WeldJoint extends Constraint {
3282
3353
  set phase(value: number);
3283
3354
  }
3284
3355
 
3356
+ /**
3357
+ * ZPP_MotorJoint — Internal class for motor joint constraints.
3358
+ *
3359
+ * Applies angular velocity to rotate bodies relative to each other.
3360
+ * Velocity-only constraint (no position correction).
3361
+ *
3362
+ * Converted from nape-compiled.js lines 23892–24197.
3363
+ */
3364
+
3365
+ type Any$3 = any;
3366
+ declare class ZPP_MotorJoint extends ZPP_Constraint {
3367
+ static __name__: string[];
3368
+ static _wrapFn: ((zpp: ZPP_MotorJoint) => Any$3) | null;
3369
+ outer_zn: Any$3;
3370
+ ratio: number;
3371
+ rate: number;
3372
+ b1: Any$3;
3373
+ b2: Any$3;
3374
+ kMass: number;
3375
+ jAcc: number;
3376
+ jMax: number;
3377
+ stepped: boolean;
3378
+ __class__: Any$3;
3379
+ constructor();
3380
+ bodyImpulse(b: Any$3): Any$3;
3381
+ activeBodies(): void;
3382
+ inactiveBodies(): void;
3383
+ copy(dict?: Any$3, todo?: Any$3): Any$3;
3384
+ validate(): void;
3385
+ wake_connected(): void;
3386
+ forest(): void;
3387
+ pair_exists(id: Any$3, di: Any$3): boolean;
3388
+ clearcache(): void;
3389
+ preStep(dt: number): boolean;
3390
+ warmStart(): void;
3391
+ applyImpulseVel(): boolean;
3392
+ applyImpulsePos(): boolean;
3393
+ }
3394
+
3285
3395
  type Any$2 = any;
3286
3396
  /**
3287
3397
  * Motor joint — applies angular velocity to rotate bodies relative to each other.
3398
+ *
3399
+ * Fully modernized — uses ZPP_MotorJoint directly (extracted to TypeScript).
3288
3400
  */
3289
3401
  declare class MotorJoint extends Constraint {
3290
- constructor(body1: Body | null, body2: Body | null, rate: number, ratio?: number);
3402
+ zpp_inner: ZPP_MotorJoint;
3403
+ constructor(body1: Body | null, body2: Body | null, rate?: number, ratio?: number);
3291
3404
  /** @internal */
3292
3405
  static _wrap(inner: Any$2): MotorJoint;
3293
3406
  get body1(): Body;
3294
3407
  set body1(value: Body | null);
3408
+ /** @internal */
3409
+ private _setBody1;
3295
3410
  get body2(): Body;
3296
3411
  set body2(value: Body | null);
3412
+ /** @internal */
3413
+ private _setBody2;
3297
3414
  get rate(): number;
3298
3415
  set rate(value: number);
3299
3416
  get ratio(): number;
3300
3417
  set ratio(value: number);
3418
+ impulse(): Any$2;
3419
+ bodyImpulse(body: Body): Any$2;
3420
+ visitBodies(lambda: (body: Body) => void): void;
3421
+ /** @internal */ get_body1(): Any$2;
3422
+ /** @internal */ set_body1(v: Any$2): Any$2;
3423
+ /** @internal */ get_body2(): Any$2;
3424
+ /** @internal */ set_body2(v: Any$2): Any$2;
3425
+ /** @internal */ get_rate(): number;
3426
+ /** @internal */ set_rate(v: number): number;
3427
+ /** @internal */ get_ratio(): number;
3428
+ /** @internal */ set_ratio(v: number): number;
3429
+ /** @internal backward compat alias for zpp_inner */
3430
+ get zpp_inner_zn(): ZPP_MotorJoint;
3431
+ set zpp_inner_zn(v: ZPP_MotorJoint);
3301
3432
  }
3302
3433
 
3303
3434
  type Any$1 = any;