@woosh/meep-engine 2.43.14 → 2.43.15

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.
@@ -4,8 +4,13 @@ import {Matrix4} from "three";
4
4
  export class SurfacePoint3 {
5
5
  normal: Vector3
6
6
  position: Vector3
7
+ index: number
7
8
 
8
9
  applyMatrix4_three(matrix4: Matrix4): void
9
10
 
11
+ applyMatrix4(m4: ArrayLike<number>): void
12
+
10
13
  copy(other: SurfacePoint3): void
14
+
15
+ clone(): SurfacePoint3
11
16
  }
@@ -212,7 +212,7 @@ class TerrainTile {
212
212
  * @param {TerrainTile|undefined} bottomLeft
213
213
  * @param {TerrainTile|undefined} bottomRight
214
214
  */
215
- stitchNormals2(top, bottom, left, right, topLeft, topRight, bottomLeft, bottomRight) {
215
+ stitchNormals(top, bottom, left, right, topLeft, topRight, bottomLeft, bottomRight) {
216
216
 
217
217
 
218
218
  const v0 = new Vector3(),
@@ -516,6 +516,7 @@ class TerrainTileManager {
516
516
  }
517
517
 
518
518
  /**
519
+ * Fix normals along the seams of the tile
519
520
  *
520
521
  * @param {number} x
521
522
  * @param {number} y
@@ -556,7 +557,7 @@ class TerrainTileManager {
556
557
  right = self.getRaw(x + 1, y);
557
558
  }
558
559
 
559
- tile.stitchNormals2(top, bottom, left, right, topLeft, topRight, bottomLeft, bottomRight);
560
+ tile.stitchNormals(top, bottom, left, right, topLeft, topRight, bottomLeft, bottomRight);
560
561
  }
561
562
 
562
563
  /**
package/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "productName": "Meep",
6
6
  "description": "production-ready JavaScript game engine based on Entity Component System Architecture",
7
7
  "author": "Alexander Goldring",
8
- "version": "2.43.14",
8
+ "version": "2.43.15",
9
9
  "dependencies": {
10
10
  "gl-matrix": "3.4.3",
11
11
  "fast-levenshtein": "2.0.6",