@woosh/meep-engine 2.37.3 → 2.37.6

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.
@@ -70,7 +70,7 @@ export class Transform {
70
70
  */
71
71
  __handle_component_change() {
72
72
  if (this.getFlag(TransformFlags.AutomaticChangeDetection)) {
73
- this.setFlag(TransformFlags.MatrixNeedsUpdate);
73
+ this.updateMatrix();
74
74
  }
75
75
  }
76
76
 
@@ -245,8 +245,7 @@ export class ShadedGeometry {
245
245
  t.updateMatrix();
246
246
  }
247
247
 
248
- //
249
- this.__transform.set(t.matrix);
248
+ //this.__transform.set(t.matrix);
250
249
 
251
250
  this.update_bounds();
252
251
 
@@ -274,7 +273,7 @@ export class ShadedGeometry {
274
273
  scratch_aabb3_array[4] = y1;
275
274
  scratch_aabb3_array[5] = z1;
276
275
 
277
- aabb3_matrix4_project(this.__bvh_aabb, scratch_aabb3_array, this.__transform);
276
+ aabb3_matrix4_project(this.__bvh_aabb, scratch_aabb3_array, this.transform);
278
277
  }
279
278
  }
280
279
 
@@ -84,6 +84,8 @@ export class SGMeshSystem extends System {
84
84
 
85
85
  const new_root = new EntityNode();
86
86
 
87
+ new_root.entity.add(new Transform());
88
+
87
89
  entity_node.transform.copy(asset.root_transform);
88
90
 
89
91
  new_root.addChild(entity_node);
@@ -8,9 +8,6 @@ import { TransformAttachmentSystem } from "../../../../ecs/transform-attachment/
8
8
  import { Camera } from "../../camera/Camera.js";
9
9
  import { MicronRenderPlugin } from "../../../micron/plugin/MicronRenderPlugin.js";
10
10
  import { enableEditor } from "../../../../../editor/enableEditor.js";
11
- import Mesh from "../../mesh/Mesh.js";
12
- import EntityBuilder from "../../../../ecs/EntityBuilder.js";
13
- import { Transform } from "../../../../ecs/transform/Transform.js";
14
11
  import { MeshSystem } from "../../mesh/MeshSystem.js";
15
12
 
16
13
  const eh = new EngineHarness();
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.37.3",
8
+ "version": "2.37.6",
9
9
  "dependencies": {
10
10
  "gl-matrix": "3.4.3",
11
11
  "fast-levenshtein": "2.0.6",