@newkrok/nape-js 3.3.12 → 3.3.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.cts CHANGED
@@ -1043,6 +1043,114 @@ declare class InteractionFilter {
1043
1043
  toString(): string;
1044
1044
  }
1045
1045
 
1046
+ /**
1047
+ * ZPP_InteractionGroup — Internal interaction group for the nape physics engine.
1048
+ *
1049
+ * Hierarchical groups that can override interaction filters. When two shapes
1050
+ * share a common group with `ignore = true`, their interaction is suppressed.
1051
+ *
1052
+ * Converted from nape-compiled.js lines 63367–63463, 135330–135331.
1053
+ */
1054
+ type Any$j = any;
1055
+ declare class ZPP_InteractionGroup {
1056
+ static SHAPE: number;
1057
+ static BODY: number;
1058
+ static __name__: string[];
1059
+ static _zpp: Any$j;
1060
+ static _wrapFn: ((zpp: ZPP_InteractionGroup) => Any$j) | null;
1061
+ outer: Any$j;
1062
+ ignore: boolean;
1063
+ group: ZPP_InteractionGroup | null;
1064
+ groups: Any$j;
1065
+ wrap_groups: Any$j;
1066
+ interactors: Any$j;
1067
+ wrap_interactors: Any$j;
1068
+ depth: number;
1069
+ __class__: Any$j;
1070
+ constructor();
1071
+ /** Set or change the parent group. */
1072
+ setGroup(group: ZPP_InteractionGroup | null): void;
1073
+ /** Wake all interactors and propagate to child groups. */
1074
+ invalidate(force?: boolean): void;
1075
+ /** Add a child group. */
1076
+ addGroup(group: ZPP_InteractionGroup): void;
1077
+ /** Remove a child group. */
1078
+ remGroup(group: ZPP_InteractionGroup): void;
1079
+ /** Register an interactor in this group. */
1080
+ addInteractor(intx: Any$j): void;
1081
+ /** Unregister an interactor from this group. */
1082
+ remInteractor(intx: Any$j, flag?: number): void;
1083
+ }
1084
+
1085
+ /**
1086
+ * Hierarchical interaction group for controlling interactions
1087
+ * between sets of interactors.
1088
+ *
1089
+ * Internally wraps a ZPP_InteractionGroup and is registered as
1090
+ * the public `nape.dynamics.InteractionGroup` class in the compiled namespace.
1091
+ *
1092
+ * Converted from nape-compiled.js lines 14641–14733.
1093
+ */
1094
+ declare class InteractionGroup {
1095
+ static __name__: string[];
1096
+ /** @internal The internal ZPP_InteractionGroup this wrapper owns. */
1097
+ zpp_inner: ZPP_InteractionGroup;
1098
+ /**
1099
+ * Backward-compatible accessor — returns `this` so that compiled engine
1100
+ * code that receives `group._inner` can still access `zpp_inner`.
1101
+ * @internal
1102
+ */
1103
+ get _inner(): NapeInner;
1104
+ constructor(ignore?: boolean);
1105
+ /** @internal Wrap a ZPP_InteractionGroup (or legacy compiled InteractionGroup) with caching. */
1106
+ static _wrap(inner: any): InteractionGroup;
1107
+ get group(): InteractionGroup | null;
1108
+ set group(value: InteractionGroup | null);
1109
+ get ignore(): boolean;
1110
+ set ignore(value: boolean);
1111
+ get interactors(): any;
1112
+ get groups(): any;
1113
+ toString(): string;
1114
+ }
1115
+
1116
+ /**
1117
+ * Base class for all interactable physics objects (Body, Shape, Compound).
1118
+ *
1119
+ * Cannot be instantiated directly — only via Body, Shape, or Compound.
1120
+ * Provides shared properties: id, userData, group, cbTypes, and type
1121
+ * casting methods (castBody, castShape, castCompound).
1122
+ */
1123
+ declare class Interactor {
1124
+ /** @internal */
1125
+ readonly _inner: NapeInner;
1126
+ /** @internal – only subclasses may construct. */
1127
+ protected constructor();
1128
+ /** @internal Wrap a compiled Interactor (Body/Shape/Compound) instance. */
1129
+ static _wrap(inner: NapeInner): Interactor;
1130
+ /** Unique numeric identifier for this interactor. */
1131
+ get id(): number;
1132
+ /** User-defined data storage object. */
1133
+ get userData(): Record<string, unknown>;
1134
+ /** The interaction group this interactor belongs to. */
1135
+ get group(): InteractionGroup | null;
1136
+ set group(value: InteractionGroup | null);
1137
+ /** Callback types assigned to this interactor. */
1138
+ get cbTypes(): NapeInner;
1139
+ /** Cast to Body — returns the Body wrapper if this is a Body, else null. */
1140
+ get castBody(): any;
1141
+ /** Cast to Shape — returns the Shape wrapper if this is a Shape, else null. */
1142
+ get castShape(): any;
1143
+ /** Cast to Compound — returns the Compound wrapper if this is a Compound, else null. */
1144
+ get castCompound(): any;
1145
+ /** Returns true if this interactor is a Shape. */
1146
+ isShape(): boolean;
1147
+ /** Returns true if this interactor is a Body. */
1148
+ isBody(): boolean;
1149
+ /** Returns true if this interactor is a Compound. */
1150
+ isCompound(): boolean;
1151
+ toString(): string;
1152
+ }
1153
+
1046
1154
  /**
1047
1155
  * Shape type classification.
1048
1156
  *
@@ -1064,9 +1172,7 @@ declare class ShapeType {
1064
1172
  /**
1065
1173
  * Base class for physics shapes (Circle, Polygon).
1066
1174
  */
