@newkrok/nape-js 3.3.6 → 3.3.8
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.cjs +15462 -21808
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +202 -83
- package/dist/index.d.ts +202 -83
- package/dist/index.js +15460 -21808
- package/dist/index.js.map +1 -1
- package/package.json +3 -4
package/dist/index.d.cts
CHANGED
|
@@ -25,13 +25,13 @@ declare function getNape(): any;
|
|
|
25
25
|
*
|
|
26
26
|
* Converted from nape-compiled.js lines 83820–84273, 134996.
|
|
27
27
|
*/
|
|
28
|
-
type Any$
|
|
28
|
+
type Any$o = any;
|
|
29
29
|
declare class ZPP_Vec2 {
|
|
30
30
|
static zpp_pool: ZPP_Vec2 | null;
|
|
31
31
|
static __name__: string[];
|
|
32
|
-
static _nape: Any$
|
|
33
|
-
static _zpp: Any$
|
|
34
|
-
static _wrapFn: ((zpp: ZPP_Vec2) => Any$
|
|
32
|
+
static _nape: Any$o;
|
|
33
|
+
static _zpp: Any$o;
|
|
34
|
+
static _wrapFn: ((zpp: ZPP_Vec2) => Any$o) | 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$
|
|
43
|
+
outer: Any$o;
|
|
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$
|
|
48
|
+
__class__: Any$o;
|
|
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$
|
|
54
|
+
wrapper(): Any$o;
|
|
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$
|
|
206
|
+
type Any$n = any;
|
|
207
207
|
declare class ZPP_Vec3 {
|
|
208
208
|
static __name__: string[];
|
|
209
|
-
static _zpp: Any$
|
|
210
|
-
static _wrapFn: ((zpp: ZPP_Vec3) => Any$
|
|
211
|
-
outer: Any$
|
|
209
|
+
static _zpp: Any$n;
|
|
210
|
+
static _wrapFn: ((zpp: ZPP_Vec3) => Any$n) | null;
|
|
211
|
+
outer: Any$n;
|
|
212
212
|
x: number;
|
|
213
213
|
y: number;
|
|
214
214
|
z: number;
|
|
215
215
|
immutable: boolean;
|
|
216
216
|
_validate: (() => void) | null;
|
|
217
|
-
__class__: Any$
|
|
217
|
+
__class__: Any$n;
|
|
218
218
|
validate(): void;
|
|
219
|
-
wrapper(): Any$
|
|
219
|
+
wrapper(): Any$n;
|
|
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$
|
|
283
|
+
type Any$m = any;
|
|
284
284
|
declare class ZPP_Mat23 {
|
|
285
285
|
static __name__: string[];
|
|
286
|
-
static _nape: Any$
|
|
287
|
-
static _wrapFn: ((zpp: ZPP_Mat23) => Any$
|
|
286
|
+
static _nape: Any$m;
|
|
287
|
+
static _wrapFn: ((zpp: ZPP_Mat23) => Any$m) | null;
|
|
288
288
|
static zpp_pool: ZPP_Mat23 | null;
|
|
289
|
-
outer: Any$
|
|
289
|
+
outer: Any$m;
|
|
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$
|
|
298
|
+
__class__: Any$m;
|
|
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$
|
|
304
|
+
wrapper(): Any$m;
|
|
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$
|
|
365
|
+
type Any$l = any;
|
|
366
366
|
declare class ZPP_GeomPoly {
|
|
367
367
|
static __name__: string[];
|
|
368
|
-
outer: Any$
|
|
369
|
-
vertices: Any$
|
|
370
|
-
__class__: Any$
|
|
371
|
-
constructor(outer?: Any$
|
|
368
|
+
outer: Any$l;
|
|
369
|
+
vertices: Any$l;
|
|
370
|
+
__class__: Any$l;
|
|
371
|
+
constructor(outer?: Any$l);
|
|
372
372
|
}
|
|
373
373
|
|
|
374
374
|
/**
|
|
@@ -392,7 +392,7 @@ declare class Winding {
|
|
|
392
392
|
toString(): string;
|
|
393
393
|
}
|
|
394
394
|
|
|
395
|
-
type Any$
|
|
395
|
+
type Any$k = 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$
|
|
411
|
-
constructor(vertices?: Any$
|
|
410
|
+
get _inner(): Any$k;
|
|
411
|
+
constructor(vertices?: Any$k);
|
|
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$
|
|
437
|
+
static get(vertices?: Any$k): GeomPoly;
|
|
438
438
|
empty(): boolean;
|
|
439
439
|
size(): number;
|
|
440
|
-
iterator(): Any$
|
|
441
|
-
forwardIterator(): Any$
|
|
442
|
-
backwardsIterator(): Any$
|
|
440
|
+
iterator(): Any$k;
|
|
441
|
+
forwardIterator(): Any$k;
|
|
442
|
+
backwardsIterator(): Any$k;
|
|
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$
|
|
455
|
+
winding(): Any$k;
|
|
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$
|
|
464
|
-
monotoneDecomposition(output?: Any$
|
|
465
|
-
convexDecomposition(delaunay?: boolean, output?: Any$
|
|
466
|
-
triangularDecomposition(delaunay?: boolean, output?: Any$
|
|
463
|
+
simpleDecomposition(output?: Any$k): Any$k;
|
|
464
|
+
monotoneDecomposition(output?: Any$k): Any$k;
|
|
465
|
+
convexDecomposition(delaunay?: boolean, output?: Any$k): Any$k;
|
|
466
|
+
triangularDecomposition(delaunay?: boolean, output?: Any$k): Any$k;
|
|
467
467
|
inflate(inflation: number): GeomPoly;
|
|
468
|
-
cut(start: Vec2, end: Vec2, boundedStart?: boolean, boundedEnd?: boolean, output?: Any$
|
|
469
|
-
transform(matrix: Any$
|
|
470
|
-
bounds(): Any$
|
|
468
|
+
cut(start: Vec2, end: Vec2, boundedStart?: boolean, boundedEnd?: boolean, output?: Any$k): Any$k;
|
|
469
|
+
transform(matrix: Any$k): this;
|
|
470
|
+
bounds(): Any$k;
|
|
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$
|
|
486
|
+
type Any$j = any;
|
|
487
487
|
declare class ZPP_AABB {
|
|
488
488
|
static zpp_pool: ZPP_AABB | null;
|
|
489
489
|
static __name__: string[];
|
|
490
|
-
static _nape: Any$
|
|
491
|
-
static _zpp: Any$
|
|
492
|
-
static _wrapFn: ((zpp: ZPP_AABB) => Any$
|
|
490
|
+
static _nape: Any$j;
|
|
491
|
+
static _zpp: Any$j;
|
|
492
|
+
static _wrapFn: ((zpp: ZPP_AABB) => Any$j) | null;
|
|
493
493
|
_invalidate: ((self: ZPP_AABB) => void) | null;
|
|
494
494
|
_validate: (() => void) | null;
|
|
495
495
|
_immutable: boolean;
|
|
496
|
-
outer: Any$
|
|
496
|
+
outer: Any$j;
|
|
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$
|
|
503
|
-
wrap_max: Any$
|
|
504
|
-
__class__: Any$
|
|
502
|
+
wrap_min: Any$j;
|
|
503
|
+
wrap_max: Any$j;
|
|
504
|
+
__class__: Any$j;
|
|
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$
|
|
509
|
+
wrapper(): Any$j;
|
|
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$
|
|
520
|
+
mod_min(min: Any$j): void;
|
|
521
521
|
getmax(): void;
|
|
522
522
|
dom_max(): void;
|
|
523
|
-
mod_max(max: Any$
|
|
523
|
+
mod_max(max: Any$j): 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$
|
|
587
|
+
type Any$i = any;
|
|
588
588
|
declare class ZPP_MatMN {
|
|
589
589
|
static __name__: string[];
|
|
590
|
-
outer: Any$
|
|
590
|
+
outer: Any$i;
|
|
591
591
|
m: number;
|
|
592
592
|
n: number;
|
|
593
593
|
x: number[];
|
|
594
|
-
__class__: Any$
|
|
594
|
+
__class__: Any$i;
|
|
595
595
|
constructor(m: number, n: number);
|
|
596
596
|
}
|
|
597
597
|
|
|
598
|
-
type Any$
|
|
598
|
+
type Any$h = 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$
|
|
609
|
+
static _wrap(inner: Any$h): 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$
|
|
619
|
+
type Any$g = 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$
|
|
642
|
+
static run(iso: (x: number, y: number) => number, bounds: AABB, cellsize: Vec2, quality?: number, subgrid?: Vec2 | null, combine?: boolean, output?: Any$g): Any$g;
|
|
643
643
|
}
|
|
644
644
|
|
|
645
645
|
/**
|
|
@@ -667,6 +667,56 @@ declare class Ray {
|
|
|
667
667
|
copy(): Ray;
|
|
668
668
|
}
|
|
669
669
|
|
|
670
|
+
type Any$f = any;
|
|
671
|
+
/**
|
|
672
|
+
* Result from a convex-cast query.
|
|
673
|
+
*
|
|
674
|
+
* Thin wrapper — delegates to compiled ZPP_ConvexRayResult (not yet extracted).
|
|
675
|
+
*/
|
|
676
|
+
declare class ConvexResult {
|
|
677
|
+
static __name__: string[];
|
|
678
|
+
/** @internal */
|
|
679
|
+
zpp_inner: Any$f;
|
|
680
|
+
/** @internal Backward-compat: compiled code accesses `obj.zpp_inner`. */
|
|
681
|
+
get _inner(): NapeInner;
|
|
682
|
+
constructor();
|
|
683
|
+
/** @internal */
|
|
684
|
+
static _wrap(inner: Any$f): ConvexResult;
|
|
685
|
+
get normal(): Vec2;
|
|
686
|
+
get position(): Vec2;
|
|
687
|
+
get toi(): number;
|
|
688
|
+
get shape(): Any$f;
|
|
689
|
+
dispose(): void;
|
|
690
|
+
toString(): string;
|
|
691
|
+
/** @internal */
|
|
692
|
+
private _disposed;
|
|
693
|
+
}
|
|
694
|
+
|
|
695
|
+
type Any$e = any;
|
|
696
|
+
/**
|
|
697
|
+
* Result from a raycast query.
|
|
698
|
+
*
|
|
699
|
+
* Thin wrapper — delegates to compiled ZPP_ConvexRayResult (not yet extracted).
|
|
700
|
+
*/
|
|
701
|
+
declare class RayResult {
|
|
702
|
+
static __name__: string[];
|
|
703
|
+
/** @internal */
|
|
704
|
+
zpp_inner: Any$e;
|
|
705
|
+
/** @internal Backward-compat: compiled code accesses `obj.zpp_inner`. */
|
|
706
|
+
get _inner(): NapeInner;
|
|
707
|
+
constructor();
|
|
708
|
+
/** @internal */
|
|
709
|
+
static _wrap(inner: Any$e): RayResult;
|
|
710
|
+
get normal(): Vec2;
|
|
711
|
+
get distance(): number;
|
|
712
|
+
get inner(): boolean;
|
|
713
|
+
get shape(): Any$e;
|
|
714
|
+
dispose(): void;
|
|
715
|
+
toString(): string;
|
|
716
|
+
/** @internal */
|
|
717
|
+
private _disposed;
|
|
718
|
+
}
|
|
719
|
+
|
|
670
720
|
/**
|
|
671
721
|
* Generic typed wrapper around Haxe list objects (BodyList, ShapeList, etc.).
|
|
672
722
|
*
|
|
@@ -993,9 +1043,22 @@ declare class InteractionFilter {
|
|
|
993
1043
|
toString(): string;
|
|
994
1044
|
}
|
|
995
1045
|
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
1046
|
+
/**
|
|
1047
|
+
* Shape type classification.
|
|
1048
|
+
*
|
|
1049
|
+
* - `CIRCLE` — circle shape
|
|
1050
|
+
* - `POLYGON` — polygon shape
|
|
1051
|
+
*
|
|
1052
|
+
* Converted from nape-compiled.js lines 30435–30482.
|
|
1053
|
+
*/
|
|
1054
|
+
declare class ShapeType {
|
|
1055
|
+
static __name__: string[];
|
|
1056
|
+
constructor();
|
|
1057
|
+
static get CIRCLE(): ShapeType;
|
|
1058
|
+
static get POLYGON(): ShapeType;
|
|
1059
|
+
static get_CIRCLE(): ShapeType;
|
|
1060
|
+
static get_POLYGON(): ShapeType;
|
|
1061
|
+
toString(): string;
|
|
999
1062
|
}
|
|
1000
1063
|
|
|
1001
1064
|
/**
|
|
@@ -1186,11 +1249,19 @@ type InteractionFilterLike = {
|
|
|
1186
1249
|
* - `STATIC` — immovable, infinite mass (walls, floors)
|
|
1187
1250
|
* - `DYNAMIC` — fully simulated (default)
|
|
1188
1251
|
* - `KINEMATIC` — moves only via velocity, not affected by forces
|
|
1252
|
+
*
|
|
1253
|
+
* Converted from nape-compiled.js lines 24640–24705.
|
|
1189
1254
|
*/
|
|
1190
|
-
declare
|
|
1191
|
-
|
|
1192
|
-
|
|
1193
|
-
|
|
1255
|
+
declare class BodyType {
|
|
1256
|
+
static __name__: string[];
|
|
1257
|
+
constructor();
|
|
1258
|
+
static get STATIC(): BodyType;
|
|
1259
|
+
static get DYNAMIC(): BodyType;
|
|
1260
|
+
static get KINEMATIC(): BodyType;
|
|
1261
|
+
static get_STATIC(): BodyType;
|
|
1262
|
+
static get_DYNAMIC(): BodyType;
|
|
1263
|
+
static get_KINEMATIC(): BodyType;
|
|
1264
|
+
toString(): string;
|
|
1194
1265
|
}
|
|
1195
1266
|
|
|
1196
1267
|
/**
|
|
@@ -1503,15 +1574,35 @@ declare class ArbiterType {
|
|
|
1503
1574
|
|
|
1504
1575
|
/**
|
|
1505
1576
|
* Callback event types.
|
|
1577
|
+
*
|
|
1578
|
+
* - `BEGIN` — interaction just started
|
|
1579
|
+
* - `ONGOING` — interaction continues
|
|
1580
|
+
* - `END` — interaction just ended
|
|
1581
|
+
* - `WAKE` — body/constraint woke up
|
|
1582
|
+
* - `SLEEP` — body/constraint went to sleep
|
|
1583
|
+
* - `BREAK` — constraint was broken
|
|
1584
|
+
* - `PRE` — pre-interaction callback
|
|
1585
|
+
*
|
|
1586
|
+
* Converted from nape-compiled.js lines 516–657.
|
|
1506
1587
|
*/
|
|
1507
|
-
declare
|
|
1508
|
-
|
|
1509
|
-
|
|
1510
|
-
|
|
1511
|
-
|
|
1512
|
-
|
|
1513
|
-
|
|
1514
|
-
|
|
1588
|
+
declare class CbEvent {
|
|
1589
|
+
static __name__: string[];
|
|
1590
|
+
constructor();
|
|
1591
|
+
static get BEGIN(): CbEvent;
|
|
1592
|
+
static get ONGOING(): CbEvent;
|
|
1593
|
+
static get END(): CbEvent;
|
|
1594
|
+
static get WAKE(): CbEvent;
|
|
1595
|
+
static get SLEEP(): CbEvent;
|
|
1596
|
+
static get BREAK(): CbEvent;
|
|
1597
|
+
static get PRE(): CbEvent;
|
|
1598
|
+
static get_BEGIN(): CbEvent;
|
|
1599
|
+
static get_ONGOING(): CbEvent;
|
|
1600
|
+
static get_END(): CbEvent;
|
|
1601
|
+
static get_WAKE(): CbEvent;
|
|
1602
|
+
static get_SLEEP(): CbEvent;
|
|
1603
|
+
static get_BREAK(): CbEvent;
|
|
1604
|
+
static get_PRE(): CbEvent;
|
|
1605
|
+
toString(): string;
|
|
1515
1606
|
}
|
|
1516
1607
|
|
|
1517
1608
|
/**
|
|
@@ -1589,22 +1680,50 @@ declare class CbType {
|
|
|
1589
1680
|
|
|
1590
1681
|
/**
|
|
1591
1682
|
* Interaction type filter for interaction listeners.
|
|
1683
|
+
*
|
|
1684
|
+
* - `COLLISION` — collision interactions only
|
|
1685
|
+
* - `SENSOR` — sensor interactions only
|
|
1686
|
+
* - `FLUID` — fluid interactions only
|
|
1687
|
+
* - `ANY` — any interaction type
|
|
1688
|
+
*
|
|
1689
|
+
* Converted from nape-compiled.js lines 1785–1883.
|
|
1592
1690
|
*/
|
|
1593
|
-
declare
|
|
1594
|
-
|
|
1595
|
-
|
|
1596
|
-
|
|
1597
|
-
|
|
1691
|
+
declare class InteractionType {
|
|
1692
|
+
static __name__: string[];
|
|
1693
|
+
constructor();
|
|
1694
|
+
static get COLLISION(): InteractionType;
|
|
1695
|
+
static get SENSOR(): InteractionType;
|
|
1696
|
+
static get FLUID(): InteractionType;
|
|
1697
|
+
static get ANY(): InteractionType;
|
|
1698
|
+
static get_COLLISION(): InteractionType;
|
|
1699
|
+
static get_SENSOR(): InteractionType;
|
|
1700
|
+
static get_FLUID(): InteractionType;
|
|
1701
|
+
static get_ANY(): InteractionType;
|
|
1702
|
+
toString(): string;
|
|
1598
1703
|
}
|
|
1599
1704
|
|
|
1600
1705
|
/**
|
|
1601
1706
|
* Return value flags for PreListener handlers.
|
|
1707
|
+
*
|
|
1708
|
+
* - `ACCEPT` — accept the interaction
|
|
1709
|
+
* - `IGNORE` — ignore the interaction
|
|
1710
|
+
* - `ACCEPT_ONCE` — accept once, then revert
|
|
1711
|
+
* - `IGNORE_ONCE` — ignore once, then revert
|
|
1712
|
+
*
|
|
1713
|
+
* Converted from nape-compiled.js lines 2504–2591.
|
|
1602
1714
|
*/
|
|
1603
|
-
declare
|
|
1604
|
-
|
|
1605
|
-
|
|
1606
|
-
|
|
1607
|
-
|
|
1715
|
+
declare class PreFlag {
|
|
1716
|
+
static __name__: string[];
|
|
1717
|
+
constructor();
|
|
1718
|
+
static get ACCEPT(): PreFlag;
|
|
1719
|
+
static get IGNORE(): PreFlag;
|
|
1720
|
+
static get ACCEPT_ONCE(): PreFlag;
|
|
1721
|
+
static get IGNORE_ONCE(): PreFlag;
|
|
1722
|
+
static get_ACCEPT(): PreFlag;
|
|
1723
|
+
static get_IGNORE(): PreFlag;
|
|
1724
|
+
static get_ACCEPT_ONCE(): PreFlag;
|
|
1725
|
+
static get_IGNORE_ONCE(): PreFlag;
|
|
1726
|
+
toString(): string;
|
|
1608
1727
|
}
|
|
1609
1728
|
|
|
1610
1729
|
/**
|
|
@@ -2025,4 +2144,4 @@ declare class PulleyJoint extends Constraint {
|
|
|
2025
2144
|
set ratio(value: number);
|
|
2026
2145
|
}
|
|
2027
2146
|
|
|
2028
|
-
export { AABB, AngleJoint, ArbiterType, Body, BodyCallback, BodyListener, BodyType, Broadphase, Callback, CbEvent, CbType, Circle, Constraint, ConstraintCallback, ConstraintListener, DistanceJoint, FluidProperties, GeomPoly, GravMassMode, InertiaMode, InteractionCallback, InteractionFilter, InteractionGroup, InteractionListener, InteractionType, LineJoint, Listener, ListenerType, MarchingSquares, MassMode, Mat23, MatMN, Material, MotorJoint, NapeList, OptionType, PivotJoint, Polygon, PreCallback, PreFlag, PreListener, PulleyJoint, Ray, Shape, ShapeType, Space, ValidationResult, Vec2, Vec3, WeldJoint, Winding, getNape };
|
|
2147
|
+
export { AABB, AngleJoint, ArbiterType, Body, BodyCallback, BodyListener, BodyType, Broadphase, Callback, CbEvent, CbType, Circle, Constraint, ConstraintCallback, ConstraintListener, ConvexResult, DistanceJoint, FluidProperties, GeomPoly, GravMassMode, InertiaMode, InteractionCallback, InteractionFilter, InteractionGroup, InteractionListener, InteractionType, LineJoint, Listener, ListenerType, MarchingSquares, MassMode, Mat23, MatMN, Material, MotorJoint, NapeList, OptionType, PivotJoint, Polygon, PreCallback, PreFlag, PreListener, PulleyJoint, Ray, RayResult, Shape, ShapeType, Space, ValidationResult, Vec2, Vec3, WeldJoint, Winding, getNape };
|