@newkrok/nape-js 3.4.6 → 3.4.7
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/README.md +4 -0
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +508 -503
- package/dist/index.d.ts +508 -503
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,3 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ZNPList<T> — Generic singly-linked list backed by ZNPNode<T>.
|
|
3
|
+
*
|
|
4
|
+
* Replaces 35 identical ZNPList_* classes previously generated by
|
|
5
|
+
* createZNPList() factory in nape-compiled.js.
|
|
6
|
+
*
|
|
7
|
+
* Each concrete subclass must set a static `_NodeClass` property pointing
|
|
8
|
+
* to the corresponding ZNPNode subclass for pool allocation.
|
|
9
|
+
*/
|
|
10
|
+
|
|
11
|
+
declare module "./ZNPList" {
|
|
12
|
+
interface ZNPList<T> {
|
|
13
|
+
inlined_add: ZNPList<T>["add"];
|
|
14
|
+
inlined_insert: ZNPList<T>["insert"];
|
|
15
|
+
inlined_pop: ZNPList<T>["pop"];
|
|
16
|
+
inlined_pop_unsafe: ZNPList<T>["pop_unsafe"];
|
|
17
|
+
inlined_erase: ZNPList<T>["erase"];
|
|
18
|
+
inlined_remove: ZNPList<T>["remove"];
|
|
19
|
+
inlined_try_remove: ZNPList<T>["try_remove"];
|
|
20
|
+
inlined_clear: ZNPList<T>["clear"];
|
|
21
|
+
inlined_has: ZNPList<T>["has"];
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
|
|
1
25
|
/**
|
|
2
26
|
* ZPP_IContact — Internal impulse/mass-matrix data for a contact point.
|
|
3
27
|
*
|
|
@@ -7,7 +31,6 @@
|
|
|
7
31
|
*
|
|
8
32
|
* Converted from nape-compiled.js lines 32346–32733.
|
|
9
33
|
*/
|
|
10
|
-
type Any$z = any;
|
|
11
34
|
declare class ZPP_IContact {
|
|
12
35
|
static __name__: string[];
|
|
13
36
|
length: number;
|
|
@@ -29,7 +52,6 @@ declare class ZPP_IContact {
|
|
|
29
52
|
lr1y: number;
|
|
30
53
|
lr2x: number;
|
|
31
54
|
lr2y: number;
|
|
32
|
-
__class__: Any$z;
|
|
33
55
|
elem(): this;
|
|
34
56
|
begin(): ZPP_IContact | null;
|
|
35
57
|
setbegin(i: ZPP_IContact | null): void;
|
|
@@ -73,19 +95,18 @@ declare class ZPP_IContact {
|
|
|
73
95
|
* Converted from nape-compiled.js lines 31853–32345, 81644–81645.
|
|
74
96
|
*/
|
|
75
97
|
|
|
76
|
-
type Any$y = any;
|
|
77
98
|
declare class ZPP_Contact {
|
|
78
99
|
static __name__: string[];
|
|
79
|
-
static _nape:
|
|
80
|
-
static _zpp:
|
|
100
|
+
static _nape: any;
|
|
101
|
+
static _zpp: any;
|
|
81
102
|
static zpp_pool: ZPP_Contact | null;
|
|
82
103
|
static internal: boolean;
|
|
83
|
-
static _wrapFn: ((zpp: ZPP_Contact) =>
|
|
84
|
-
outer:
|
|
104
|
+
static _wrapFn: ((zpp: ZPP_Contact) => any) | null;
|
|
105
|
+
outer: any;
|
|
85
106
|
px: number;
|
|
86
107
|
py: number;
|
|
87
|
-
wrap_position:
|
|
88
|
-
arbiter:
|
|
108
|
+
wrap_position: any;
|
|
109
|
+
arbiter: any;
|
|
89
110
|
inner: ZPP_IContact;
|
|
90
111
|
active: boolean;
|
|
91
112
|
posOnly: boolean;
|
|
@@ -99,9 +120,8 @@ declare class ZPP_Contact {
|
|
|
99
120
|
modified: boolean;
|
|
100
121
|
_inuse: boolean;
|
|
101
122
|
next: ZPP_Contact | null;
|
|
102
|
-
__class__: Any$y;
|
|
103
123
|
constructor();
|
|
104
|
-
wrapper():
|
|
124
|
+
wrapper(): any;
|
|
105
125
|
position_validate(): void;
|
|
106
126
|
getposition(): void;
|
|
107
127
|
inactiveme(): boolean;
|
|
@@ -147,39 +167,39 @@ declare class ZPP_Contact {
|
|
|
147
167
|
*
|
|
148
168
|
* Converted from nape-compiled.js lines 44587–44794, 133299–133300.
|
|
149
169
|
*/
|
|
150
|
-
type Any$
|
|
170
|
+
type Any$m = any;
|
|
151
171
|
declare class ZPP_Callback {
|
|
152
172
|
static __name__: string[];
|
|
153
|
-
static _nape: Any$
|
|
154
|
-
static _zpp: Any$
|
|
173
|
+
static _nape: Any$m;
|
|
174
|
+
static _zpp: Any$m;
|
|
155
175
|
static internal: boolean;
|
|
156
176
|
static zpp_pool: ZPP_Callback | null;
|
|
157
177
|
static _createBodyCb: (() => any) | null;
|
|
158
178
|
static _createConCb: (() => any) | null;
|
|
159
179
|
static _createIntCb: (() => any) | null;
|
|
160
180
|
static _createPreCb: (() => any) | null;
|
|
161
|
-
outer_body: Any$
|
|
162
|
-
outer_con: Any$
|
|
163
|
-
outer_int: Any$
|
|
181
|
+
outer_body: Any$m;
|
|
182
|
+
outer_con: Any$m;
|
|
183
|
+
outer_int: Any$m;
|
|
164
184
|
event: number;
|
|
165
|
-
listener: Any$
|
|
166
|
-
space: Any$
|
|
185
|
+
listener: Any$m;
|
|
186
|
+
space: Any$m;
|
|
167
187
|
index: number;
|
|
168
188
|
next: ZPP_Callback | null;
|
|
169
189
|
prev: ZPP_Callback | null;
|
|
170
190
|
length: number;
|
|
171
|
-
int1: Any$
|
|
172
|
-
int2: Any$
|
|
173
|
-
set: Any$
|
|
174
|
-
wrap_arbiters: Any$
|
|
175
|
-
pre_arbiter: Any$
|
|
191
|
+
int1: Any$m;
|
|
192
|
+
int2: Any$m;
|
|
193
|
+
set: Any$m;
|
|
194
|
+
wrap_arbiters: Any$m;
|
|
195
|
+
pre_arbiter: Any$m;
|
|
176
196
|
pre_swapped: boolean;
|
|
177
|
-
body: Any$
|
|
178
|
-
constraint: Any$
|
|
179
|
-
__class__: Any$
|
|
180
|
-
wrapper_body(): Any$
|
|
181
|
-
wrapper_con(): Any$
|
|
182
|
-
wrapper_int(): Any$
|
|
197
|
+
body: Any$m;
|
|
198
|
+
constraint: Any$m;
|
|
199
|
+
__class__: Any$m;
|
|
200
|
+
wrapper_body(): Any$m;
|
|
201
|
+
wrapper_con(): Any$m;
|
|
202
|
+
wrapper_int(): Any$m;
|
|
183
203
|
push(obj: ZPP_Callback): void;
|
|
184
204
|
push_rev(obj: ZPP_Callback): void;
|
|
185
205
|
pop(): ZPP_Callback;
|
|
@@ -240,24 +260,24 @@ declare class CbEvent {
|
|
|
240
260
|
*
|
|
241
261
|
* Converted from nape-compiled.js lines 27259–27304, 112053–112139.
|
|
242
262
|
*/
|
|
243
|
-
type Any$
|
|
263
|
+
type Any$l = any;
|
|
244
264
|
declare class ZPP_Listener {
|
|
245
265
|
static __name__: string[];
|
|
246
|
-
static _nape: Any$
|
|
247
|
-
static _zpp: Any$
|
|
266
|
+
static _nape: Any$l;
|
|
267
|
+
static _zpp: Any$l;
|
|
248
268
|
static internal: boolean;
|
|
249
|
-
static types: Any$
|
|
250
|
-
static events: Any$
|
|
251
|
-
space: Any$
|
|
252
|
-
interaction: Any$
|
|
253
|
-
constraint: Any$
|
|
254
|
-
body: Any$
|
|
269
|
+
static types: Any$l[];
|
|
270
|
+
static events: Any$l[];
|
|
271
|
+
space: Any$l;
|
|
272
|
+
interaction: Any$l;
|
|
273
|
+
constraint: Any$l;
|
|
274
|
+
body: Any$l;
|
|
255
275
|
precedence: number;
|
|
256
276
|
event: number;
|
|
257
277
|
type: number;
|
|
258
278
|
id: number;
|
|
259
|
-
outer: Any$
|
|
260
|
-
__class__: Any$
|
|
279
|
+
outer: Any$l;
|
|
280
|
+
__class__: Any$l;
|
|
261
281
|
constructor();
|
|
262
282
|
/** Sort comparator: higher precedence first, then by id descending. */
|
|
263
283
|
static setlt(a: ZPP_Listener, b: ZPP_Listener): boolean;
|
|
@@ -269,7 +289,7 @@ declare class ZPP_Listener {
|
|
|
269
289
|
* Initialize singleton enum arrays. Called once from compiled factory after
|
|
270
290
|
* nape.callbacks.ListenerType and nape.callbacks.CbEvent stubs exist.
|
|
271
291
|
*/
|
|
272
|
-
static _initEnums(nape: Any$
|
|
292
|
+
static _initEnums(nape: Any$l, ZPP_Flags: Any$l): void;
|
|
273
293
|
}
|
|
274
294
|
|
|
275
295
|
/**
|
|
@@ -306,13 +326,13 @@ declare class ListenerType {
|
|
|
306
326
|
*
|
|
307
327
|
* Converted from nape-compiled.js lines 83820–84273, 134996.
|
|
308
328
|
*/
|
|
309
|
-
|
|
329
|
+
|
|
310
330
|
declare class ZPP_Vec2 {
|
|
311
331
|
static zpp_pool: ZPP_Vec2 | null;
|
|
312
332
|
static __name__: string[];
|
|
313
|
-
static _nape:
|
|
314
|
-
static _zpp:
|
|
315
|
-
static _wrapFn: ((zpp: ZPP_Vec2) =>
|
|
333
|
+
static _nape: any;
|
|
334
|
+
static _zpp: any;
|
|
335
|
+
static _wrapFn: ((zpp: ZPP_Vec2) => Vec2) | null;
|
|
316
336
|
x: number;
|
|
317
337
|
y: number;
|
|
318
338
|
next: ZPP_Vec2 | null;
|
|
@@ -321,18 +341,17 @@ declare class ZPP_Vec2 {
|
|
|
321
341
|
pushmod: boolean;
|
|
322
342
|
_inuse: boolean;
|
|
323
343
|
weak: boolean;
|
|
324
|
-
outer:
|
|
344
|
+
outer: any;
|
|
325
345
|
_immutable: boolean;
|
|
326
346
|
_isimmutable: (() => void) | null;
|
|
327
347
|
_validate: (() => void) | null;
|
|
328
348
|
_invalidate: ((self: ZPP_Vec2) => void) | null;
|
|
329
|
-
__class__: Any$v;
|
|
330
349
|
/** Static factory with optional pooling and immutability. */
|
|
331
350
|
static get(x: number, y: number, immutable?: boolean): ZPP_Vec2;
|
|
332
351
|
validate(): void;
|
|
333
352
|
invalidate(): void;
|
|
334
353
|
immutable(): void;
|
|
335
|
-
wrapper():
|
|
354
|
+
wrapper(): any;
|
|
336
355
|
free(): void;
|
|
337
356
|
alloc(): void;
|
|
338
357
|
elem(): ZPP_Vec2;
|
|
@@ -484,30 +503,28 @@ type NapeInner = any;
|
|
|
484
503
|
*
|
|
485
504
|
* Converted from nape-compiled.js lines 63546–63965, 134951.
|
|
486
505
|
*/
|
|
487
|
-
type Any$u = any;
|
|
488
506
|
declare class ZPP_AABB {
|
|
489
507
|
static zpp_pool: ZPP_AABB | null;
|
|
490
508
|
static __name__: string[];
|
|
491
|
-
static _nape:
|
|
492
|
-
static _zpp:
|
|
493
|
-
static _wrapFn: ((zpp: ZPP_AABB) =>
|
|
509
|
+
static _nape: any;
|
|
510
|
+
static _zpp: any;
|
|
511
|
+
static _wrapFn: ((zpp: ZPP_AABB) => any) | null;
|
|
494
512
|
_invalidate: ((self: ZPP_AABB) => void) | null;
|
|
495
513
|
_validate: (() => void) | null;
|
|
496
514
|
_immutable: boolean;
|
|
497
|
-
outer:
|
|
515
|
+
outer: any;
|
|
498
516
|
next: ZPP_AABB | null;
|
|
499
517
|
minx: number;
|
|
500
518
|
miny: number;
|
|
501
519
|
maxx: number;
|
|
502
520
|
maxy: number;
|
|
503
|
-
wrap_min:
|
|
504
|
-
wrap_max:
|
|
505
|
-
__class__: Any$u;
|
|
521
|
+
wrap_min: any;
|
|
522
|
+
wrap_max: any;
|
|
506
523
|
/** Static factory with pooling. */
|
|
507
524
|
static get(minx: number, miny: number, maxx: number, maxy: number): ZPP_AABB;
|
|
508
525
|
validate(): void;
|
|
509
526
|
invalidate(): void;
|
|
510
|
-
wrapper():
|
|
527
|
+
wrapper(): any;
|
|
511
528
|
alloc(): void;
|
|
512
529
|
free(): void;
|
|
513
530
|
copy(): ZPP_AABB;
|
|
@@ -518,10 +535,16 @@ declare class ZPP_AABB {
|
|
|
518
535
|
private static _makeVec2Wrapper;
|
|
519
536
|
getmin(): void;
|
|
520
537
|
dom_min(): void;
|
|
521
|
-
mod_min(min:
|
|
538
|
+
mod_min(min: {
|
|
539
|
+
x: number;
|
|
540
|
+
y: number;
|
|
541
|
+
}): void;
|
|
522
542
|
getmax(): void;
|
|
523
543
|
dom_max(): void;
|
|
524
|
-
mod_max(max:
|
|
544
|
+
mod_max(max: {
|
|
545
|
+
x: number;
|
|
546
|
+
y: number;
|
|
547
|
+
}): void;
|
|
525
548
|
intersectX(x: ZPP_AABB): boolean;
|
|
526
549
|
intersectY(x: ZPP_AABB): boolean;
|
|
527
550
|
intersect(x: ZPP_AABB): boolean;
|
|
@@ -586,20 +609,18 @@ declare class AABB {
|
|
|
586
609
|
*
|
|
587
610
|
* Converted from nape-compiled.js lines 83412–83434.
|
|
588
611
|
*/
|
|
589
|
-
type Any$t = any;
|
|
590
612
|
declare class ZPP_Vec3 {
|
|
591
613
|
static __name__: string[];
|
|
592
|
-
static _zpp:
|
|
593
|
-
static _wrapFn: ((zpp: ZPP_Vec3) =>
|
|
594
|
-
outer:
|
|
614
|
+
static _zpp: object | null;
|
|
615
|
+
static _wrapFn: ((zpp: ZPP_Vec3) => any) | null;
|
|
616
|
+
outer: object | null;
|
|
595
617
|
x: number;
|
|
596
618
|
y: number;
|
|
597
619
|
z: number;
|
|
598
620
|
immutable: boolean;
|
|
599
621
|
_validate: (() => void) | null;
|
|
600
|
-
__class__: Any$t;
|
|
601
622
|
validate(): void;
|
|
602
|
-
wrapper():
|
|
623
|
+
wrapper(): any;
|
|
603
624
|
}
|
|
604
625
|
|
|
605
626
|
/**
|
|
@@ -715,13 +736,11 @@ declare class NapeList<T> implements Iterable<T> {
|
|
|
715
736
|
*
|
|
716
737
|
* Converted from nape-compiled.js lines 69554–69563.
|
|
717
738
|
*/
|
|
718
|
-
type Any$s = any;
|
|
719
739
|
declare class ZPP_GeomPoly {
|
|
720
740
|
static __name__: string[];
|
|
721
|
-
outer:
|
|
722
|
-
vertices:
|
|
723
|
-
|
|
724
|
-
constructor(outer?: Any$s);
|
|
741
|
+
outer: object | null;
|
|
742
|
+
vertices: any;
|
|
743
|
+
constructor(outer?: object | null);
|
|
725
744
|
}
|
|
726
745
|
|
|
727
746
|
/**
|
|
@@ -833,7 +852,7 @@ declare class GeomPoly {
|
|
|
833
852
|
*
|
|
834
853
|
* Converted from nape-compiled.js lines 87523–87601, 135477–135481.
|
|
835
854
|
*/
|
|
836
|
-
type Any$
|
|
855
|
+
type Any$k = any;
|
|
837
856
|
declare class ZPP_Material {
|
|
838
857
|
static zpp_pool: ZPP_Material | null;
|
|
839
858
|
static WAKE: number;
|
|
@@ -846,27 +865,27 @@ declare class ZPP_Material {
|
|
|
846
865
|
* _nape = the `nape` public namespace (for wrapper creation)
|
|
847
866
|
* _zpp = the `zpp_nape` internal namespace (for ZNPList_ZPP_Shape)
|
|
848
867
|
*/
|
|
849
|
-
static _nape: Any$
|
|
850
|
-
static _zpp: Any$
|
|
868
|
+
static _nape: Any$k;
|
|
869
|
+
static _zpp: Any$k;
|
|
851
870
|
/**
|
|
852
871
|
* Wrapper factory callback, registered by the modernized Material class.
|
|
853
872
|
* When set, wrapper() uses this instead of creating a compiled Material.
|
|
854
873
|
*/
|
|
855
|
-
static _wrapFn: ((zpp: ZPP_Material) => Any$
|
|
874
|
+
static _wrapFn: ((zpp: ZPP_Material) => Any$k) | null;
|
|
856
875
|
elasticity: number;
|
|
857
876
|
dynamicFriction: number;
|
|
858
877
|
staticFriction: number;
|
|
859
878
|
density: number;
|
|
860
879
|
rollingFriction: number;
|
|
861
|
-
shapes: Any$
|
|
862
|
-
wrap_shapes: Any$
|
|
863
|
-
outer: Any$
|
|
864
|
-
userData: Any$
|
|
880
|
+
shapes: Any$k;
|
|
881
|
+
wrap_shapes: Any$k;
|
|
882
|
+
outer: Any$k;
|
|
883
|
+
userData: Any$k;
|
|
865
884
|
next: ZPP_Material | null;
|
|
866
|
-
__class__: Any$
|
|
885
|
+
__class__: Any$k;
|
|
867
886
|
constructor();
|
|
868
887
|
/** Create/return the public nape.phys.Material wrapper for this internal object. */
|
|
869
|
-
wrapper(): Any$
|
|
888
|
+
wrapper(): Any$k;
|
|
870
889
|
/** Called when this object is returned to the pool. */
|
|
871
890
|
free(): void;
|
|
872
891
|
/** Called when this object is taken from the pool. */
|
|
@@ -874,9 +893,9 @@ declare class ZPP_Material {
|
|
|
874
893
|
/** Initialize the shapes list (called during feature construction). */
|
|
875
894
|
feature_cons(): void;
|
|
876
895
|
/** Register a shape that uses this material. */
|
|
877
|
-
addShape(shape: Any$
|
|
896
|
+
addShape(shape: Any$k): void;
|
|
878
897
|
/** Unregister a shape that no longer uses this material. */
|
|
879
|
-
remShape(shape: Any$
|
|
898
|
+
remShape(shape: Any$k): void;
|
|
880
899
|
/** Create a copy with the same property values. */
|
|
881
900
|
copy(): ZPP_Material;
|
|
882
901
|
/** Copy all property values from another ZPP_Material. */
|
|
@@ -936,36 +955,36 @@ declare class Material {
|
|
|
936
955
|
*
|
|
937
956
|
* Converted from nape-compiled.js lines 87335–87523, 135403.
|
|
938
957
|
*/
|
|
939
|
-
type Any$
|
|
958
|
+
type Any$j = any;
|
|
940
959
|
declare class ZPP_FluidProperties {
|
|
941
960
|
static zpp_pool: ZPP_FluidProperties | null;
|
|
942
961
|
static __name__: string[];
|
|
943
|
-
static _nape: Any$
|
|
944
|
-
static _zpp: Any$
|
|
945
|
-
static _wrapFn: ((zpp: ZPP_FluidProperties) => Any$
|
|
962
|
+
static _nape: Any$j;
|
|
963
|
+
static _zpp: Any$j;
|
|
964
|
+
static _wrapFn: ((zpp: ZPP_FluidProperties) => Any$j) | null;
|
|
946
965
|
viscosity: number;
|
|
947
966
|
density: number;
|
|
948
967
|
gravityx: number;
|
|
949
968
|
gravityy: number;
|
|
950
|
-
wrap_gravity: Any$
|
|
951
|
-
shapes: Any$
|
|
952
|
-
wrap_shapes: Any$
|
|
953
|
-
outer: Any$
|
|
954
|
-
userData: Any$
|
|
969
|
+
wrap_gravity: Any$j;
|
|
970
|
+
shapes: Any$j;
|
|
971
|
+
wrap_shapes: Any$j;
|
|
972
|
+
outer: Any$j;
|
|
973
|
+
userData: Any$j;
|
|
955
974
|
next: ZPP_FluidProperties | null;
|
|
956
|
-
__class__: Any$
|
|
975
|
+
__class__: Any$j;
|
|
957
976
|
constructor();
|
|
958
977
|
/** Create/return the public nape.phys.FluidProperties wrapper. */
|
|
959
|
-
wrapper(): Any$
|
|
978
|
+
wrapper(): Any$j;
|
|
960
979
|
free(): void;
|
|
961
980
|
alloc(): void;
|
|
962
981
|
feature_cons(): void;
|
|
963
|
-
addShape(shape: Any$
|
|
964
|
-
remShape(shape: Any$
|
|
982
|
+
addShape(shape: Any$j): void;
|
|
983
|
+
remShape(shape: Any$j): void;
|
|
965
984
|
/** Copy with object pooling. */
|
|
966
985
|
copy(): ZPP_FluidProperties;
|
|
967
986
|
/** Called when gravity Vec2 wrapper is invalidated (user set new gravity). */
|
|
968
|
-
gravity_invalidate(x: Any$
|
|
987
|
+
gravity_invalidate(x: Any$j): void;
|
|
969
988
|
/** Sync the gravity Vec2 wrapper with internal values. */
|
|
970
989
|
gravity_validate(): void;
|
|
971
990
|
/** Lazily create and return the gravity Vec2 wrapper. */
|
|
@@ -1016,33 +1035,31 @@ declare class FluidProperties {
|
|
|
1016
1035
|
*
|
|
1017
1036
|
* Converted from nape-compiled.js lines 63255–63366, 135329.
|
|
1018
1037
|
*/
|
|
1019
|
-
type Any$p = any;
|
|
1020
1038
|
declare class ZPP_InteractionFilter {
|
|
1021
1039
|
static zpp_pool: ZPP_InteractionFilter | null;
|
|
1022
1040
|
static __name__: string[];
|
|
1023
|
-
static _nape:
|
|
1024
|
-
static _zpp:
|
|
1025
|
-
static _wrapFn: ((zpp: ZPP_InteractionFilter) =>
|
|
1041
|
+
static _nape: any;
|
|
1042
|
+
static _zpp: any;
|
|
1043
|
+
static _wrapFn: ((zpp: ZPP_InteractionFilter) => any) | null;
|
|
1026
1044
|
collisionGroup: number;
|
|
1027
1045
|
collisionMask: number;
|
|
1028
1046
|
sensorGroup: number;
|
|
1029
1047
|
sensorMask: number;
|
|
1030
1048
|
fluidGroup: number;
|
|
1031
1049
|
fluidMask: number;
|
|
1032
|
-
shapes:
|
|
1033
|
-
wrap_shapes:
|
|
1034
|
-
outer:
|
|
1035
|
-
userData:
|
|
1050
|
+
shapes: any;
|
|
1051
|
+
wrap_shapes: any;
|
|
1052
|
+
outer: any;
|
|
1053
|
+
userData: any;
|
|
1036
1054
|
next: ZPP_InteractionFilter | null;
|
|
1037
|
-
__class__: Any$p;
|
|
1038
1055
|
constructor();
|
|
1039
1056
|
/** Create/return the public nape.dynamics.InteractionFilter wrapper. */
|
|
1040
|
-
wrapper():
|
|
1057
|
+
wrapper(): any;
|
|
1041
1058
|
free(): void;
|
|
1042
1059
|
alloc(): void;
|
|
1043
1060
|
feature_cons(): void;
|
|
1044
|
-
addShape(shape:
|
|
1045
|
-
remShape(shape:
|
|
1061
|
+
addShape(shape: any): void;
|
|
1062
|
+
remShape(shape: any): void;
|
|
1046
1063
|
/** Create a copy with object pooling. */
|
|
1047
1064
|
copy(): ZPP_InteractionFilter;
|
|
1048
1065
|
/** Test whether two filters allow collision between their shapes. */
|
|
@@ -1106,22 +1123,20 @@ declare class InteractionFilter {
|
|
|
1106
1123
|
*
|
|
1107
1124
|
* Converted from nape-compiled.js lines 63367–63463, 135330–135331.
|
|
1108
1125
|
*/
|
|
1109
|
-
type Any$o = any;
|
|
1110
1126
|
declare class ZPP_InteractionGroup {
|
|
1111
1127
|
static SHAPE: number;
|
|
1112
1128
|
static BODY: number;
|
|
1113
1129
|
static __name__: string[];
|
|
1114
|
-
static _zpp:
|
|
1115
|
-
static _wrapFn: ((zpp: ZPP_InteractionGroup) =>
|
|
1116
|
-
outer:
|
|
1130
|
+
static _zpp: any;
|
|
1131
|
+
static _wrapFn: ((zpp: ZPP_InteractionGroup) => any) | null;
|
|
1132
|
+
outer: any;
|
|
1117
1133
|
ignore: boolean;
|
|
1118
1134
|
group: ZPP_InteractionGroup | null;
|
|
1119
|
-
groups:
|
|
1120
|
-
wrap_groups:
|
|
1121
|
-
interactors:
|
|
1122
|
-
wrap_interactors:
|
|
1135
|
+
groups: any;
|
|
1136
|
+
wrap_groups: any;
|
|
1137
|
+
interactors: any;
|
|
1138
|
+
wrap_interactors: any;
|
|
1123
1139
|
depth: number;
|
|
1124
|
-
__class__: Any$o;
|
|
1125
1140
|
constructor();
|
|
1126
1141
|
/** Set or change the parent group. */
|
|
1127
1142
|
setGroup(group: ZPP_InteractionGroup | null): void;
|
|
@@ -1132,9 +1147,9 @@ declare class ZPP_InteractionGroup {
|
|
|
1132
1147
|
/** Remove a child group. */
|
|
1133
1148
|
remGroup(group: ZPP_InteractionGroup): void;
|
|
1134
1149
|
/** Register an interactor in this group. */
|
|
1135
|
-
addInteractor(intx:
|
|
1150
|
+
addInteractor(intx: any): void;
|
|
1136
1151
|
/** Unregister an interactor from this group. */
|
|
1137
|
-
remInteractor(intx:
|
|
1152
|
+
remInteractor(intx: any, flag?: number): void;
|
|
1138
1153
|
}
|
|
1139
1154
|
|
|
1140
1155
|
/**
|
|
@@ -1356,46 +1371,46 @@ declare class BodyType {
|
|
|
1356
1371
|
* Converted from nape-compiled.js lines 52431–54547.
|
|
1357
1372
|
*/
|
|
1358
1373
|
|
|
1359
|
-
type Any$
|
|
1374
|
+
type Any$i = any;
|
|
1360
1375
|
declare class ZPP_Body {
|
|
1361
1376
|
static __name__: string[];
|
|
1362
|
-
static __super__: Any$
|
|
1377
|
+
static __super__: Any$i;
|
|
1363
1378
|
/**
|
|
1364
1379
|
* Namespace references, set by the compiled module after import.
|
|
1365
1380
|
* _nape = the `nape` public namespace
|
|
1366
1381
|
* _zpp = the `zpp_nape` internal namespace
|
|
1367
1382
|
*/
|
|
1368
|
-
static _nape: Any$
|
|
1369
|
-
static _zpp: Any$
|
|
1370
|
-
static types: Any$
|
|
1371
|
-
static bodystack: Any$
|
|
1372
|
-
static bodyset: Any$
|
|
1383
|
+
static _nape: Any$i;
|
|
1384
|
+
static _zpp: Any$i;
|
|
1385
|
+
static types: Any$i[];
|
|
1386
|
+
static bodystack: Any$i;
|
|
1387
|
+
static bodyset: Any$i;
|
|
1373
1388
|
static cur_graph_depth: number;
|
|
1374
|
-
static bodysetlt(a: Any$
|
|
1375
|
-
static __static(): Any$
|
|
1376
|
-
outer_i: Any$
|
|
1389
|
+
static bodysetlt(a: Any$i, b: Any$i): boolean;
|
|
1390
|
+
static __static(): Any$i;
|
|
1391
|
+
outer_i: Any$i;
|
|
1377
1392
|
id: number;
|
|
1378
|
-
userData: Any$
|
|
1379
|
-
ishape: Any$
|
|
1380
|
-
ibody: Any$
|
|
1381
|
-
icompound: Any$
|
|
1382
|
-
wrap_cbTypes: Any$
|
|
1383
|
-
cbSet: Any$
|
|
1384
|
-
cbTypes: Any$
|
|
1385
|
-
group: Any$
|
|
1386
|
-
cbsets: Any$
|
|
1387
|
-
outer: Any$
|
|
1393
|
+
userData: Any$i;
|
|
1394
|
+
ishape: Any$i;
|
|
1395
|
+
ibody: Any$i;
|
|
1396
|
+
icompound: Any$i;
|
|
1397
|
+
wrap_cbTypes: Any$i;
|
|
1398
|
+
cbSet: Any$i;
|
|
1399
|
+
cbTypes: Any$i;
|
|
1400
|
+
group: Any$i;
|
|
1401
|
+
cbsets: Any$i;
|
|
1402
|
+
outer: Any$i;
|
|
1388
1403
|
world: boolean;
|
|
1389
1404
|
type: number;
|
|
1390
|
-
compound: Any$
|
|
1391
|
-
shapes: Any$
|
|
1392
|
-
wrap_shapes: Any$
|
|
1393
|
-
space: Any$
|
|
1394
|
-
arbiters: Any$
|
|
1395
|
-
wrap_arbiters: Any$
|
|
1396
|
-
constraints: Any$
|
|
1397
|
-
wrap_constraints: Any$
|
|
1398
|
-
component: Any$
|
|
1405
|
+
compound: Any$i;
|
|
1406
|
+
shapes: Any$i;
|
|
1407
|
+
wrap_shapes: Any$i;
|
|
1408
|
+
space: Any$i;
|
|
1409
|
+
arbiters: Any$i;
|
|
1410
|
+
wrap_arbiters: Any$i;
|
|
1411
|
+
constraints: Any$i;
|
|
1412
|
+
wrap_constraints: Any$i;
|
|
1413
|
+
component: Any$i;
|
|
1399
1414
|
graph_depth: number;
|
|
1400
1415
|
sweepTime: number;
|
|
1401
1416
|
sweep_angvel: number;
|
|
@@ -1408,20 +1423,20 @@ declare class ZPP_Body {
|
|
|
1408
1423
|
pre_posy: number;
|
|
1409
1424
|
posx: number;
|
|
1410
1425
|
posy: number;
|
|
1411
|
-
wrap_pos: Any$
|
|
1426
|
+
wrap_pos: Any$i;
|
|
1412
1427
|
velx: number;
|
|
1413
1428
|
vely: number;
|
|
1414
|
-
wrap_vel: Any$
|
|
1429
|
+
wrap_vel: Any$i;
|
|
1415
1430
|
forcex: number;
|
|
1416
1431
|
forcey: number;
|
|
1417
|
-
wrap_force: Any$
|
|
1432
|
+
wrap_force: Any$i;
|
|
1418
1433
|
kinvelx: number;
|
|
1419
1434
|
kinvely: number;
|
|
1420
|
-
wrap_kinvel: Any$
|
|
1435
|
+
wrap_kinvel: Any$i;
|
|
1421
1436
|
svelx: number;
|
|
1422
1437
|
svely: number;
|
|
1423
|
-
wrap_svel: Any$
|
|
1424
|
-
wrapcvel: Any$
|
|
1438
|
+
wrap_svel: Any$i;
|
|
1439
|
+
wrapcvel: Any$i;
|
|
1425
1440
|
angvel: number;
|
|
1426
1441
|
torque: number;
|
|
1427
1442
|
kinangvel: number;
|
|
@@ -1458,9 +1473,9 @@ declare class ZPP_Body {
|
|
|
1458
1473
|
worldCOMx: number;
|
|
1459
1474
|
worldCOMy: number;
|
|
1460
1475
|
zip_worldCOM: boolean;
|
|
1461
|
-
wrap_localCOM: Any$
|
|
1462
|
-
wrap_worldCOM: Any$
|
|
1463
|
-
__class__: Any$
|
|
1476
|
+
wrap_localCOM: Any$i;
|
|
1477
|
+
wrap_worldCOM: Any$i;
|
|
1478
|
+
__class__: Any$i;
|
|
1464
1479
|
constructor();
|
|
1465
1480
|
isStatic(): boolean;
|
|
1466
1481
|
isDynamic(): boolean;
|
|
@@ -1468,23 +1483,23 @@ declare class ZPP_Body {
|
|
|
1468
1483
|
invalidate_type(): void;
|
|
1469
1484
|
invalidate_shapes(): void;
|
|
1470
1485
|
init_bodysetlist(): void;
|
|
1471
|
-
connectedBodies_cont(b: Any$
|
|
1472
|
-
connectedBodies(depth: number, output: Any$
|
|
1473
|
-
interactingBodies(type: number, output: Any$
|
|
1486
|
+
connectedBodies_cont(b: Any$i): void;
|
|
1487
|
+
connectedBodies(depth: number, output: Any$i): Any$i;
|
|
1488
|
+
interactingBodies(type: number, output: Any$i): Any$i;
|
|
1474
1489
|
atRest(dt: number): boolean;
|
|
1475
1490
|
refreshArbiters(): void;
|
|
1476
1491
|
sweepIntegrate(dt: number): void;
|
|
1477
|
-
sweepValidate(s: Any$
|
|
1492
|
+
sweepValidate(s: Any$i): void;
|
|
1478
1493
|
invalidate_pos(): void;
|
|
1479
|
-
pos_invalidate(pos: Any$
|
|
1494
|
+
pos_invalidate(pos: Any$i): void;
|
|
1480
1495
|
pos_validate(): void;
|
|
1481
|
-
vel_invalidate(vel: Any$
|
|
1496
|
+
vel_invalidate(vel: Any$i): void;
|
|
1482
1497
|
vel_validate(): void;
|
|
1483
|
-
kinvel_invalidate(vel: Any$
|
|
1498
|
+
kinvel_invalidate(vel: Any$i): void;
|
|
1484
1499
|
kinvel_validate(): void;
|
|
1485
|
-
svel_invalidate(vel: Any$
|
|
1500
|
+
svel_invalidate(vel: Any$i): void;
|
|
1486
1501
|
svel_validate(): void;
|
|
1487
|
-
force_invalidate(force: Any$
|
|
1502
|
+
force_invalidate(force: Any$i): void;
|
|
1488
1503
|
force_validate(): void;
|
|
1489
1504
|
private _setupVec2Wrapper;
|
|
1490
1505
|
setupPosition(): void;
|
|
@@ -1521,38 +1536,38 @@ declare class ZPP_Body {
|
|
|
1521
1536
|
getworldCOM(): void;
|
|
1522
1537
|
__immutable_midstep(): void;
|
|
1523
1538
|
clear(): void;
|
|
1524
|
-
shapes_adder(s: Any$
|
|
1525
|
-
shapes_subber(s: Any$
|
|
1526
|
-
shapes_invalidate(_param: Any$
|
|
1539
|
+
shapes_adder(s: Any$i): boolean;
|
|
1540
|
+
shapes_subber(s: Any$i): void;
|
|
1541
|
+
shapes_invalidate(_param: Any$i): void;
|
|
1527
1542
|
shapes_modifiable(): void;
|
|
1528
1543
|
addedToSpace(): void;
|
|
1529
1544
|
removedFromSpace(): void;
|
|
1530
1545
|
private _removeArbiterFromList;
|
|
1531
|
-
copy(): Any$
|
|
1546
|
+
copy(): Any$i;
|
|
1532
1547
|
wake: () => void;
|
|
1533
1548
|
__iaddedToSpace: () => void;
|
|
1534
1549
|
__iremovedFromSpace: () => void;
|
|
1535
1550
|
immutable_midstep: (name: string) => void;
|
|
1536
|
-
copyto: (ret: Any$
|
|
1537
|
-
insert_cbtype: (cb: Any$
|
|
1551
|
+
copyto: (ret: Any$i) => void;
|
|
1552
|
+
insert_cbtype: (cb: Any$i) => void;
|
|
1538
1553
|
alloc_cbSet: () => void;
|
|
1539
1554
|
dealloc_cbSet: () => void;
|
|
1540
1555
|
setupcbTypes: () => void;
|
|
1541
1556
|
immutable_cbTypes: () => void;
|
|
1542
|
-
wrap_cbTypes_subber: (pcb: Any$
|
|
1543
|
-
wrap_cbTypes_adder: (cb: Any$
|
|
1544
|
-
setGroup: (group: Any$
|
|
1545
|
-
lookup_group: () => Any$
|
|
1546
|
-
getSpace: () => Any$
|
|
1557
|
+
wrap_cbTypes_subber: (pcb: Any$i) => void;
|
|
1558
|
+
wrap_cbTypes_adder: (cb: Any$i) => void;
|
|
1559
|
+
setGroup: (group: Any$i) => void;
|
|
1560
|
+
lookup_group: () => Any$i;
|
|
1561
|
+
getSpace: () => Any$i;
|
|
1547
1562
|
isShape: () => boolean;
|
|
1548
1563
|
isBody: () => boolean;
|
|
1549
1564
|
isCompound: () => boolean;
|
|
1550
1565
|
static _initialized: boolean;
|
|
1551
|
-
static _init(zpp: Any$
|
|
1566
|
+
static _init(zpp: Any$i, nape: Any$i): void;
|
|
1552
1567
|
/**
|
|
1553
1568
|
* Initialize BodyType singleton enums. Called once from compiled factory.
|
|
1554
1569
|
*/
|
|
1555
|
-
static _initEnums(nape: Any$
|
|
1570
|
+
static _initEnums(nape: Any$i, ZPP_Flags: Any$i): void;
|
|
1556
1571
|
}
|
|
1557
1572
|
|
|
1558
1573
|
/**
|
|
@@ -1563,77 +1578,77 @@ declare class ZPP_Body {
|
|
|
1563
1578
|
*
|
|
1564
1579
|
* Converted from nape-compiled.js lines 55195–55521.
|
|
1565
1580
|
*/
|
|
1566
|
-
type Any$
|
|
1581
|
+
type Any$h = any;
|
|
1567
1582
|
declare class ZPP_Compound {
|
|
1568
1583
|
static __name__: string[];
|
|
1569
|
-
static __super__: Any$
|
|
1584
|
+
static __super__: Any$h;
|
|
1570
1585
|
/**
|
|
1571
1586
|
* Namespace references, set by the compiled module after import.
|
|
1572
1587
|
* _nape = the `nape` public namespace (for wrapper creation in copy())
|
|
1573
1588
|
* _zpp = the `zpp_nape` internal namespace (for ZNPList_*, ZPP_BodyList, etc.)
|
|
1574
1589
|
*/
|
|
1575
|
-
static _nape: Any$
|
|
1576
|
-
static _zpp: Any$
|
|
1590
|
+
static _nape: Any$h;
|
|
1591
|
+
static _zpp: Any$h;
|
|
1577
1592
|
/**
|
|
1578
1593
|
* Wrapper factory callback, registered by the modernized Compound class.
|
|
1579
1594
|
* When set, wrapper() uses this instead of the compiled Compound constructor.
|
|
1580
1595
|
*/
|
|
1581
|
-
static _wrapFn: ((zpp: ZPP_Compound) => Any$
|
|
1582
|
-
outer_i: Any$
|
|
1596
|
+
static _wrapFn: ((zpp: ZPP_Compound) => Any$h) | null;
|
|
1597
|
+
outer_i: Any$h;
|
|
1583
1598
|
id: number;
|
|
1584
|
-
userData: Any$
|
|
1585
|
-
ishape: Any$
|
|
1586
|
-
ibody: Any$
|
|
1587
|
-
icompound: Any$
|
|
1588
|
-
wrap_cbTypes: Any$
|
|
1589
|
-
cbSet: Any$
|
|
1590
|
-
cbTypes: Any$
|
|
1591
|
-
group: Any$
|
|
1592
|
-
cbsets: Any$
|
|
1593
|
-
outer: Any$
|
|
1594
|
-
bodies: Any$
|
|
1595
|
-
constraints: Any$
|
|
1596
|
-
compounds: Any$
|
|
1597
|
-
wrap_bodies: Any$
|
|
1598
|
-
wrap_constraints: Any$
|
|
1599
|
-
wrap_compounds: Any$
|
|
1599
|
+
userData: Any$h;
|
|
1600
|
+
ishape: Any$h;
|
|
1601
|
+
ibody: Any$h;
|
|
1602
|
+
icompound: Any$h;
|
|
1603
|
+
wrap_cbTypes: Any$h;
|
|
1604
|
+
cbSet: Any$h;
|
|
1605
|
+
cbTypes: Any$h;
|
|
1606
|
+
group: Any$h;
|
|
1607
|
+
cbsets: Any$h;
|
|
1608
|
+
outer: Any$h;
|
|
1609
|
+
bodies: Any$h;
|
|
1610
|
+
constraints: Any$h;
|
|
1611
|
+
compounds: Any$h;
|
|
1612
|
+
wrap_bodies: Any$h;
|
|
1613
|
+
wrap_constraints: Any$h;
|
|
1614
|
+
wrap_compounds: Any$h;
|
|
1600
1615
|
depth: number;
|
|
1601
|
-
compound: Any$
|
|
1602
|
-
space: Any$
|
|
1603
|
-
__class__: Any$
|
|
1616
|
+
compound: Any$h;
|
|
1617
|
+
space: Any$h;
|
|
1618
|
+
__class__: Any$h;
|
|
1604
1619
|
constructor();
|
|
1605
1620
|
__imutable_midstep(name: string): void;
|
|
1606
1621
|
addedToSpace(): void;
|
|
1607
1622
|
removedFromSpace(): void;
|
|
1608
1623
|
breakApart(): void;
|
|
1609
1624
|
private static _zppOf;
|
|
1610
|
-
bodies_adder(x: Any$
|
|
1611
|
-
bodies_subber(x: Any$
|
|
1625
|
+
bodies_adder(x: Any$h): boolean;
|
|
1626
|
+
bodies_subber(x: Any$h): void;
|
|
1612
1627
|
bodies_modifiable(): void;
|
|
1613
|
-
constraints_adder(x: Any$
|
|
1614
|
-
constraints_subber(x: Any$
|
|
1628
|
+
constraints_adder(x: Any$h): boolean;
|
|
1629
|
+
constraints_subber(x: Any$h): void;
|
|
1615
1630
|
constraints_modifiable(): void;
|
|
1616
|
-
compounds_adder(x: Any$
|
|
1617
|
-
compounds_subber(x: Any$
|
|
1631
|
+
compounds_adder(x: Any$h): boolean;
|
|
1632
|
+
compounds_subber(x: Any$h): void;
|
|
1618
1633
|
compounds_modifiable(): void;
|
|
1619
|
-
copy(dict?: Any$
|
|
1634
|
+
copy(dict?: Any$h[], todo?: Any$h[]): Any$h;
|
|
1620
1635
|
isShape: () => boolean;
|
|
1621
1636
|
isBody: () => boolean;
|
|
1622
1637
|
isCompound: () => boolean;
|
|
1623
1638
|
__iaddedToSpace: () => void;
|
|
1624
1639
|
__iremovedFromSpace: () => void;
|
|
1625
1640
|
wake: () => void;
|
|
1626
|
-
getSpace: () => Any$
|
|
1641
|
+
getSpace: () => Any$h;
|
|
1627
1642
|
setupcbTypes: () => void;
|
|
1628
1643
|
immutable_cbTypes: () => void;
|
|
1629
|
-
wrap_cbTypes_subber: (pcb: Any$
|
|
1630
|
-
wrap_cbTypes_adder: (cb: Any$
|
|
1631
|
-
insert_cbtype: (cb: Any$
|
|
1644
|
+
wrap_cbTypes_subber: (pcb: Any$h) => void;
|
|
1645
|
+
wrap_cbTypes_adder: (cb: Any$h) => boolean;
|
|
1646
|
+
insert_cbtype: (cb: Any$h) => void;
|
|
1632
1647
|
alloc_cbSet: () => void;
|
|
1633
1648
|
dealloc_cbSet: () => void;
|
|
1634
1649
|
immutable_midstep: (name: string) => void;
|
|
1635
|
-
copyto: (ret: Any$
|
|
1636
|
-
lookup_group: () => Any$
|
|
1650
|
+
copyto: (ret: Any$h) => void;
|
|
1651
|
+
lookup_group: () => Any$h;
|
|
1637
1652
|
/**
|
|
1638
1653
|
* Initialize prototype by copying ZPP_Interactor methods.
|
|
1639
1654
|
* Must be called after _zpp is set (during compiled module init).
|
|
@@ -1648,14 +1663,12 @@ declare class ZPP_Compound {
|
|
|
1648
1663
|
*
|
|
1649
1664
|
* Converted from nape-compiled.js lines 72949–72972.
|
|
1650
1665
|
*/
|
|
1651
|
-
type Any$l = any;
|
|
1652
1666
|
declare class ZPP_MatMN {
|
|
1653
1667
|
static __name__: string[];
|
|
1654
|
-
outer:
|
|
1668
|
+
outer: object | null;
|
|
1655
1669
|
m: number;
|
|
1656
1670
|
n: number;
|
|
1657
1671
|
x: number[];
|
|
1658
|
-
__class__: Any$l;
|
|
1659
1672
|
constructor(m: number, n: number);
|
|
1660
1673
|
}
|
|
1661
1674
|
|
|
@@ -1687,7 +1700,7 @@ declare class MatMN {
|
|
|
1687
1700
|
*
|
|
1688
1701
|
* Converted from nape-compiled.js lines 21424–21827.
|
|
1689
1702
|
*/
|
|
1690
|
-
type Any$
|
|
1703
|
+
type Any$g = any;
|
|
1691
1704
|
declare class ZPP_Constraint {
|
|
1692
1705
|
static __name__: string[];
|
|
1693
1706
|
/**
|
|
@@ -1695,13 +1708,13 @@ declare class ZPP_Constraint {
|
|
|
1695
1708
|
* _nape = the `nape` public namespace (for CbTypeIterator in copyto)
|
|
1696
1709
|
* _zpp = the `zpp_nape` internal namespace (for ZNPList_*, ZPP_CbSet, etc.)
|
|
1697
1710
|
*/
|
|
1698
|
-
static _nape: Any$
|
|
1699
|
-
static _zpp: Any$
|
|
1700
|
-
outer: Any$
|
|
1711
|
+
static _nape: Any$g;
|
|
1712
|
+
static _zpp: Any$g;
|
|
1713
|
+
outer: Any$g;
|
|
1701
1714
|
id: number;
|
|
1702
|
-
userData: Any$
|
|
1703
|
-
compound: Any$
|
|
1704
|
-
space: Any$
|
|
1715
|
+
userData: Any$g;
|
|
1716
|
+
compound: Any$g;
|
|
1717
|
+
space: Any$g;
|
|
1705
1718
|
active: boolean;
|
|
1706
1719
|
stiff: boolean;
|
|
1707
1720
|
frequency: number;
|
|
@@ -1711,14 +1724,14 @@ declare class ZPP_Constraint {
|
|
|
1711
1724
|
breakUnderForce: boolean;
|
|
1712
1725
|
breakUnderError: boolean;
|
|
1713
1726
|
removeOnBreak: boolean;
|
|
1714
|
-
component: Any$
|
|
1727
|
+
component: Any$g;
|
|
1715
1728
|
ignore: boolean;
|
|
1716
1729
|
__velocity: boolean;
|
|
1717
|
-
cbTypes: Any$
|
|
1718
|
-
cbSet: Any$
|
|
1719
|
-
wrap_cbTypes: Any$
|
|
1730
|
+
cbTypes: Any$g;
|
|
1731
|
+
cbSet: Any$g;
|
|
1732
|
+
wrap_cbTypes: Any$g;
|
|
1720
1733
|
pre_dt: number;
|
|
1721
|
-
__class__: Any$
|
|
1734
|
+
__class__: Any$g;
|
|
1722
1735
|
constructor();
|
|
1723
1736
|
/**
|
|
1724
1737
|
* Initialise base constraint fields.
|
|
@@ -1736,18 +1749,18 @@ declare class ZPP_Constraint {
|
|
|
1736
1749
|
forest(): void;
|
|
1737
1750
|
broken(): void;
|
|
1738
1751
|
warmStart(): void;
|
|
1739
|
-
draw(_g: Any$
|
|
1740
|
-
pair_exists(_id: Any$
|
|
1752
|
+
draw(_g: Any$g): void;
|
|
1753
|
+
pair_exists(_id: Any$g, _di: Any$g): boolean;
|
|
1741
1754
|
preStep(_dt: number): boolean;
|
|
1742
1755
|
applyImpulseVel(): boolean;
|
|
1743
1756
|
applyImpulsePos(): boolean;
|
|
1744
|
-
copy(_dict?: Any$
|
|
1757
|
+
copy(_dict?: Any$g, _todo?: Any$g): Any$g;
|
|
1745
1758
|
immutable_midstep(name: string): void;
|
|
1746
1759
|
setupcbTypes(): void;
|
|
1747
1760
|
immutable_cbTypes(): void;
|
|
1748
|
-
wrap_cbTypes_subber(pcb: Any$
|
|
1749
|
-
wrap_cbTypes_adder(cb: Any$
|
|
1750
|
-
insert_cbtype(cb: Any$
|
|
1761
|
+
wrap_cbTypes_subber(pcb: Any$g): void;
|
|
1762
|
+
wrap_cbTypes_adder(cb: Any$g): boolean;
|
|
1763
|
+
insert_cbtype(cb: Any$g): void;
|
|
1751
1764
|
alloc_cbSet(): void;
|
|
1752
1765
|
dealloc_cbSet(): void;
|
|
1753
1766
|
activate(): void;
|
|
@@ -1757,9 +1770,9 @@ declare class ZPP_Constraint {
|
|
|
1757
1770
|
activeInSpace(): void;
|
|
1758
1771
|
inactiveOrOutSpace(): void;
|
|
1759
1772
|
wake(): void;
|
|
1760
|
-
copyto(ret: Any$
|
|
1761
|
-
static _findRoot(comp: Any$
|
|
1762
|
-
static _unionComponents(a: Any$
|
|
1773
|
+
copyto(ret: Any$g): void;
|
|
1774
|
+
static _findRoot(comp: Any$g): Any$g;
|
|
1775
|
+
static _unionComponents(a: Any$g, b: Any$g): void;
|
|
1763
1776
|
}
|
|
1764
1777
|
|
|
1765
1778
|
/**
|
|
@@ -1906,13 +1919,12 @@ declare class Compound extends Interactor {
|
|
|
1906
1919
|
*
|
|
1907
1920
|
* Converted from nape-compiled.js lines 73495–73561, 133826.
|
|
1908
1921
|
*/
|
|
1909
|
-
type Any$j = any;
|
|
1910
1922
|
declare class ZPP_Mat23 {
|
|
1911
1923
|
static __name__: string[];
|
|
1912
|
-
static _nape:
|
|
1913
|
-
static _wrapFn: ((zpp: ZPP_Mat23) =>
|
|
1924
|
+
static _nape: any;
|
|
1925
|
+
static _wrapFn: ((zpp: ZPP_Mat23) => any) | null;
|
|
1914
1926
|
static zpp_pool: ZPP_Mat23 | null;
|
|
1915
|
-
outer:
|
|
1927
|
+
outer: any;
|
|
1916
1928
|
a: number;
|
|
1917
1929
|
b: number;
|
|
1918
1930
|
c: number;
|
|
@@ -1921,13 +1933,12 @@ declare class ZPP_Mat23 {
|
|
|
1921
1933
|
ty: number;
|
|
1922
1934
|
_invalidate: (() => void) | null;
|
|
1923
1935
|
next: ZPP_Mat23 | null;
|
|
1924
|
-
__class__: Any$j;
|
|
1925
1936
|
/** Static factory with pooling. */
|
|
1926
1937
|
static get(): ZPP_Mat23;
|
|
1927
1938
|
/** Create an identity matrix from pool. */
|
|
1928
1939
|
static identity(): ZPP_Mat23;
|
|
1929
1940
|
/** Create a public wrapper, recycling any existing inner. */
|
|
1930
|
-
wrapper():
|
|
1941
|
+
wrapper(): any;
|
|
1931
1942
|
invalidate(): void;
|
|
1932
1943
|
set(m: ZPP_Mat23): void;
|
|
1933
1944
|
setas(a: number, b: number, c: number, d: number, tx: number, ty: number): void;
|
|
@@ -2233,7 +2244,6 @@ declare class Body extends Interactor {
|
|
|
2233
2244
|
* Converted from nape-compiled.js lines 31239–33172, 65896.
|
|
2234
2245
|
*/
|
|
2235
2246
|
|
|
2236
|
-
type Any$i = any;
|
|
2237
2247
|
declare class ZPP_Ray {
|
|
2238
2248
|
static __name__: string[];
|
|
2239
2249
|
static internal: boolean;
|
|
@@ -2248,27 +2258,26 @@ declare class ZPP_Ray {
|
|
|
2248
2258
|
dirx: number;
|
|
2249
2259
|
originy: number;
|
|
2250
2260
|
originx: number;
|
|
2251
|
-
userData:
|
|
2261
|
+
userData: unknown;
|
|
2252
2262
|
maxdist: number;
|
|
2253
|
-
direction:
|
|
2254
|
-
origin:
|
|
2255
|
-
__class__: Any$i;
|
|
2263
|
+
direction: any;
|
|
2264
|
+
origin: any;
|
|
2256
2265
|
constructor();
|
|
2257
|
-
origin_invalidate(x:
|
|
2258
|
-
direction_invalidate(x:
|
|
2266
|
+
origin_invalidate(x: ZPP_Vec2): void;
|
|
2267
|
+
direction_invalidate(x: ZPP_Vec2): void;
|
|
2259
2268
|
invalidate_dir(): void;
|
|
2260
2269
|
validate_dir(): void;
|
|
2261
2270
|
rayAABB(): ZPP_AABB;
|
|
2262
|
-
aabbtest(a:
|
|
2263
|
-
aabbsect(a:
|
|
2271
|
+
aabbtest(a: ZPP_AABB): boolean;
|
|
2272
|
+
aabbsect(a: ZPP_AABB): number;
|
|
2264
2273
|
private static _allocVec2;
|
|
2265
2274
|
private static _validateWorldCOM;
|
|
2266
2275
|
private _circleNormal;
|
|
2267
2276
|
private static _insertSorted;
|
|
2268
|
-
circlesect(c:
|
|
2269
|
-
circlesect2(c:
|
|
2270
|
-
polysect(p:
|
|
2271
|
-
polysect2(p:
|
|
2277
|
+
circlesect(c: any, inner: boolean, mint: number): any;
|
|
2278
|
+
circlesect2(c: any, inner: boolean, list: any): void;
|
|
2279
|
+
polysect(p: any, inner: boolean, mint: number): any;
|
|
2280
|
+
polysect2(p: any, inner: boolean, list: any): void;
|
|
2272
2281
|
}
|
|
2273
2282
|
|
|
2274
2283
|
/**
|
|
@@ -2314,135 +2323,135 @@ declare class Ray {
|
|
|
2314
2323
|
* sleeping/waking, and callback dispatch.
|
|
2315
2324
|
*/
|
|
2316
2325
|
|
|
2317
|
-
type Any$
|
|
2326
|
+
type Any$f = any;
|
|
2318
2327
|
declare class ZPP_Space {
|
|
2319
2328
|
static __name__: string[];
|
|
2320
|
-
static _zpp: Any$
|
|
2321
|
-
static _nape: Any$
|
|
2322
|
-
outer: Any$
|
|
2323
|
-
userData: Any$
|
|
2324
|
-
gravityx: Any$
|
|
2325
|
-
gravityy: Any$
|
|
2326
|
-
wrap_gravity: Any$
|
|
2327
|
-
bodies: Any$
|
|
2328
|
-
wrap_bodies: Any$
|
|
2329
|
-
compounds: Any$
|
|
2330
|
-
wrap_compounds: Any$
|
|
2331
|
-
constraints: Any$
|
|
2332
|
-
wrap_constraints: Any$
|
|
2333
|
-
kinematics: Any$
|
|
2334
|
-
bphase: Any$
|
|
2335
|
-
__static: Any$
|
|
2336
|
-
global_lin_drag: Any$
|
|
2337
|
-
global_ang_drag: Any$
|
|
2338
|
-
stamp: Any$
|
|
2339
|
-
midstep: Any$
|
|
2340
|
-
time: Any$
|
|
2341
|
-
sortcontacts: Any$
|
|
2342
|
-
c_arbiters_true: Any$
|
|
2343
|
-
c_arbiters_false: Any$
|
|
2344
|
-
f_arbiters: Any$
|
|
2345
|
-
s_arbiters: Any$
|
|
2346
|
-
wrap_arbiters: Any$
|
|
2347
|
-
live: Any$
|
|
2348
|
-
wrap_live: Any$
|
|
2349
|
-
live_constraints: Any$
|
|
2350
|
-
wrap_livecon: Any$
|
|
2351
|
-
staticsleep: Any$
|
|
2352
|
-
islands: Any$
|
|
2353
|
-
listeners: Any$
|
|
2354
|
-
wrap_listeners: Any$
|
|
2355
|
-
callbacks: Any$
|
|
2356
|
-
callbackset_list: Any$
|
|
2357
|
-
cbsets: Any$
|
|
2358
|
-
convexShapeList: Any$
|
|
2359
|
-
pre_dt: Any$
|
|
2360
|
-
toiEvents: Any$
|
|
2361
|
-
continuous: Any$
|
|
2362
|
-
precb: Any$
|
|
2363
|
-
prelisteners: Any$
|
|
2364
|
-
mrca1: Any$
|
|
2365
|
-
mrca2: Any$
|
|
2366
|
-
__class__: Any$
|
|
2367
|
-
constructor(gravity?: Any$
|
|
2329
|
+
static _zpp: Any$f;
|
|
2330
|
+
static _nape: Any$f;
|
|
2331
|
+
outer: Any$f;
|
|
2332
|
+
userData: Any$f;
|
|
2333
|
+
gravityx: Any$f;
|
|
2334
|
+
gravityy: Any$f;
|
|
2335
|
+
wrap_gravity: Any$f;
|
|
2336
|
+
bodies: Any$f;
|
|
2337
|
+
wrap_bodies: Any$f;
|
|
2338
|
+
compounds: Any$f;
|
|
2339
|
+
wrap_compounds: Any$f;
|
|
2340
|
+
constraints: Any$f;
|
|
2341
|
+
wrap_constraints: Any$f;
|
|
2342
|
+
kinematics: Any$f;
|
|
2343
|
+
bphase: Any$f;
|
|
2344
|
+
__static: Any$f;
|
|
2345
|
+
global_lin_drag: Any$f;
|
|
2346
|
+
global_ang_drag: Any$f;
|
|
2347
|
+
stamp: Any$f;
|
|
2348
|
+
midstep: Any$f;
|
|
2349
|
+
time: Any$f;
|
|
2350
|
+
sortcontacts: Any$f;
|
|
2351
|
+
c_arbiters_true: Any$f;
|
|
2352
|
+
c_arbiters_false: Any$f;
|
|
2353
|
+
f_arbiters: Any$f;
|
|
2354
|
+
s_arbiters: Any$f;
|
|
2355
|
+
wrap_arbiters: Any$f;
|
|
2356
|
+
live: Any$f;
|
|
2357
|
+
wrap_live: Any$f;
|
|
2358
|
+
live_constraints: Any$f;
|
|
2359
|
+
wrap_livecon: Any$f;
|
|
2360
|
+
staticsleep: Any$f;
|
|
2361
|
+
islands: Any$f;
|
|
2362
|
+
listeners: Any$f;
|
|
2363
|
+
wrap_listeners: Any$f;
|
|
2364
|
+
callbacks: Any$f;
|
|
2365
|
+
callbackset_list: Any$f;
|
|
2366
|
+
cbsets: Any$f;
|
|
2367
|
+
convexShapeList: Any$f;
|
|
2368
|
+
pre_dt: Any$f;
|
|
2369
|
+
toiEvents: Any$f;
|
|
2370
|
+
continuous: Any$f;
|
|
2371
|
+
precb: Any$f;
|
|
2372
|
+
prelisteners: Any$f;
|
|
2373
|
+
mrca1: Any$f;
|
|
2374
|
+
mrca2: Any$f;
|
|
2375
|
+
__class__: Any$f;
|
|
2376
|
+
constructor(gravity?: Any$f, broadphase?: Any$f);
|
|
2368
2377
|
getgravity(): void;
|
|
2369
|
-
gravity_invalidate(x: Any$
|
|
2378
|
+
gravity_invalidate(x: Any$f): void;
|
|
2370
2379
|
gravity_validate(): void;
|
|
2371
2380
|
clear(): void;
|
|
2372
|
-
bodies_adder(x: Any$
|
|
2373
|
-
bodies_subber(x: Any$
|
|
2381
|
+
bodies_adder(x: Any$f): boolean;
|
|
2382
|
+
bodies_subber(x: Any$f): void;
|
|
2374
2383
|
bodies_modifiable(): void;
|
|
2375
|
-
compounds_adder(x: Any$
|
|
2376
|
-
compounds_subber(x: Any$
|
|
2384
|
+
compounds_adder(x: Any$f): boolean;
|
|
2385
|
+
compounds_subber(x: Any$f): void;
|
|
2377
2386
|
compounds_modifiable(): void;
|
|
2378
|
-
constraints_adder(x: Any$
|
|
2379
|
-
constraints_subber(x: Any$
|
|
2387
|
+
constraints_adder(x: Any$f): boolean;
|
|
2388
|
+
constraints_subber(x: Any$f): void;
|
|
2380
2389
|
constraints_modifiable(): void;
|
|
2381
|
-
listeners_adder(x: Any$
|
|
2382
|
-
listeners_subber(x: Any$
|
|
2390
|
+
listeners_adder(x: Any$f): boolean;
|
|
2391
|
+
listeners_subber(x: Any$f): void;
|
|
2383
2392
|
listeners_modifiable(): void;
|
|
2384
|
-
revoke_listener(x: Any$
|
|
2385
|
-
unrevoke_listener(x: Any$
|
|
2386
|
-
addListener(x: Any$
|
|
2387
|
-
remListener(x: Any$
|
|
2388
|
-
add_callbackset(cb: Any$
|
|
2389
|
-
remove_callbackset(cb: Any$
|
|
2390
|
-
transmitType(p: Any$
|
|
2391
|
-
added_shape(s: Any$
|
|
2392
|
-
removed_shape(s: Any$
|
|
2393
|
-
addConstraint(con: Any$
|
|
2394
|
-
remConstraint(con: Any$
|
|
2395
|
-
addCompound(x: Any$
|
|
2396
|
-
remCompound(x: Any$
|
|
2397
|
-
addBody(body: Any$
|
|
2398
|
-
remBody(body: Any$
|
|
2399
|
-
shapesUnderPoint(x: Any$
|
|
2400
|
-
bodiesUnderPoint(x: Any$
|
|
2401
|
-
shapesInAABB(aabb: Any$
|
|
2402
|
-
bodiesInAABB(aabb: Any$
|
|
2403
|
-
shapesInCircle(pos: Any$
|
|
2404
|
-
bodiesInCircle(pos: Any$
|
|
2405
|
-
shapesInShape(shape: Any$
|
|
2406
|
-
bodiesInShape(shape: Any$
|
|
2407
|
-
rayCast(ray: Any$
|
|
2408
|
-
rayMultiCast(ray: Any$
|
|
2409
|
-
convexCast(shape: Any$
|
|
2410
|
-
prepareCast(s: Any$
|
|
2411
|
-
convexMultiCast(shape: Any$
|
|
2412
|
-
push_callback(i: Any$
|
|
2413
|
-
step(deltaTime: Any$
|
|
2414
|
-
continuousCollisions(deltaTime: Any$
|
|
2415
|
-
continuousEvent(s1: Any$
|
|
2416
|
-
bodyCbWake(b: Any$
|
|
2417
|
-
bodyCbSleep(b: Any$
|
|
2418
|
-
constraintCbWake(con: Any$
|
|
2419
|
-
constraintCbSleep(con: Any$
|
|
2420
|
-
constraintCbBreak(con: Any$
|
|
2421
|
-
nullListenerType(cb1: Any$
|
|
2422
|
-
nullInteractorType(intx: Any$
|
|
2423
|
-
freshListenerType(cb1: Any$
|
|
2424
|
-
freshInteractorType(intx: Any$
|
|
2425
|
-
wakeCompound(x: Any$
|
|
2426
|
-
wakeIsland(i: Any$
|
|
2427
|
-
non_inlined_wake(o: Any$
|
|
2428
|
-
really_wake(o: Any$
|
|
2429
|
-
wake_constraint(con: Any$
|
|
2430
|
-
doForests(dt: Any$
|
|
2393
|
+
revoke_listener(x: Any$f): void;
|
|
2394
|
+
unrevoke_listener(x: Any$f): void;
|
|
2395
|
+
addListener(x: Any$f): void;
|
|
2396
|
+
remListener(x: Any$f): void;
|
|
2397
|
+
add_callbackset(cb: Any$f): void;
|
|
2398
|
+
remove_callbackset(cb: Any$f): void;
|
|
2399
|
+
transmitType(p: Any$f, new_type: Any$f): void;
|
|
2400
|
+
added_shape(s: Any$f, dontwake: Any$f): void;
|
|
2401
|
+
removed_shape(s: Any$f, deleting: Any$f): void;
|
|
2402
|
+
addConstraint(con: Any$f): void;
|
|
2403
|
+
remConstraint(con: Any$f): void;
|
|
2404
|
+
addCompound(x: Any$f): void;
|
|
2405
|
+
remCompound(x: Any$f): void;
|
|
2406
|
+
addBody(body: Any$f, flag?: Any$f): void;
|
|
2407
|
+
remBody(body: Any$f, flag?: Any$f): void;
|
|
2408
|
+
shapesUnderPoint(x: Any$f, y: Any$f, filter: Any$f, output: Any$f): any;
|
|
2409
|
+
bodiesUnderPoint(x: Any$f, y: Any$f, filter: Any$f, output: Any$f): any;
|
|
2410
|
+
shapesInAABB(aabb: Any$f, strict: Any$f, cont: Any$f, filter: Any$f, output: Any$f): any;
|
|
2411
|
+
bodiesInAABB(aabb: Any$f, strict: Any$f, cont: Any$f, filter: Any$f, output: Any$f): any;
|
|
2412
|
+
shapesInCircle(pos: Any$f, rad: Any$f, cont: Any$f, filter: Any$f, output: Any$f): any;
|
|
2413
|
+
bodiesInCircle(pos: Any$f, rad: Any$f, cont: Any$f, filter: Any$f, output: Any$f): any;
|
|
2414
|
+
shapesInShape(shape: Any$f, cont: Any$f, filter: Any$f, output: Any$f): any;
|
|
2415
|
+
bodiesInShape(shape: Any$f, cont: Any$f, filter: Any$f, output: Any$f): any;
|
|
2416
|
+
rayCast(ray: Any$f, inner: Any$f, filter: Any$f): any;
|
|
2417
|
+
rayMultiCast(ray: Any$f, inner: Any$f, filter: Any$f, output: Any$f): any;
|
|
2418
|
+
convexCast(shape: Any$f, deltaTime: Any$f, filter: Any$f, dynamics: Any$f): any;
|
|
2419
|
+
prepareCast(s: Any$f): void;
|
|
2420
|
+
convexMultiCast(shape: Any$f, deltaTime: Any$f, filter: Any$f, dynamics: Any$f, output: Any$f): any;
|
|
2421
|
+
push_callback(i: Any$f): ZPP_Callback;
|
|
2422
|
+
step(deltaTime: Any$f, velocityIterations: Any$f, positionIterations: Any$f): void;
|
|
2423
|
+
continuousCollisions(deltaTime: Any$f): void;
|
|
2424
|
+
continuousEvent(s1: Any$f, s2: Any$f, stat: Any$f, in_arb: Any$f, _: Any$f): any;
|
|
2425
|
+
bodyCbWake(b: Any$f): void;
|
|
2426
|
+
bodyCbSleep(b: Any$f): void;
|
|
2427
|
+
constraintCbWake(con: Any$f): void;
|
|
2428
|
+
constraintCbSleep(con: Any$f): void;
|
|
2429
|
+
constraintCbBreak(con: Any$f): void;
|
|
2430
|
+
nullListenerType(cb1: Any$f, cb2: Any$f): void;
|
|
2431
|
+
nullInteractorType(intx: Any$f, me: Any$f): void;
|
|
2432
|
+
freshListenerType(cb1: Any$f, cb2: Any$f): void;
|
|
2433
|
+
freshInteractorType(intx: Any$f, me: Any$f): void;
|
|
2434
|
+
wakeCompound(x: Any$f): void;
|
|
2435
|
+
wakeIsland(i: Any$f): void;
|
|
2436
|
+
non_inlined_wake(o: Any$f, fst?: Any$f): void;
|
|
2437
|
+
really_wake(o: Any$f, fst?: Any$f): void;
|
|
2438
|
+
wake_constraint(con: Any$f, fst?: Any$f): boolean;
|
|
2439
|
+
doForests(dt: Any$f): void;
|
|
2431
2440
|
sleepArbiters(): void;
|
|
2432
|
-
static_validation(body: Any$
|
|
2441
|
+
static_validation(body: Any$f): void;
|
|
2433
2442
|
validation(): void;
|
|
2434
|
-
updateVel(dt: Any$
|
|
2435
|
-
updatePos(dt: Any$
|
|
2436
|
-
presteparb(arb: Any$
|
|
2437
|
-
prestep(dt: Any$
|
|
2443
|
+
updateVel(dt: Any$f): void;
|
|
2444
|
+
updatePos(dt: Any$f): void;
|
|
2445
|
+
presteparb(arb: Any$f, dt: Any$f, cont?: Any$f): boolean;
|
|
2446
|
+
prestep(dt: Any$f): void;
|
|
2438
2447
|
warmStart(): void;
|
|
2439
|
-
iterateVel(times: Any$
|
|
2440
|
-
iteratePos(times: Any$
|
|
2441
|
-
group_ignore(s1: Any$
|
|
2442
|
-
interactionType(s1: Any$
|
|
2443
|
-
narrowPhase(s1: Any$
|
|
2444
|
-
MRCA_chains(s1: Any$
|
|
2445
|
-
inlined_MRCA_chains(s1: Any$
|
|
2448
|
+
iterateVel(times: Any$f): void;
|
|
2449
|
+
iteratePos(times: Any$f): void;
|
|
2450
|
+
group_ignore(s1: Any$f, s2: Any$f): boolean;
|
|
2451
|
+
interactionType(s1: Any$f, s2: Any$f, b1: Any$f, b2: Any$f): 0 | 1 | 2 | -1;
|
|
2452
|
+
narrowPhase(s1: Any$f, s2: Any$f, stat: Any$f, in_arb: Any$f, continuous: Any$f): any;
|
|
2453
|
+
MRCA_chains(s1: Any$f, s2: Any$f): void;
|
|
2454
|
+
inlined_MRCA_chains(s1: Any$f, s2: Any$f): void;
|
|
2446
2455
|
}
|
|
2447
2456
|
|
|
2448
2457
|
/**
|
|
@@ -2588,34 +2597,34 @@ declare class Callback {
|
|
|
2588
2597
|
*
|
|
2589
2598
|
* Converted from nape-compiled.js lines 51337–51655.
|
|
2590
2599
|
*/
|
|
2591
|
-
type Any$
|
|
2600
|
+
type Any$e = any;
|
|
2592
2601
|
declare class ZPP_OptionType {
|
|
2593
2602
|
static __name__: string[];
|
|
2594
|
-
static _nape: Any$
|
|
2595
|
-
static _zpp: Any$
|
|
2596
|
-
outer: Any$
|
|
2597
|
-
handler: ((val: Any$
|
|
2598
|
-
includes: Any$
|
|
2599
|
-
excludes: Any$
|
|
2600
|
-
wrap_includes: Any$
|
|
2601
|
-
wrap_excludes: Any$
|
|
2602
|
-
__class__: Any$
|
|
2603
|
+
static _nape: Any$e;
|
|
2604
|
+
static _zpp: Any$e;
|
|
2605
|
+
outer: Any$e;
|
|
2606
|
+
handler: ((val: Any$e, included: boolean, added: boolean) => void) | null;
|
|
2607
|
+
includes: Any$e;
|
|
2608
|
+
excludes: Any$e;
|
|
2609
|
+
wrap_includes: Any$e;
|
|
2610
|
+
wrap_excludes: Any$e;
|
|
2611
|
+
__class__: Any$e;
|
|
2603
2612
|
constructor();
|
|
2604
2613
|
/** Coerce a value to OptionType (null → new, OptionType → pass-through, CbType → including). */
|
|
2605
|
-
static argument(val: Any$
|
|
2614
|
+
static argument(val: Any$e): Any$e;
|
|
2606
2615
|
setup_includes(): void;
|
|
2607
2616
|
setup_excludes(): void;
|
|
2608
|
-
excluded(xs: Any$
|
|
2609
|
-
included(xs: Any$
|
|
2610
|
-
compatible(xs: Any$
|
|
2617
|
+
excluded(xs: Any$e): boolean;
|
|
2618
|
+
included(xs: Any$e): boolean;
|
|
2619
|
+
compatible(xs: Any$e): boolean;
|
|
2611
2620
|
/** Check whether two sorted-by-id lists share any element. */
|
|
2612
|
-
nonemptyintersection(xs: Any$
|
|
2621
|
+
nonemptyintersection(xs: Any$e, ys: Any$e): boolean;
|
|
2613
2622
|
/** Insert into the ordered include or exclude list, using pool nodes. */
|
|
2614
2623
|
private insertOrdered;
|
|
2615
|
-
effect_change(val: Any$
|
|
2616
|
-
append_type(list: Any$
|
|
2624
|
+
effect_change(val: Any$e, included: boolean, added: boolean): void;
|
|
2625
|
+
append_type(list: Any$e, val: Any$e): void;
|
|
2617
2626
|
set(options: ZPP_OptionType): this;
|
|
2618
|
-
append(list: Any$
|
|
2627
|
+
append(list: Any$e, val: Any$e): void;
|
|
2619
2628
|
}
|
|
2620
2629
|
|
|
2621
2630
|
/**
|
|
@@ -2627,45 +2636,45 @@ declare class ZPP_OptionType {
|
|
|
2627
2636
|
*
|
|
2628
2637
|
* Converted from nape-compiled.js lines 48256–48482.
|
|
2629
2638
|
*/
|
|
2630
|
-
type Any$
|
|
2639
|
+
type Any$d = any;
|
|
2631
2640
|
declare class ZPP_CbType {
|
|
2632
2641
|
static __name__: string[];
|
|
2633
|
-
static _zpp: Any$
|
|
2634
|
-
static ANY_SHAPE: Any$
|
|
2635
|
-
static ANY_BODY: Any$
|
|
2636
|
-
static ANY_COMPOUND: Any$
|
|
2637
|
-
static ANY_CONSTRAINT: Any$
|
|
2642
|
+
static _zpp: Any$d;
|
|
2643
|
+
static ANY_SHAPE: Any$d;
|
|
2644
|
+
static ANY_BODY: Any$d;
|
|
2645
|
+
static ANY_COMPOUND: Any$d;
|
|
2646
|
+
static ANY_CONSTRAINT: Any$d;
|
|
2638
2647
|
/**
|
|
2639
2648
|
* Initialize ANY_* singleton CbTypes. Called once from compiled factory.
|
|
2640
2649
|
*/
|
|
2641
|
-
static _initEnums(nape: Any$
|
|
2642
|
-
outer: Any$
|
|
2643
|
-
userData: Any$
|
|
2650
|
+
static _initEnums(nape: Any$d): void;
|
|
2651
|
+
outer: Any$d;
|
|
2652
|
+
userData: Any$d;
|
|
2644
2653
|
id: number;
|
|
2645
|
-
cbsets: Any$
|
|
2646
|
-
interactors: Any$
|
|
2647
|
-
wrap_interactors: Any$
|
|
2648
|
-
constraints: Any$
|
|
2649
|
-
wrap_constraints: Any$
|
|
2650
|
-
listeners: Any$
|
|
2651
|
-
bodylisteners: Any$
|
|
2652
|
-
conlisteners: Any$
|
|
2653
|
-
__class__: Any$
|
|
2654
|
+
cbsets: Any$d;
|
|
2655
|
+
interactors: Any$d;
|
|
2656
|
+
wrap_interactors: Any$d;
|
|
2657
|
+
constraints: Any$d;
|
|
2658
|
+
wrap_constraints: Any$d;
|
|
2659
|
+
listeners: Any$d;
|
|
2660
|
+
bodylisteners: Any$d;
|
|
2661
|
+
conlisteners: Any$d;
|
|
2662
|
+
__class__: Any$d;
|
|
2654
2663
|
constructor();
|
|
2655
2664
|
/** Sort comparator by id. */
|
|
2656
2665
|
static setlt(a: ZPP_CbType, b: ZPP_CbType): boolean;
|
|
2657
|
-
addInteractor(intx: Any$
|
|
2658
|
-
remInteractor(intx: Any$
|
|
2659
|
-
addConstraint(con: Any$
|
|
2660
|
-
remConstraint(con: Any$
|
|
2661
|
-
addint(x: Any$
|
|
2662
|
-
removeint(x: Any$
|
|
2666
|
+
addInteractor(intx: Any$d): void;
|
|
2667
|
+
remInteractor(intx: Any$d): void;
|
|
2668
|
+
addConstraint(con: Any$d): void;
|
|
2669
|
+
remConstraint(con: Any$d): void;
|
|
2670
|
+
addint(x: Any$d): void;
|
|
2671
|
+
removeint(x: Any$d): void;
|
|
2663
2672
|
invalidateint(): void;
|
|
2664
|
-
addbody(x: Any$
|
|
2665
|
-
removebody(x: Any$
|
|
2673
|
+
addbody(x: Any$d): void;
|
|
2674
|
+
removebody(x: Any$d): void;
|
|
2666
2675
|
invalidatebody(): void;
|
|
2667
|
-
addconstraint(x: Any$
|
|
2668
|
-
removeconstraint(x: Any$
|
|
2676
|
+
addconstraint(x: Any$d): void;
|
|
2677
|
+
removeconstraint(x: Any$d): void;
|
|
2669
2678
|
invalidateconstraint(): void;
|
|
2670
2679
|
}
|
|
2671
2680
|
|
|
@@ -2751,23 +2760,22 @@ declare class PreFlag {
|
|
|
2751
2760
|
*
|
|
2752
2761
|
* Converted from nape-compiled.js lines 29044–29362, 80738–80766.
|
|
2753
2762
|
*/
|
|
2754
|
-
type Any$e = any;
|
|
2755
2763
|
declare class ZPP_Arbiter {
|
|
2756
2764
|
static __name__: string[];
|
|
2757
|
-
static _nape:
|
|
2758
|
-
static _zpp:
|
|
2765
|
+
static _nape: any;
|
|
2766
|
+
static _zpp: any;
|
|
2759
2767
|
static internal: boolean;
|
|
2760
2768
|
static _createColArb: (() => any) | null;
|
|
2761
2769
|
static _createFluidArb: (() => any) | null;
|
|
2762
2770
|
static COL: number;
|
|
2763
2771
|
static FLUID: number;
|
|
2764
2772
|
static SENSOR: number;
|
|
2765
|
-
static types:
|
|
2773
|
+
static types: any[];
|
|
2766
2774
|
/**
|
|
2767
2775
|
* Initialize ArbiterType singleton enums. Called once from compiled factory.
|
|
2768
2776
|
*/
|
|
2769
|
-
static _initEnums(nape:
|
|
2770
|
-
outer:
|
|
2777
|
+
static _initEnums(nape: any, ZPP_Flags: any): void;
|
|
2778
|
+
outer: any;
|
|
2771
2779
|
hnext: ZPP_Arbiter | null;
|
|
2772
2780
|
id: number;
|
|
2773
2781
|
di: number;
|
|
@@ -2785,28 +2793,27 @@ declare class ZPP_Arbiter {
|
|
|
2785
2793
|
fresh: boolean;
|
|
2786
2794
|
immState: number;
|
|
2787
2795
|
invalidated: boolean;
|
|
2788
|
-
b1:
|
|
2789
|
-
b2:
|
|
2790
|
-
ws1:
|
|
2791
|
-
ws2:
|
|
2792
|
-
pair:
|
|
2796
|
+
b1: any;
|
|
2797
|
+
b2: any;
|
|
2798
|
+
ws1: any;
|
|
2799
|
+
ws2: any;
|
|
2800
|
+
pair: any;
|
|
2793
2801
|
type: number;
|
|
2794
|
-
colarb:
|
|
2795
|
-
fluidarb:
|
|
2796
|
-
sensorarb:
|
|
2797
|
-
__class__: Any$e;
|
|
2802
|
+
colarb: any;
|
|
2803
|
+
fluidarb: any;
|
|
2804
|
+
sensorarb: any;
|
|
2798
2805
|
constructor();
|
|
2799
|
-
wrapper():
|
|
2806
|
+
wrapper(): any;
|
|
2800
2807
|
inactiveme(): boolean;
|
|
2801
2808
|
acting(): boolean;
|
|
2802
2809
|
swap_features(): void;
|
|
2803
|
-
lazyRetire(s:
|
|
2804
|
-
sup_assign(s1:
|
|
2810
|
+
lazyRetire(s: any, b: any): void;
|
|
2811
|
+
sup_assign(s1: any, s2: any, id: number, di: number): void;
|
|
2805
2812
|
sup_retire(): void;
|
|
2806
2813
|
/** Remove this arbiter from a ZNPList_ZPP_Arbiter */
|
|
2807
|
-
static _removeFromArbiterList(list:
|
|
2814
|
+
static _removeFromArbiterList(list: any, arb: ZPP_Arbiter, zpp: any): void;
|
|
2808
2815
|
/** Add this arbiter to a ZNPList_ZPP_Arbiter */
|
|
2809
|
-
static _addToArbiterList(list:
|
|
2816
|
+
static _addToArbiterList(list: any, arb: ZPP_Arbiter, zpp: any): void;
|
|
2810
2817
|
}
|
|
2811
2818
|
|
|
2812
2819
|
/**
|
|
@@ -2838,37 +2845,37 @@ declare class ArbiterType {
|
|
|
2838
2845
|
*
|
|
2839
2846
|
* Converted from nape-compiled.js lines 41828–42175.
|
|
2840
2847
|
*/
|
|
2841
|
-
type Any$
|
|
2848
|
+
type Any$c = any;
|
|
2842
2849
|
declare class ZPP_Edge {
|
|
2843
2850
|
static __name__: string[];
|
|
2844
2851
|
static zpp_pool: ZPP_Edge | null;
|
|
2845
2852
|
static internal: boolean;
|
|
2846
|
-
static _nape: Any$
|
|
2847
|
-
static _zpp: Any$
|
|
2848
|
-
static _wrapFn: ((zpp: ZPP_Edge) => Any$
|
|
2853
|
+
static _nape: Any$c;
|
|
2854
|
+
static _zpp: Any$c;
|
|
2855
|
+
static _wrapFn: ((zpp: ZPP_Edge) => Any$c) | null;
|
|
2849
2856
|
next: ZPP_Edge | null;
|
|
2850
|
-
polygon: Any$
|
|
2851
|
-
outer: Any$
|
|
2857
|
+
polygon: Any$c;
|
|
2858
|
+
outer: Any$c;
|
|
2852
2859
|
lnormx: number;
|
|
2853
2860
|
lnormy: number;
|
|
2854
|
-
wrap_lnorm: Any$
|
|
2861
|
+
wrap_lnorm: Any$c;
|
|
2855
2862
|
gnormx: number;
|
|
2856
2863
|
gnormy: number;
|
|
2857
|
-
wrap_gnorm: Any$
|
|
2864
|
+
wrap_gnorm: Any$c;
|
|
2858
2865
|
length: number;
|
|
2859
2866
|
lprojection: number;
|
|
2860
2867
|
gprojection: number;
|
|
2861
|
-
lp0: Any$
|
|
2862
|
-
gp0: Any$
|
|
2863
|
-
lp1: Any$
|
|
2864
|
-
gp1: Any$
|
|
2868
|
+
lp0: Any$c;
|
|
2869
|
+
gp0: Any$c;
|
|
2870
|
+
lp1: Any$c;
|
|
2871
|
+
gp1: Any$c;
|
|
2865
2872
|
tp0: number;
|
|
2866
2873
|
tp1: number;
|
|
2867
|
-
__class__: Any$
|
|
2874
|
+
__class__: Any$c;
|
|
2868
2875
|
constructor();
|
|
2869
2876
|
free(): void;
|
|
2870
2877
|
alloc(): void;
|
|
2871
|
-
wrapper(): Any$
|
|
2878
|
+
wrapper(): Any$c;
|
|
2872
2879
|
lnorm_validate(): void;
|
|
2873
2880
|
gnorm_validate(): void;
|
|
2874
2881
|
getlnorm(): void;
|
|
@@ -2883,20 +2890,20 @@ declare class ZPP_Edge {
|
|
|
2883
2890
|
*
|
|
2884
2891
|
* Converted from nape-compiled.js lines 42176–43786.
|
|
2885
2892
|
*/
|
|
2886
|
-
type Any$
|
|
2893
|
+
type Any$b = any;
|
|
2887
2894
|
declare class ZPP_Polygon {
|
|
2888
2895
|
static __name__: string[];
|
|
2889
|
-
static __super__: Any$
|
|
2890
|
-
static _nape: Any$
|
|
2891
|
-
static _zpp: Any$
|
|
2896
|
+
static __super__: Any$b;
|
|
2897
|
+
static _nape: Any$b;
|
|
2898
|
+
static _zpp: Any$b;
|
|
2892
2899
|
static _initialized: boolean;
|
|
2893
|
-
outer_zn: Any$
|
|
2894
|
-
lverts: Any$
|
|
2895
|
-
wrap_lverts: Any$
|
|
2896
|
-
gverts: Any$
|
|
2897
|
-
wrap_gverts: Any$
|
|
2898
|
-
edges: Any$
|
|
2899
|
-
wrap_edges: Any$
|
|
2900
|
+
outer_zn: Any$b;
|
|
2901
|
+
lverts: Any$b;
|
|
2902
|
+
wrap_lverts: Any$b;
|
|
2903
|
+
gverts: Any$b;
|
|
2904
|
+
wrap_gverts: Any$b;
|
|
2905
|
+
edges: Any$b;
|
|
2906
|
+
wrap_edges: Any$b;
|
|
2900
2907
|
edgeCnt: number;
|
|
2901
2908
|
reverse_flag: boolean;
|
|
2902
2909
|
zip_lverts: boolean;
|
|
@@ -2905,13 +2912,13 @@ declare class ZPP_Polygon {
|
|
|
2905
2912
|
zip_gaxi: boolean;
|
|
2906
2913
|
zip_valid: boolean;
|
|
2907
2914
|
zip_sanitation: boolean;
|
|
2908
|
-
validation: Any$
|
|
2909
|
-
__class__: Any$
|
|
2910
|
-
body: Any$
|
|
2915
|
+
validation: Any$b;
|
|
2916
|
+
__class__: Any$b;
|
|
2917
|
+
body: Any$b;
|
|
2911
2918
|
type: number;
|
|
2912
|
-
circle: Any$
|
|
2913
|
-
polygon: Any$
|
|
2914
|
-
aabb: Any$
|
|
2919
|
+
circle: Any$b;
|
|
2920
|
+
polygon: Any$b;
|
|
2921
|
+
aabb: Any$b;
|
|
2915
2922
|
localCOMx: number;
|
|
2916
2923
|
localCOMy: number;
|
|
2917
2924
|
worldCOMx: number;
|
|
@@ -2927,11 +2934,11 @@ declare class ZPP_Polygon {
|
|
|
2927
2934
|
angDrag: number;
|
|
2928
2935
|
sweepCoef: number;
|
|
2929
2936
|
sweepRadius: number;
|
|
2930
|
-
material: Any$
|
|
2931
|
-
filter: Any$
|
|
2932
|
-
wrap_localCOM: Any$
|
|
2933
|
-
outer: Any$
|
|
2934
|
-
outer_i: Any$
|
|
2937
|
+
material: Any$b;
|
|
2938
|
+
filter: Any$b;
|
|
2939
|
+
wrap_localCOM: Any$b;
|
|
2940
|
+
outer: Any$b;
|
|
2941
|
+
outer_i: Any$b;
|
|
2935
2942
|
invalidate_area_inertia: () => void;
|
|
2936
2943
|
invalidate_angDrag: () => void;
|
|
2937
2944
|
invalidate_localCOM: () => void;
|
|
@@ -2940,18 +2947,18 @@ declare class ZPP_Polygon {
|
|
|
2940
2947
|
validate_localCOM: () => void;
|
|
2941
2948
|
immutable_midstep: (name: string) => void;
|
|
2942
2949
|
wake: () => void;
|
|
2943
|
-
setMaterial: (m: Any$
|
|
2944
|
-
setFilter: (f: Any$
|
|
2945
|
-
insert_cbtype: (cb: Any$
|
|
2950
|
+
setMaterial: (m: Any$b) => void;
|
|
2951
|
+
setFilter: (f: Any$b) => void;
|
|
2952
|
+
insert_cbtype: (cb: Any$b) => void;
|
|
2946
2953
|
constructor();
|
|
2947
2954
|
static _init(): void;
|
|
2948
2955
|
__clear(): void;
|
|
2949
|
-
lverts_pa_invalidate(_x: Any$
|
|
2956
|
+
lverts_pa_invalidate(_x: Any$b): void;
|
|
2950
2957
|
lverts_pa_immutable(): void;
|
|
2951
2958
|
gverts_pa_validate(): void;
|
|
2952
|
-
lverts_post_adder(x: Any$
|
|
2953
|
-
lverts_subber(x: Any$
|
|
2954
|
-
lverts_invalidate(_: Any$
|
|
2959
|
+
lverts_post_adder(x: Any$b): void;
|
|
2960
|
+
lverts_subber(x: Any$b): void;
|
|
2961
|
+
lverts_invalidate(_: Any$b): void;
|
|
2955
2962
|
lverts_validate(): void;
|
|
2956
2963
|
lverts_modifiable(): void;
|
|
2957
2964
|
gverts_validate(): void;
|
|
@@ -2969,11 +2976,11 @@ declare class ZPP_Polygon {
|
|
|
2969
2976
|
validate_gaxi(): void;
|
|
2970
2977
|
/** Internal helper: recompute world vertex positions from local verts + body transform */
|
|
2971
2978
|
private _validateGverts;
|
|
2972
|
-
cleanup_lvert(x: Any$
|
|
2979
|
+
cleanup_lvert(x: Any$b): void;
|
|
2973
2980
|
splice_collinear(): void;
|
|
2974
2981
|
splice_collinear_real(): void;
|
|
2975
2982
|
reverse_vertices(): void;
|
|
2976
|
-
valid(): Any$
|
|
2983
|
+
valid(): Any$b;
|
|
2977
2984
|
/** Helper: check if two edges (u1→v1) and (a→b) do NOT intersect */
|
|
2978
2985
|
private _checkNoIntersection;
|
|
2979
2986
|
__validate_aabb(): void;
|
|
@@ -2983,13 +2990,13 @@ declare class ZPP_Polygon {
|
|
|
2983
2990
|
__validate_angDrag(): void;
|
|
2984
2991
|
__validate_localCOM(): void;
|
|
2985
2992
|
localCOM_validate(): void;
|
|
2986
|
-
localCOM_invalidate(x: Any$
|
|
2993
|
+
localCOM_invalidate(x: Any$b): void;
|
|
2987
2994
|
setupLocalCOM(): void;
|
|
2988
2995
|
__translate(dx: number, dy: number): void;
|
|
2989
2996
|
__scale(sx: number, sy: number): void;
|
|
2990
2997
|
__rotate(ax: number, ay: number): void;
|
|
2991
|
-
__transform(mat: Any$
|
|
2992
|
-
__copy(): Any$
|
|
2998
|
+
__transform(mat: Any$b): void;
|
|
2999
|
+
__copy(): Any$b;
|
|
2993
3000
|
}
|
|
2994
3001
|
|
|
2995
3002
|
/**
|
|
@@ -3257,25 +3264,23 @@ declare class Contact {
|
|
|
3257
3264
|
*
|
|
3258
3265
|
* Converted from nape-compiled.js lines 38897–39076, 86860–86862.
|
|
3259
3266
|
*/
|
|
3260
|
-
type Any$b = any;
|
|
3261
3267
|
declare class ZPP_ConvexRayResult {
|
|
3262
3268
|
static __name__: string[];
|
|
3263
3269
|
static rayPool: ZPP_ConvexRayResult | null;
|
|
3264
3270
|
static convexPool: ZPP_ConvexRayResult | null;
|
|
3265
3271
|
static internal: boolean;
|
|
3266
|
-
static _createRayResult: (() =>
|
|
3267
|
-
static _createConvexResult: (() =>
|
|
3268
|
-
normal:
|
|
3269
|
-
shape:
|
|
3270
|
-
convex:
|
|
3271
|
-
position:
|
|
3272
|
-
ray:
|
|
3272
|
+
static _createRayResult: (() => any) | null;
|
|
3273
|
+
static _createConvexResult: (() => any) | null;
|
|
3274
|
+
normal: any;
|
|
3275
|
+
shape: any;
|
|
3276
|
+
convex: any;
|
|
3277
|
+
position: any;
|
|
3278
|
+
ray: any;
|
|
3273
3279
|
inner: boolean;
|
|
3274
3280
|
next: ZPP_ConvexRayResult | null;
|
|
3275
3281
|
toiDistance: number;
|
|
3276
|
-
|
|
3277
|
-
static
|
|
3278
|
-
static getConvex(normal: Any$b, position: Any$b, toiDistance: number, shape: Any$b): Any$b;
|
|
3282
|
+
static getRay(normal: any, time: number, inner: boolean, shape: any): any;
|
|
3283
|
+
static getConvex(normal: any, position: any, toiDistance: number, shape: any): any;
|
|
3279
3284
|
disposed(): void;
|
|
3280
3285
|
free(): void;
|
|
3281
3286
|
private static _disposeVec2;
|