@newkrok/nape-js 3.9.0 → 3.10.0

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.
@@ -7,7 +7,6 @@
7
7
  * Converted from nape-compiled.js lines 23448–27180.
8
8
  */
9
9
  declare class Vec2 {
10
- static __name__: string[];
11
10
  /**
12
11
  * Creates a Vec2 with the given components. Defaults to (0, 0).
13
12
  *
@@ -296,7 +295,6 @@ type NapeInner = any;
296
295
  * Converted from nape-compiled.js lines 24120–25040.
297
296
  */
298
297
  declare class Vec3 {
299
- static __name__: string[];
300
298
  /**
301
299
  * Create a Vec3 with the given components. Defaults to (0, 0, 0).
302
300
  * @param x - The x component.
@@ -390,7 +388,6 @@ declare class Vec3 {
390
388
  * Converted from nape-compiled.js lines 20507–21760.
391
389
  */
392
390
  declare class Mat23 {
393
- static __name__: string[];
394
391
  /**
395
392
  * Create a Mat23 with the given components. Defaults to the identity matrix `[1 0 0; 0 1 0]`.
396
393
  * @param a - Component at row 0, col 0.
@@ -564,7 +561,6 @@ declare class Mat23 {
564
561
  * Converted from nape-compiled.js lines 14950–15653.
565
562
  */
566
563
  declare class AABB {
567
- static __name__: string[];
568
564
  /**
569
565
  * Create an AABB at position (x, y) with the given width and height. All
570
566
  * values default to 0.
@@ -656,7 +652,6 @@ declare class AABB {
656
652
  * Converted from nape-compiled.js lines 17261–17395.
657
653
  */
658
654
  declare class MatMN {
659
- static __name__: string[];
660
655
  /**
661
656
  * Create a zero-filled M×N matrix. Both dimensions must be ≥ 1.
662
657
  * @param rows - Number of rows (must be ≥ 1).
@@ -720,7 +715,6 @@ declare class MatMN {
720
715
  * Fully modernized — uses ZPP_Ray directly (extracted to TypeScript).
721
716
  */
722
717
  declare class Ray {
723
- static __name__: string[];
724
718
  /**
725
719
  * Create a Ray from an origin point and a direction vector.
726
720
  * Both must be non-null, non-disposed Vec2s.
@@ -831,7 +825,6 @@ declare class NapeList<T> implements Iterable<T> {
831
825
  * Converted from nape-compiled.js lines 14641–14733.
832
826
  */
833
827
  declare class InteractionGroup {
834
- static __name__: string[];
835
828
  constructor(ignore?: boolean);
836
829
  get group(): InteractionGroup | null;
837
830
  set group(value: InteractionGroup | null);
@@ -884,8 +877,6 @@ declare class Interactor {
884
877
  * Fully modernized — uses ZPP_Compound directly (extracted to TypeScript).
885
878
  */
886
879
  declare class Compound extends Interactor {
887
- static __name__: string[];
888
- static __super__: typeof Interactor;
889
880
  constructor();
890
881
  /** Bodies in this compound. */
891
882
  get bodies(): object;
@@ -937,7 +928,6 @@ declare class Compound extends Interactor {
937
928
  * Fully modernized — uses ZPP_Constraint directly (extracted to TypeScript).
938
929
  */
939
930
  declare class Constraint {
940
- static __name__: string[];
941
931
  debugDraw: boolean;
942
932
  /**
943
933
  * The space this constraint belongs to, or `null` if not in a space.
@@ -1092,7 +1082,6 @@ declare class Constraint {
1092
1082
  * Converted from nape-compiled.js lines 14361–14640.
1093
1083
  */
1094
1084
  declare class InteractionFilter {
1095
- static __name__: string[];
1096
1085
  /**
1097
1086
  * @param collisionGroup - Collision group bits (default 1).
1098
1087
  * @param collisionMask - Collision mask bits (default -1, all bits set).
@@ -1155,7 +1144,6 @@ declare class InteractionFilter {
1155
1144
  * Instances are pooled — call `dispose()` when done to return to pool.
1156
1145
  */
1157
1146
  declare class RayResult {
1158
- static __name__: string[];
1159
1147
  constructor();
1160
1148
  get normal(): Vec2;
1161
1149
  get distance(): number;
@@ -1174,7 +1162,6 @@ declare class RayResult {
1174
1162
  * Converted from nape-compiled.js lines 30858–30909.
1175
1163
  */
1176
1164
  declare class Broadphase {
1177
- static __name__: string[];
1178
1165
  constructor();
1179
1166
  static get DYNAMIC_AABB_TREE(): Broadphase;
1180
1167
  static get SWEEP_AND_PRUNE(): Broadphase;
@@ -1193,7 +1180,6 @@ declare class Broadphase {
1193
1180
  * Converted from nape-compiled.js lines 1785–1883.
1194
1181
  */
1195
1182
  declare class InteractionType {
1196
- static __name__: string[];
1197
1183
  constructor();
1198
1184
  /** Physical collision between solid shapes (default for most shapes). */
1199
1185
  static get COLLISION(): InteractionType;
@@ -1261,7 +1247,6 @@ interface TypedListLike<T> extends Iterable<T> {
1261
1247
  * Converted from nape-compiled.js lines 11653–11725.
1262
1248
  */
1263
1249
  declare class ArbiterType {
1264
- static __name__: string[];
1265
1250
  constructor();
1266
1251
  static get COLLISION(): ArbiterType;
1267
1252
  static get SENSOR(): ArbiterType;
@@ -1279,7 +1264,6 @@ declare class ArbiterType {
1279
1264
  * Converted from nape-compiled.js lines 38254–38573.
1280
1265
  */
1281
1266
  declare class Material {
1282
- static __name__: string[];
1283
1267
  constructor(elasticity?: number, dynamicFriction?: number, staticFriction?: number, density?: number, rollingFriction?: number);
1284
1268
  get elasticity(): number;
1285
1269
  set elasticity(value: number);
@@ -1306,8 +1290,6 @@ declare class Material {
1306
1290
  * A convex polygon physics shape.
1307
1291
  */
1308
1292
  declare class Polygon extends Shape {
1309
- static __name__: string[];
1310
- static __super__: any;
1311
1293
  /**
1312
1294
  * Create a Polygon from a list of Vec2 vertices. Vertices must form a convex polygon
1313
1295
  * in counter-clockwise order.
@@ -1367,7 +1349,6 @@ declare class Polygon extends Shape {
1367
1349
  * Fully modernized — all getters access ZPP_Edge directly.
1368
1350
  */
1369
1351
  declare class Edge {
1370
- static __name__: string[];
1371
1352
  constructor();
1372
1353
  /** Parent polygon. */
1373
1354
  get polygon(): Polygon;
@@ -1410,8 +1391,6 @@ declare class Edge {
1410
1391
  * Fully modernized — uses extracted ZPP_ColArbiter directly.
1411
1392
  */
1412
1393
  declare class CollisionArbiter extends Arbiter {
1413
- static __name__: string[];
1414
- static __super__: typeof Arbiter;
1415
1394
  constructor();
1416
1395
  /**
1417
1396
  * The list of active contact points between the two shapes.
@@ -1495,8 +1474,6 @@ declare class CollisionArbiter extends Arbiter {
1495
1474
  * Fully modernized — uses extracted ZPP_FluidArbiter directly.
1496
1475
  */
1497
1476
  declare class FluidArbiter extends Arbiter {
1498
- static __name__: string[];
1499
- static __super__: typeof Arbiter;
1500
1477
  constructor();
1501
1478
  /**
1502
1479
  * Centre of the overlap region between the fluid and the body shape.
@@ -1540,7 +1517,6 @@ declare class FluidArbiter extends Arbiter {
1540
1517
  * Converted from nape-compiled.js lines 2504–2591.
1541
1518
  */
1542
1519
  declare class PreFlag {
1543
- static __name__: string[];
1544
1520
  constructor();
1545
1521
  /** Accept and resolve the interaction normally. */
1546
1522
  static get ACCEPT(): PreFlag;
@@ -1572,7 +1548,6 @@ declare class PreFlag {
1572
1548
  * Fully modernized — uses extracted ZPP_Arbiter directly.
1573
1549
  */
1574
1550
  declare class Arbiter {
1575
- static __name__: string[];
1576
1551
  constructor();
1577
1552
  /**
1578
1553
  * Whether both interacting bodies are currently sleeping.
@@ -1642,7 +1617,6 @@ declare class Arbiter {
1642
1617
  * Converted from nape-compiled.js lines 516–657.
1643
1618
  */
1644
1619
  declare class CbEvent {
1645
- static __name__: string[];
1646
1620
  constructor();
1647
1621
  /** Interaction-start event. Fired once when two interactors first make contact. */
1648
1622
  static get BEGIN(): CbEvent;
@@ -1672,7 +1646,6 @@ declare class CbEvent {
1672
1646
  * Converted from nape-compiled.js lines 2554–2646.
1673
1647
  */
1674
1648
  declare class ListenerType {
1675
- static __name__: string[];
1676
1649
  constructor();
1677
1650
  static get BODY(): ListenerType;
1678
1651
  static get CONSTRAINT(): ListenerType;
@@ -1703,7 +1676,6 @@ declare class ListenerType {
1703
1676
  * Fully modernized from nape-compiled.js lines 231–433.
1704
1677
  */
1705
1678
  declare class Listener {
1706
- static __name__: string[];
1707
1679
  constructor();
1708
1680
  /** The type of this listener (BODY, CONSTRAINT, INTERACTION, or PRE). */
1709
1681
  get type(): ListenerType;
@@ -1831,6 +1803,24 @@ declare abstract class DebugDraw {
1831
1803
  * @param colour - Optional ARGB colour hint.
1832
1804
  */
1833
1805
  drawSolidPolygon(vertices: DebugVec2[], colour?: number): void;
1806
+ /**
1807
+ * Draw a capsule outline (two semicircles connected by straight segments).
1808
+ * Used for: static/kinematic capsule shapes.
1809
+ * @param spine1 - World-space first spine endpoint.
1810
+ * @param spine2 - World-space second spine endpoint.
1811
+ * @param radius - End-cap radius.
1812
+ * @param colour - Optional ARGB colour hint.
1813
+ */
1814
+ drawCapsule(spine1: DebugVec2, spine2: DebugVec2, radius: number, colour?: number): void;
1815
+ /**
1816
+ * Draw a filled capsule.
1817
+ * Used for: dynamic capsule shapes.
1818
+ * @param spine1 - World-space first spine endpoint.
1819
+ * @param spine2 - World-space second spine endpoint.
1820
+ * @param radius - End-cap radius.
1821
+ * @param colour - Optional ARGB colour hint.
1822
+ */
1823
+ drawSolidCapsule(spine1: DebugVec2, spine2: DebugVec2, radius: number, colour?: number): void;
1834
1824
  /**
1835
1825
  * Draw a point marker.
1836
1826
  * Used for: contact points, centre-of-mass markers.
@@ -2114,7 +2104,6 @@ declare class Space {
2114
2104
  * Converted from nape-compiled.js lines 24640–24705.
2115
2105
  */
2116
2106
  declare class BodyType {
2117
- static __name__: string[];
2118
2107
  constructor();
2119
2108
  static get STATIC(): BodyType;
2120
2109
  static get DYNAMIC(): BodyType;
@@ -2132,7 +2121,6 @@ declare class BodyType {
2132
2121
  * Converted from nape-compiled.js lines 37002–37511.
2133
2122
  */
2134
2123
  declare class FluidProperties {
2135
- static __name__: string[];
2136
2124
  constructor(density?: number, viscosity?: number);
2137
2125
  get density(): number;
2138
2126
  set density(value: number);
@@ -2155,7 +2143,6 @@ declare class FluidProperties {
2155
2143
  * Converted from nape-compiled.js lines 26966–27013.
2156
2144
  */
2157
2145
  declare class MassMode {
2158
- static __name__: string[];
2159
2146
  constructor();
2160
2147
  static get DEFAULT(): MassMode;
2161
2148
  static get FIXED(): MassMode;
@@ -2171,7 +2158,6 @@ declare class MassMode {
2171
2158
  * Converted from nape-compiled.js lines 26343–26390.
2172
2159
  */
2173
2160
  declare class InertiaMode {
2174
- static __name__: string[];
2175
2161
  constructor();
2176
2162
  static get DEFAULT(): InertiaMode;
2177
2163
  static get FIXED(): InertiaMode;
@@ -2188,7 +2174,6 @@ declare class InertiaMode {
2188
2174
  * Converted from nape-compiled.js lines 26272–26342.
2189
2175
  */
2190
2176
  declare class GravMassMode {
2191
- static __name__: string[];
2192
2177
  constructor();
2193
2178
  static get DEFAULT(): GravMassMode;
2194
2179
  static get FIXED(): GravMassMode;
@@ -2200,8 +2185,6 @@ declare class GravMassMode {
2200
2185
  * A rigid body in the physics simulation. Add shapes to give it geometry, then add it to a `Space` to participate in simulation.
2201
2186
  */
2202
2187
  declare class Body extends Interactor {
2203
- static __name__: string[];
2204
- static __super__: typeof Interactor;
2205
2188
  /** If true, this body is included in debug rendering. */
2206
2189
  debugDraw: boolean;
2207
2190
  /**
@@ -2552,10 +2535,10 @@ declare class Body extends Interactor {
2552
2535
  * Converted from nape-compiled.js lines 30435–30482.
2553
2536
  */
2554
2537
  declare class ShapeType {
2555
- static __name__: string[];
2556
2538
  constructor();
2557
2539
  static get CIRCLE(): ShapeType;
2558
2540
  static get POLYGON(): ShapeType;
2541
+ static get CAPSULE(): ShapeType;
2559
2542
  toString(): string;
2560
2543
  }
2561
2544
 
@@ -2570,6 +2553,8 @@ declare class Shape extends Interactor {
2570
2553
  isCircle(): boolean;
2571
2554
  /** Returns true if this is a Polygon shape. */
2572
2555
  isPolygon(): boolean;
2556
+ /** Returns true if this is a Capsule shape. */
2557
+ isCapsule(): boolean;
2573
2558
  /**
2574
2559
  * The Body this shape belongs to. Setting moves the shape between bodies.
2575
2560
  */
@@ -2579,6 +2564,8 @@ declare class Shape extends Interactor {
2579
2564
  get castCircle(): Shape | null;
2580
2565
  /** Cast to Polygon, or null if this is not a polygon. */
2581
2566
  get castPolygon(): Shape | null;
2567
+ /** Cast to Capsule, or null if this is not a capsule. */
2568
+ get castCapsule(): Shape | null;
2582
2569
  /** World-space centre of mass of this shape (read-only, lazy-computed). */
2583
2570
  get worldCOM(): Vec2;
2584
2571
  /**
@@ -2677,7 +2664,6 @@ interface CbTypeSet {
2677
2664
  * Instances are pooled — call `dispose()` when done to return to pool.
2678
2665
  */
2679
2666
  declare class ConvexResult {
2680
- static __name__: string[];
2681
2667
  constructor();
2682
2668
  get normal(): Vec2;
2683
2669
  get position(): Vec2;
@@ -7,7 +7,6 @@
7
7
  * Converted from nape-compiled.js lines 23448–27180.
8
8
  */
9
9
  declare class Vec2 {
10
- static __name__: string[];
11
10
  /**
12
11
  * Creates a Vec2 with the given components. Defaults to (0, 0).
13
12
  *
@@ -296,7 +295,6 @@ type NapeInner = any;
296
295
  * Converted from nape-compiled.js lines 24120–25040.
297
296
  */
298
297
  declare class Vec3 {
299
- static __name__: string[];
300
298
  /**
301
299
  * Create a Vec3 with the given components. Defaults to (0, 0, 0).
302
300
  * @param x - The x component.
@@ -390,7 +388,6 @@ declare class Vec3 {
390
388
  * Converted from nape-compiled.js lines 20507–21760.
391
389
  */
392
390
  declare class Mat23 {
393
- static __name__: string[];
394
391
  /**
395
392
  * Create a Mat23 with the given components. Defaults to the identity matrix `[1 0 0; 0 1 0]`.
396
393
  * @param a - Component at row 0, col 0.
@@ -564,7 +561,6 @@ declare class Mat23 {
564
561
  * Converted from nape-compiled.js lines 14950–15653.
565
562
  */
566
563
  declare class AABB {
567
- static __name__: string[];
568
564
  /**
569
565
  * Create an AABB at position (x, y) with the given width and height. All
570
566
  * values default to 0.
@@ -656,7 +652,6 @@ declare class AABB {
656
652
  * Converted from nape-compiled.js lines 17261–17395.
657
653
  */
658
654
  declare class MatMN {
659
- static __name__: string[];
660
655
  /**
661
656
  * Create a zero-filled M×N matrix. Both dimensions must be ≥ 1.
662
657
  * @param rows - Number of rows (must be ≥ 1).
@@ -720,7 +715,6 @@ declare class MatMN {
720
715
  * Fully modernized — uses ZPP_Ray directly (extracted to TypeScript).
721
716
  */
722
717
  declare class Ray {
723
- static __name__: string[];
724
718
  /**
725
719
  * Create a Ray from an origin point and a direction vector.
726
720
  * Both must be non-null, non-disposed Vec2s.
@@ -831,7 +825,6 @@ declare class NapeList<T> implements Iterable<T> {
831
825
  * Converted from nape-compiled.js lines 14641–14733.
832
826
  */
833
827
  declare class InteractionGroup {
834
- static __name__: string[];
835
828
  constructor(ignore?: boolean);
836
829
  get group(): InteractionGroup | null;
837
830
  set group(value: InteractionGroup | null);
@@ -884,8 +877,6 @@ declare class Interactor {
884
877
  * Fully modernized — uses ZPP_Compound directly (extracted to TypeScript).
885
878
  */
886
879
  declare class Compound extends Interactor {
887
- static __name__: string[];
888
- static __super__: typeof Interactor;
889
880
  constructor();
890
881
  /** Bodies in this compound. */
891
882
  get bodies(): object;
@@ -937,7 +928,6 @@ declare class Compound extends Interactor {
937
928
  * Fully modernized — uses ZPP_Constraint directly (extracted to TypeScript).
938
929
  */
939
930
  declare class Constraint {
940
- static __name__: string[];
941
931
  debugDraw: boolean;
942
932
  /**
943
933
  * The space this constraint belongs to, or `null` if not in a space.
@@ -1092,7 +1082,6 @@ declare class Constraint {
1092
1082
  * Converted from nape-compiled.js lines 14361–14640.
1093
1083
  */
1094
1084
  declare class InteractionFilter {
1095
- static __name__: string[];
1096
1085
  /**
1097
1086
  * @param collisionGroup - Collision group bits (default 1).
1098
1087
  * @param collisionMask - Collision mask bits (default -1, all bits set).
@@ -1155,7 +1144,6 @@ declare class InteractionFilter {
1155
1144
  * Instances are pooled — call `dispose()` when done to return to pool.
1156
1145
  */
1157
1146
  declare class RayResult {
1158
- static __name__: string[];
1159
1147
  constructor();
1160
1148
  get normal(): Vec2;
1161
1149
  get distance(): number;
@@ -1174,7 +1162,6 @@ declare class RayResult {
1174
1162
  * Converted from nape-compiled.js lines 30858–30909.
1175
1163
  */
1176
1164
  declare class Broadphase {
1177
- static __name__: string[];
1178
1165
  constructor();
1179
1166
  static get DYNAMIC_AABB_TREE(): Broadphase;
1180
1167
  static get SWEEP_AND_PRUNE(): Broadphase;
@@ -1193,7 +1180,6 @@ declare class Broadphase {
1193
1180
  * Converted from nape-compiled.js lines 1785–1883.
1194
1181
  */
1195
1182
  declare class InteractionType {
1196
- static __name__: string[];
1197
1183
  constructor();
1198
1184
  /** Physical collision between solid shapes (default for most shapes). */
1199
1185
  static get COLLISION(): InteractionType;
@@ -1261,7 +1247,6 @@ interface TypedListLike<T> extends Iterable<T> {
1261
1247
  * Converted from nape-compiled.js lines 11653–11725.
1262
1248
  */
1263
1249
  declare class ArbiterType {
1264
- static __name__: string[];
1265
1250
  constructor();
1266
1251
  static get COLLISION(): ArbiterType;
1267
1252
  static get SENSOR(): ArbiterType;
@@ -1279,7 +1264,6 @@ declare class ArbiterType {
1279
1264
  * Converted from nape-compiled.js lines 38254–38573.
1280
1265
  */
1281
1266
  declare class Material {
1282
- static __name__: string[];
1283
1267
  constructor(elasticity?: number, dynamicFriction?: number, staticFriction?: number, density?: number, rollingFriction?: number);
1284
1268
  get elasticity(): number;
1285
1269
  set elasticity(value: number);
@@ -1306,8 +1290,6 @@ declare class Material {
1306
1290
  * A convex polygon physics shape.
1307
1291
  */
1308
1292
  declare class Polygon extends Shape {
1309
- static __name__: string[];
1310
- static __super__: any;
1311
1293
  /**
1312
1294
  * Create a Polygon from a list of Vec2 vertices. Vertices must form a convex polygon
1313
1295
  * in counter-clockwise order.
@@ -1367,7 +1349,6 @@ declare class Polygon extends Shape {
1367
1349
  * Fully modernized — all getters access ZPP_Edge directly.
1368
1350
  */
1369
1351
  declare class Edge {
1370
- static __name__: string[];
1371
1352
  constructor();
1372
1353
  /** Parent polygon. */
1373
1354
  get polygon(): Polygon;
@@ -1410,8 +1391,6 @@ declare class Edge {
1410
1391
  * Fully modernized — uses extracted ZPP_ColArbiter directly.
1411
1392
  */
1412
1393
  declare class CollisionArbiter extends Arbiter {
1413
- static __name__: string[];
1414
- static __super__: typeof Arbiter;
1415
1394
  constructor();
1416
1395
  /**
1417
1396
  * The list of active contact points between the two shapes.
@@ -1495,8 +1474,6 @@ declare class CollisionArbiter extends Arbiter {
1495
1474
  * Fully modernized — uses extracted ZPP_FluidArbiter directly.
1496
1475
  */
1497
1476
  declare class FluidArbiter extends Arbiter {
1498
- static __name__: string[];
1499
- static __super__: typeof Arbiter;
1500
1477
  constructor();
1501
1478
  /**
1502
1479
  * Centre of the overlap region between the fluid and the body shape.
@@ -1540,7 +1517,6 @@ declare class FluidArbiter extends Arbiter {
1540
1517
  * Converted from nape-compiled.js lines 2504–2591.
1541
1518
  */
1542
1519
  declare class PreFlag {
1543
- static __name__: string[];
1544
1520
  constructor();
1545
1521
  /** Accept and resolve the interaction normally. */
1546
1522
  static get ACCEPT(): PreFlag;
@@ -1572,7 +1548,6 @@ declare class PreFlag {
1572
1548
  * Fully modernized — uses extracted ZPP_Arbiter directly.
1573
1549
  */
1574
1550
  declare class Arbiter {
1575
- static __name__: string[];
1576
1551
  constructor();
1577
1552
  /**
1578
1553
  * Whether both interacting bodies are currently sleeping.
@@ -1642,7 +1617,6 @@ declare class Arbiter {
1642
1617
  * Converted from nape-compiled.js lines 516–657.
1643
1618
  */
1644
1619
  declare class CbEvent {
1645
- static __name__: string[];
1646
1620
  constructor();
1647
1621
  /** Interaction-start event. Fired once when two interactors first make contact. */
1648
1622
  static get BEGIN(): CbEvent;
@@ -1672,7 +1646,6 @@ declare class CbEvent {
1672
1646
  * Converted from nape-compiled.js lines 2554–2646.
1673
1647
  */
1674
1648
  declare class ListenerType {
1675
- static __name__: string[];
1676
1649
  constructor();
1677
1650
  static get BODY(): ListenerType;
1678
1651
  static get CONSTRAINT(): ListenerType;
@@ -1703,7 +1676,6 @@ declare class ListenerType {
1703
1676
  * Fully modernized from nape-compiled.js lines 231–433.
1704
1677
  */
1705
1678
  declare class Listener {
1706
- static __name__: string[];
1707
1679
  constructor();
1708
1680
  /** The type of this listener (BODY, CONSTRAINT, INTERACTION, or PRE). */
1709
1681
  get type(): ListenerType;
@@ -1831,6 +1803,24 @@ declare abstract class DebugDraw {
1831
1803
  * @param colour - Optional ARGB colour hint.
1832
1804
  */
1833
1805
  drawSolidPolygon(vertices: DebugVec2[], colour?: number): void;
1806
+ /**
1807
+ * Draw a capsule outline (two semicircles connected by straight segments).
1808
+ * Used for: static/kinematic capsule shapes.
1809
+ * @param spine1 - World-space first spine endpoint.
1810
+ * @param spine2 - World-space second spine endpoint.
1811
+ * @param radius - End-cap radius.
1812
+ * @param colour - Optional ARGB colour hint.
1813
+ */
1814
+ drawCapsule(spine1: DebugVec2, spine2: DebugVec2, radius: number, colour?: number): void;
1815
+ /**
1816
+ * Draw a filled capsule.
1817
+ * Used for: dynamic capsule shapes.
1818
+ * @param spine1 - World-space first spine endpoint.
1819
+ * @param spine2 - World-space second spine endpoint.
1820
+ * @param radius - End-cap radius.
1821
+ * @param colour - Optional ARGB colour hint.
1822
+ */
1823
+ drawSolidCapsule(spine1: DebugVec2, spine2: DebugVec2, radius: number, colour?: number): void;
1834
1824
  /**
1835
1825
  * Draw a point marker.
1836
1826
  * Used for: contact points, centre-of-mass markers.
@@ -2114,7 +2104,6 @@ declare class Space {
2114
2104
  * Converted from nape-compiled.js lines 24640–24705.
2115
2105
  */
2116
2106
  declare class BodyType {
2117
- static __name__: string[];
2118
2107
  constructor();
2119
2108
  static get STATIC(): BodyType;
2120
2109
  static get DYNAMIC(): BodyType;
@@ -2132,7 +2121,6 @@ declare class BodyType {
2132
2121
  * Converted from nape-compiled.js lines 37002–37511.
2133
2122
  */
2134
2123
  declare class FluidProperties {
2135
- static __name__: string[];
2136
2124
  constructor(density?: number, viscosity?: number);
2137
2125
  get density(): number;
2138
2126
  set density(value: number);
@@ -2155,7 +2143,6 @@ declare class FluidProperties {
2155
2143
  * Converted from nape-compiled.js lines 26966–27013.
2156
2144
  */
2157
2145
  declare class MassMode {
2158
- static __name__: string[];
2159
2146
  constructor();
2160
2147
  static get DEFAULT(): MassMode;
2161
2148
  static get FIXED(): MassMode;
@@ -2171,7 +2158,6 @@ declare class MassMode {
2171
2158
  * Converted from nape-compiled.js lines 26343–26390.
2172
2159
  */
2173
2160
  declare class InertiaMode {
2174
- static __name__: string[];
2175
2161
  constructor();
2176
2162
  static get DEFAULT(): InertiaMode;
2177
2163
  static get FIXED(): InertiaMode;
@@ -2188,7 +2174,6 @@ declare class InertiaMode {
2188
2174
  * Converted from nape-compiled.js lines 26272–26342.
2189
2175
  */
2190
2176
  declare class GravMassMode {
2191
- static __name__: string[];
2192
2177
  constructor();
2193
2178
  static get DEFAULT(): GravMassMode;
2194
2179
  static get FIXED(): GravMassMode;
@@ -2200,8 +2185,6 @@ declare class GravMassMode {
2200
2185
  * A rigid body in the physics simulation. Add shapes to give it geometry, then add it to a `Space` to participate in simulation.
2201
2186
  */
2202
2187
  declare class Body extends Interactor {
2203
- static __name__: string[];
2204
- static __super__: typeof Interactor;
2205
2188
  /** If true, this body is included in debug rendering. */
2206
2189
  debugDraw: boolean;
2207
2190
  /**
@@ -2552,10 +2535,10 @@ declare class Body extends Interactor {
2552
2535
  * Converted from nape-compiled.js lines 30435–30482.
2553
2536
  */
2554
2537
  declare class ShapeType {
2555
- static __name__: string[];
2556
2538
  constructor();
2557
2539
  static get CIRCLE(): ShapeType;
2558
2540
  static get POLYGON(): ShapeType;
2541
+ static get CAPSULE(): ShapeType;
2559
2542
  toString(): string;
2560
2543
  }
2561
2544
 
@@ -2570,6 +2553,8 @@ declare class Shape extends Interactor {
2570
2553
  isCircle(): boolean;
2571
2554
  /** Returns true if this is a Polygon shape. */
2572
2555
  isPolygon(): boolean;
2556
+ /** Returns true if this is a Capsule shape. */
2557
+ isCapsule(): boolean;
2573
2558
  /**
2574
2559
  * The Body this shape belongs to. Setting moves the shape between bodies.
2575
2560
  */
@@ -2579,6 +2564,8 @@ declare class Shape extends Interactor {
2579
2564
  get castCircle(): Shape | null;
2580
2565
  /** Cast to Polygon, or null if this is not a polygon. */
2581
2566
  get castPolygon(): Shape | null;
2567
+ /** Cast to Capsule, or null if this is not a capsule. */
2568
+ get castCapsule(): Shape | null;
2582
2569
  /** World-space centre of mass of this shape (read-only, lazy-computed). */
2583
2570
  get worldCOM(): Vec2;
2584
2571
  /**
@@ -2677,7 +2664,6 @@ interface CbTypeSet {
2677
2664
  * Instances are pooled — call `dispose()` when done to return to pool.
2678
2665
  */
2679
2666
  declare class ConvexResult {
2680
- static __name__: string[];
2681
2667
  constructor();
2682
2668
  get normal(): Vec2;
2683
2669
  get position(): Vec2;