@woosh/meep-engine 2.86.6 → 2.86.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/build/meep.cjs CHANGED
@@ -58331,25 +58331,20 @@ class TerrainTileManager {
58331
58331
 
58332
58332
  const tiles = this.tiles;
58333
58333
 
58334
- const self = this;
58335
-
58336
- function ensureBuilt(x, y) {
58337
- return function (resolve) {
58338
- self.obtain(x, y).then(resolve);
58339
- }
58340
- }
58341
-
58342
58334
  //populate tiles
58343
- for (let y = 0; y < gridSize.y; y++) {
58335
+ const tile_resolution_y = gridSize.y;
58336
+ const tile_resolution_x = gridSize.x;
58337
+
58338
+ for (let y = 0; y < tile_resolution_y; y++) {
58344
58339
 
58345
- const tY = y < gridSize.y - 1 ? time_size.y : (total_size.y - time_size.y * y);
58340
+ const tY = y < tile_resolution_y - 1 ? time_size.y : (total_size.y - time_size.y * y);
58346
58341
 
58347
- for (let x = 0; x < gridSize.x; x++) {
58342
+ for (let x = 0; x < tile_resolution_x; x++) {
58348
58343
 
58349
- const tX = x < gridSize.x - 1 ? time_size.x : (total_size.x - time_size.x * x);
58344
+ const tX = x < tile_resolution_x - 1 ? time_size.x : (total_size.x - time_size.x * x);
58350
58345
 
58351
58346
  const tile = new TerrainTile();
58352
- const index = y * gridSize.x + x;
58347
+ const index = y * tile_resolution_x + x;
58353
58348
  tiles[index] = tile;
58354
58349
 
58355
58350
  this.assignTileMaterial(tile);
@@ -58364,9 +58359,6 @@ class TerrainTileManager {
58364
58359
  tile.setInitialHeightBounds(this.heightRange.min, this.heightRange.max);
58365
58360
  tile.computeBoundingBox();
58366
58361
 
58367
- //hook for building
58368
- tile.ensureBuilt = ensureBuilt(x, y);
58369
-
58370
58362
  tile.external_bvh.link(this.bvh, index);
58371
58363
  }
58372
58364
  }