1067
- declare class Shape {
1068
- /** @internal */
1069
- readonly _inner: NapeInner;
1175
+ declare class Shape extends Interactor {
1070
1176
  /** @internal – shapes are created via Circle or Polygon constructors. */
1071
1177
  protected constructor();
1072
1178
  /** @internal */
@@ -1180,24 +1286,24 @@ declare class Constraint {
1180
1286
  *
1181
1287
  * Converted from nape-compiled.js lines 27259–27304, 112053–112139.
1182
1288
  */
1183
- type Any$j = any;
1289
+ type Any$i = any;
1184
1290
  declare class ZPP_Listener {
1185
1291
  static __name__: string[];
1186
- static _nape: Any$j;
1187
- static _zpp: Any$j;
1292
+ static _nape: Any$i;
1293
+ static _zpp: Any$i;
1188
1294
  static internal: boolean;
1189
- static types: Any$j[];
1190
- static events: Any$j[];
1191
- space: Any$j;
1192
- interaction: Any$j;
1193
- constraint: Any$j;
1194
- body: Any$j;
1295
+ static types: Any$i[];
1296
+ static events: Any$i[];
1297
+ space: Any$i;
1298
+ interaction: Any$i;
1299
+ constraint: Any$i;
1300
+ body: Any$i;
1195
1301
  precedence: number;
1196
1302
  event: number;
1197
1303
  type: number;
1198
1304
  id: number;
1199
- outer: Any$j;
1200
- __class__: Any$j;
1305
+ outer: Any$i;
1306
+ __class__: Any$i;
1201
1307
  constructor();
1202
1308
  /** Sort comparator: higher precedence first, then by id descending. */
1203
1309
  static setlt(a: ZPP_Listener, b: ZPP_Listener): boolean;
@@ -1273,20 +1379,20 @@ declare class ListenerType {
1273
1379
  * Fully modernized from nape-compiled.js lines 231–433.
1274
1380
  */
1275
1381
 
1276
- type Any$i = any;
1382
+ type Any$h = any;
1277
1383
  declare class Listener {
1278
1384
  static __name__: string[];
1279
1385
  zpp_inner: ZPP_Listener;
1280
- get _inner(): Any$i;
1386
+ get _inner(): Any$h;
1281
1387
  constructor();
1282
- static _wrap(inner: Any$i): Listener;
1388
+ static _wrap(inner: Any$h): Listener;
1283
1389
  get type(): ListenerType;
1284
1390
  get event(): CbEvent;
1285
1391
  set event(event: CbEvent);
1286
1392
  get precedence(): number;
1287
1393
  set precedence(precedence: number);
1288
1394
  get space(): Space | null;
1289
- set space(space: Space | Any$i | null);
1395
+ set space(space: Space | Any$h | null);
1290
1396
  toString(): string;
1291
1397
  }
1292
1398
 
@@ -1366,9 +1472,7 @@ declare class BodyType {
1366
1472
  /**
1367
1473
  * A rigid body in the physics simulation.
1368
1474
  */
1369
- declare class Body {
1370
- /** @internal */
1371
- readonly _inner: NapeInner;
1475
+ declare class Body extends Interactor {
1372
1476
  constructor(type?: BodyType, position?: Vec2);
1373
1477
  /** @internal */
1374
1478
  static _wrap(inner: NapeInner): Body;
@@ -1425,7 +1529,6 @@ declare class Body {
1425
1529
  get constraintVelocity(): Vec2;
1426
1530
  get localCOM(): Vec2;
1427
1531
  get worldCOM(): Vec2;
1428
- get userData(): Record<string, unknown>;
1429
1532
  integrate(deltaTime: number): void;
1430
1533
  applyImpulse(impulse: Vec2, pos?: Vec2, sleepable?: boolean): void;
1431
1534
  applyAngularImpulse(impulse: number, sleepable?: boolean): void;
@@ -1580,76 +1683,6 @@ declare class Broadphase {
1580
1683
  toString(): string;
1581
1684
  }
1582
1685
 
1583
- /**
1584
- * ZPP_InteractionGroup — Internal interaction group for the nape physics engine.
1585
- *
1586
- * Hierarchical groups that can override interaction filters. When two shapes
1587
- * share a common group with `ignore = true`, their interaction is suppressed.
1588
- *
1589
- * Converted from nape-compiled.js lines 63367–63463, 135330–135331.
1590
- */
1591
- type Any$h = any;
1592
- declare class ZPP_InteractionGroup {
1593
- static SHAPE: number;
1594
- static BODY: number;
1595
- static __name__: string[];
1596
- static _zpp: Any$h;
1597
- static _wrapFn: ((zpp: ZPP_InteractionGroup) => Any$h) | null;
1598
- outer: Any$h;
1599
- ignore: boolean;
1600
- group: ZPP_InteractionGroup | null;
1601
- groups: Any$h;
1602
- wrap_groups: Any$h;
1603
- interactors: Any$h;
1604
- wrap_interactors: Any$h;
1605
- depth: number;
1606
- __class__: Any$h;
1607
- constructor();
1608
- /** Set or change the parent group. */
1609
- setGroup(group: ZPP_InteractionGroup | null): void;
1610
- /** Wake all interactors and propagate to child groups. */
1611
- invalidate(force?: boolean): void;
1612
- /** Add a child group. */
1613
- addGroup(group: ZPP_InteractionGroup): void;
1614
- /** Remove a child group. */
1615
- remGroup(group: ZPP_InteractionGroup): void;
1616
- /** Register an interactor in this group. */
1617
- addInteractor(intx: Any$h): void;
1618
- /** Unregister an interactor from this group. */
1619
- remInteractor(intx: Any$h, flag?: number): void;
1620
- }
1621
-
1622
- /**
1623
- * Hierarchical interaction group for controlling interactions
1624
- * between sets of interactors.
1625
- *
1626
- * Internally wraps a ZPP_InteractionGroup and is registered as
1627
- * the public `nape.dynamics.InteractionGroup` class in the compiled namespace.
1628
- *
1629
- * Converted from nape-compiled.js lines 14641–14733.
1630
- */
1631
- declare class InteractionGroup {
1632
- static __name__: string[];
1633
- /** @internal The internal ZPP_InteractionGroup this wrapper owns. */
1634
- zpp_inner: ZPP_InteractionGroup;
1635
- /**
1636
- * Backward-compatible accessor — returns `this` so that compiled engine
1637
- * code that receives `group._inner` can still access `zpp_inner`.
1638
- * @internal
1639
- */
1640
- get _inner(): NapeInner;
1641
- constructor(ignore?: boolean);
1642
- /** @internal Wrap a ZPP_InteractionGroup (or legacy compiled InteractionGroup) with caching. */
1643
- static _wrap(inner: any): InteractionGroup;
1644
- get group(): InteractionGroup | null;
1645
- set group(value: InteractionGroup | null);
1646
- get ignore(): boolean;
1647
- set ignore(value: boolean);
1648
- get interactors(): any;
1649
- get groups(): any;
1650
- toString(): string;
1651
- }
1652
-
1653
1686
  /**
1654
1687
  * Arbiter type classification.
1655
1688
  *
@@ -2316,4 +2349,4 @@ declare class PulleyJoint extends Constraint {
2316
2349
 
2317
2350
  declare const VERSION = "3.3.6";
2318
2351
 
2319
- 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, VERSION, ValidationResult, Vec2, Vec3, WeldJoint, Winding, getNape };
2352
+ 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, Interactor, LineJoint, Listener, ListenerType, MarchingSquares, MassMode, Mat23, MatMN, Material, MotorJoint, NapeList, OptionType, PivotJoint, Polygon, PreCallback, PreFlag, PreListener, PulleyJoint, Ray, RayResult, Shape, ShapeType, Space, VERSION, ValidationResult, Vec2, Vec3, WeldJoint, Winding, getNape };
package/dist/index.d.ts CHANGED
@@ -1043,6 +1043,114 @@ declare class InteractionFilter {
1043
1043
  toString(): string;
1044
1044
  }
1045
1045
 
1046
+ /**
1047
+ * ZPP_InteractionGroup — Internal interaction group for the nape physics engine.
1048
+ *
1049
+ * Hierarchical groups that can override interaction filters. When two shapes
1050
+ * share a common group with `ignore = true`, their interaction is suppressed.
1051
+ *
1052
+ * Converted from nape-compiled.js lines 63367–63463, 135330–135331.
1053
+ */
1054
+ type Any$j = any;
1055
+ declare class ZPP_InteractionGroup {
1056
+ static SHAPE: number;
1057
+ static BODY: number;
1058
+ static __name__: string[];
1059
+ static _zpp: Any$j;
1060
+ static _wrapFn: ((zpp: ZPP_InteractionGroup) => Any$j) | null;
1061
+ outer: Any$j;
1062
+ ignore: boolean;
1063
+ group: ZPP_InteractionGroup | null;
1064
+ groups: Any$j;
1065
+ wrap_groups: Any$j;
1066
+ interactors: Any$j;
1067
+ wrap_interactors: Any$j;
1068
+ depth: number;
1069
+ __class__: Any$j;
1070
+ constructor();
1071
+ /** Set or change the parent group. */
1072
+ setGroup(group: ZPP_InteractionGroup | null): void;
1073
+ /** Wake all interactors and propagate to child groups. */
1074
+ invalidate(force?: boolean): void;
1075
+ /** Add a child group. */
1076
+ addGroup(group: ZPP_InteractionGroup): void;
1077
+ /** Remove a child group. */
1078
+ remGroup(group: ZPP_InteractionGroup): void;
1079
+ /** Register an interactor in this group. */
1080
+ addInteractor(intx: Any$j): void;
1081
+ /** Unregister an interactor from this group. */
1082
+ remInteractor(intx: Any$j, flag?: number): void;
1083
+ }
1084
+
1085
+ /**
1086
+ * Hierarchical interaction group for controlling interactions
1087
+ * between sets of interactors.
1088
+ *
1089
+ * Internally wraps a ZPP_InteractionGroup and is registered as
1090
+ * the public `nape.dynamics.InteractionGroup` class in the compiled namespace.
1091
+ *
1092
+ * Converted from nape-compiled.js lines 14641–14733.
1093
+ */
1094
+ declare class InteractionGroup {
1095
+ static __name__: string[];
1096
+ /** @internal The internal ZPP_InteractionGroup this wrapper owns. */
1097
+ zpp_inner: ZPP_InteractionGroup;
1098
+ /**
1099
+ * Backward-compatible accessor — returns `this` so that compiled engine
1100
+ * code that receives `group._inner` can still access `zpp_inner`.
1101
+ * @internal
1102
+ */
1103
+ get _inner(): NapeInner;
1104
+ constructor(ignore?: boolean);
1105
+ /** @internal Wrap a ZPP_InteractionGroup (or legacy compiled InteractionGroup) with caching. */
1106
+ static _wrap(inner: any): InteractionGroup;
1107
+ get group(): InteractionGroup | null;
1108
+ set group(value: InteractionGroup | null);
1109
+ get ignore(): boolean;
1110
+ set ignore(value: boolean);
1111
+ get interactors(): any;
1112
+ get groups(): any;
1113
+ toString(): string;
1114
+ }
1115
+
1116
+ /**
1117
+ * Base class for all interactable physics objects (Body, Shape, Compound).
1118
+ *
1119
+ * Cannot be instantiated directly — only via Body, Shape, or Compound.
1120
+ * Provides shared properties: id, userData, group, cbTypes, and type
1121
+ * casting methods (castBody, castShape, castCompound).
1122
+ */
1123
+ declare class Interactor {
1124
+ /** @internal */
1125
+ readonly _inner: NapeInner;
1126
+ /** @internal – only subclasses may construct. */
1127
+ protected constructor();
1128
+ /** @internal Wrap a compiled Interactor (Body/Shape/Compound) instance. */
1129
+ static _wrap(inner: NapeInner): Interactor;
1130
+ /** Unique numeric identifier for this interactor. */
1131
+ get id(): number;
1132
+ /** User-defined data storage object. */
1133
+ get userData(): Record<string, unknown>;
1134
+ /** The interaction group this interactor belongs to. */
1135
+ get group(): InteractionGroup | null;
1136
+ set group(value: InteractionGroup | null);
1137
+ /** Callback types assigned to this interactor. */
1138
+ get cbTypes(): NapeInner;
1139
+ /** Cast to Body — returns the Body wrapper if this is a Body, else null. */
1140
+ get castBody(): any;
1141
+ /** Cast to Shape — returns the Shape wrapper if this is a Shape, else null. */
1142
+ get castShape(): any;
1143
+ /** Cast to Compound — returns the Compound wrapper if this is a Compound, else null. */
1144
+ get castCompound(): any;
1145
+ /** Returns true if this interactor is a Shape. */
1146
+ isShape(): boolean;
1147
+ /** Returns true if this interactor is a Body. */
1148
+ isBody(): boolean;
1149
+ /** Returns true if this interactor is a Compound. */
1150
+ isCompound(): boolean;
1151
+ toString(): string;
1152
+ }
1153
+
1046
1154
  /**
1047
1155
  * Shape type classification.
1048
1156
  *
@@ -1064,9 +1172,7 @@ declare class ShapeType {
1064
1172
  /**
1065
1173
  * Base class for physics shapes (Circle, Polygon).
1066
1174
  */
1067
- declare class Shape {
1068
- /** @internal */
1069
- readonly _inner: NapeInner;
1175
+ declare class Shape extends Interactor {
1070
1176
  /** @internal – shapes are created via Circle or Polygon constructors. */
1071
1177
  protected constructor();
1072
1178
  /** @internal */
@@ -1180,24 +1286,24 @@ declare class Constraint {
1180
1286
  *
1181
1287
  * Converted from nape-compiled.js lines 27259–27304, 112053–112139.
1182
1288
  */
1183
- type Any$j = any;
1289
+ type Any$i = any;
1184
1290
  declare class ZPP_Listener {
1185
1291
  static __name__: string[];
1186
- static _nape: Any$j;
1187
- static _zpp: Any$j;
1292
+ static _nape: Any$i;
1293
+ static _zpp: Any$i;
1188
1294
  static internal: boolean;
1189
- static types: Any$j[];
1190
- static events: Any$j[];
1191
- space: Any$j;
1192
- interaction: Any$j;
1193
- constraint: Any$j;
1194
- body: Any$j;
1295
+ static types: Any$i[];
1296
+ static events: Any$i[];
1297
+ space: Any$i;
1298
+ interaction: Any$i;
1299
+ constraint: Any$i;
1300
+ body: Any$i;
1195
1301
  precedence: number;
1196
1302
  event: number;
1197
1303
  type: number;
1198
1304
  id: number;
1199
- outer: Any$j;
1200
- __class__: Any$j;
1305
+ outer: Any$i;
1306
+ __class__: Any$i;
1201
1307
  constructor();
1202
1308
  /** Sort comparator: higher precedence first, then by id descending. */
1203
1309
  static setlt(a: ZPP_Listener, b: ZPP_Listener): boolean;
@@ -1273,20 +1379,20 @@ declare class ListenerType {
1273
1379
  * Fully modernized from nape-compiled.js lines 231–433.
1274
1380
  */
1275
1381
 
1276
- type Any$i = any;
1382
+ type Any$h = any;
1277
1383
  declare class Listener {
1278
1384
  static __name__: string[];
1279
1385
  zpp_inner: ZPP_Listener;
1280
- get _inner(): Any$i;
1386
+ get _inner(): Any$h;
1281
1387
  constructor();
1282
- static _wrap(inner: Any$i): Listener;
1388
+ static _wrap(inner: Any$h): Listener;
1283
1389
  get type(): ListenerType;
1284
1390
  get event(): CbEvent;
1285
1391
  set event(event: CbEvent);
1286
1392
  get precedence(): number;
1287
1393
  set precedence(precedence: number);
1288
1394
  get space(): Space | null;
1289
- set space(space: Space | Any$i | null);
1395
+ set space(space: Space | Any$h | null);
1290
1396
  toString(): string;
1291
1397
  }
1292
1398
 
@@ -1366,9 +1472,7 @@ declare class BodyType {
1366
1472
  /**
1367
1473
  * A rigid body in the physics simulation.
1368
1474
  */
1369
- declare class Body {
1370
- /** @internal */
1371
- readonly _inner: NapeInner;
1475
+ declare class Body extends Interactor {
1372
1476
  constructor(type?: BodyType, position?: Vec2);
1373
1477
  /** @internal */
1374
1478
  static _wrap(inner: NapeInner): Body;
@@ -1425,7 +1529,6 @@ declare class Body {
1425
1529
  get constraintVelocity(): Vec2;
1426
1530
  get localCOM(): Vec2;
1427
1531
  get worldCOM(): Vec2;
1428
- get userData(): Record<string, unknown>;
1429
1532
  integrate(deltaTime: number): void;
1430
1533
  applyImpulse(impulse: Vec2, pos?: Vec2, sleepable?: boolean): void;
1431
1534
  applyAngularImpulse(impulse: number, sleepable?: boolean): void;
@@ -1580,76 +1683,6 @@ declare class Broadphase {
1580
1683
  toString(): string;
1581
1684
  }
1582
1685
 
1583
- /**
1584
- * ZPP_InteractionGroup — Internal interaction group for the nape physics engine.
1585
- *
1586
- * Hierarchical groups that can override interaction filters. When two shapes
1587
- * share a common group with `ignore = true`, their interaction is suppressed.
1588
- *
1589
- * Converted from nape-compiled.js lines 63367–63463, 135330–135331.
1590
- */
1591
- type Any$h = any;
1592
- declare class ZPP_InteractionGroup {
1593
- static SHAPE: number;
1594
- static BODY: number;
1595
- static __name__: string[];
1596
- static _zpp: Any$h;
1597
- static _wrapFn: ((zpp: ZPP_InteractionGroup) => Any$h) | null;
1598
- outer: Any$h;
1599
- ignore: boolean;
1600
- group: ZPP_InteractionGroup | null;
1601
- groups: Any$h;
1602
- wrap_groups: Any$h;
1603
- interactors: Any$h;
1604
- wrap_interactors: Any$h;
1605
- depth: number;
1606
- __class__: Any$h;
1607
- constructor();
1608
- /** Set or change the parent group. */
1609
- setGroup(group: ZPP_InteractionGroup | null): void;
1610
- /** Wake all interactors and propagate to child groups. */
1611
- invalidate(force?: boolean): void;
1612
- /** Add a child group. */
1613
- addGroup(group: ZPP_InteractionGroup): void;
1614
- /** Remove a child group. */
1615
- remGroup(group: ZPP_InteractionGroup): void;
1616
- /** Register an interactor in this group. */
1617
- addInteractor(intx: Any$h): void;
1618
- /** Unregister an interactor from this group. */
1619
- remInteractor(intx: Any$h, flag?: number): void;
1620
- }
1621
-
1622
- /**
1623
- * Hierarchical interaction group for controlling interactions
1624
- * between sets of interactors.
1625
- *
1626
- * Internally wraps a ZPP_InteractionGroup and is registered as
1627
- * the public `nape.dynamics.InteractionGroup` class in the compiled namespace.
1628
- *
1629
- * Converted from nape-compiled.js lines 14641–14733.
1630
- */
1631
- declare class InteractionGroup {
1632
- static __name__: string[];
1633
- /** @internal The internal ZPP_InteractionGroup this wrapper owns. */
1634
- zpp_inner: ZPP_InteractionGroup;
1635
- /**
1636
- * Backward-compatible accessor — returns `this` so that compiled engine
1637
- * code that receives `group._inner` can still access `zpp_inner`.
1638
- * @internal
1639
- */
1640
- get _inner(): NapeInner;
1641
- constructor(ignore?: boolean);
1642
- /** @internal Wrap a ZPP_InteractionGroup (or legacy compiled InteractionGroup) with caching. */
1643
- static _wrap(inner: any): InteractionGroup;
1644
- get group(): InteractionGroup | null;
1645
- set group(value: InteractionGroup | null);
1646
- get ignore(): boolean;
1647
- set ignore(value: boolean);
1648
- get interactors(): any;
1649
- get groups(): any;
1650
- toString(): string;
1651
- }
1652
-
1653
1686
  /**
1654
1687
  * Arbiter type classification.
1655
1688
  *
@@ -2316,4 +2349,4 @@ declare class PulleyJoint extends Constraint {
2316
2349
 
2317
2350
  declare const VERSION = "3.3.6";
2318
2351
 
2319
- 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, VERSION, ValidationResult, Vec2, Vec3, WeldJoint, Winding, getNape };
2352
+ 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, Interactor, LineJoint, Listener, ListenerType, MarchingSquares, MassMode, Mat23, MatMN, Material, MotorJoint, NapeList, OptionType, PivotJoint, Polygon, PreCallback, PreFlag, PreListener, PulleyJoint, Ray, RayResult, Shape, ShapeType, Space, VERSION, ValidationResult, Vec2, Vec3, WeldJoint, Winding, getNape };