@newkrok/nape-js 3.13.10 → 3.14.1

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.
@@ -1156,8 +1156,9 @@ declare class RayResult {
1156
1156
  /**
1157
1157
  * Broadphase algorithm type for Space collision detection.
1158
1158
  *
1159
- * - `DYNAMIC_AABB_TREE` — dynamic AABB tree broadphase
1159
+ * - `DYNAMIC_AABB_TREE` — dynamic AABB tree broadphase (default, general purpose)
1160
1160
  * - `SWEEP_AND_PRUNE` — sweep-and-prune broadphase
1161
+ * - `SPATIAL_HASH` — spatial hash grid broadphase (best for dense, uniform-size scenes)
1161
1162
  *
1162
1163
  * Converted from nape-compiled.js lines 30858–30909.
1163
1164
  */
@@ -1165,6 +1166,7 @@ declare class Broadphase {
1165
1166
  constructor();
1166
1167
  static get DYNAMIC_AABB_TREE(): Broadphase;
1167
1168
  static get SWEEP_AND_PRUNE(): Broadphase;
1169
+ static get SPATIAL_HASH(): Broadphase;
1168
1170
  toString(): string;
1169
1171
  }
1170
1172
 
@@ -1847,7 +1849,7 @@ declare class Space {
1847
1849
  */
1848
1850
  get gravity(): Vec2;
1849
1851
  set gravity(value: Vec2);
1850
- /** The broadphase algorithm currently in use (SWEEP_AND_PRUNE or DYNAMIC_AABB_TREE). */
1852
+ /** The broadphase algorithm currently in use. */
1851
1853
  get broadphase(): Broadphase;
1852
1854
  /** If true, contact points are sorted for determinism. Default: true. */
1853
1855
  get sortContacts(): boolean;
@@ -1156,8 +1156,9 @@ declare class RayResult {
1156
1156
  /**
1157
1157
  * Broadphase algorithm type for Space collision detection.
1158
1158
  *
1159
- * - `DYNAMIC_AABB_TREE` — dynamic AABB tree broadphase
1159
+ * - `DYNAMIC_AABB_TREE` — dynamic AABB tree broadphase (default, general purpose)
1160
1160
  * - `SWEEP_AND_PRUNE` — sweep-and-prune broadphase
1161
+ * - `SPATIAL_HASH` — spatial hash grid broadphase (best for dense, uniform-size scenes)
1161
1162
  *
1162
1163
  * Converted from nape-compiled.js lines 30858–30909.
1163
1164
  */
@@ -1165,6 +1166,7 @@ declare class Broadphase {
1165
1166
  constructor();
1166
1167
  static get DYNAMIC_AABB_TREE(): Broadphase;
1167
1168
  static get SWEEP_AND_PRUNE(): Broadphase;
1169
+ static get SPATIAL_HASH(): Broadphase;
1168
1170
  toString(): string;
1169
1171
  }
1170
1172
 
@@ -1847,7 +1849,7 @@ declare class Space {
1847
1849
  */
1848
1850
  get gravity(): Vec2;
1849
1851
  set gravity(value: Vec2);
1850
- /** The broadphase algorithm currently in use (SWEEP_AND_PRUNE or DYNAMIC_AABB_TREE). */
1852
+ /** The broadphase algorithm currently in use. */
1851
1853
  get broadphase(): Broadphase;
1852
1854
  /** If true, contact points are sorted for determinism. Default: true. */
1853
1855
  get sortContacts(): boolean;