@woosh/meep-engine 2.36.10 → 2.36.11

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.
@@ -753,7 +753,7 @@ export class AABB3 {
753
753
  * @param {number[]|Float32Array|Float64Array} source
754
754
  * @param {number} offset
755
755
  */
756
- readFromArray(source, offset) {
756
+ readFromArray(source, offset = 0) {
757
757
  assert.isNonNegativeInteger(offset, 'offset');
758
758
 
759
759
  this.x0 = source[offset];
@@ -179,7 +179,9 @@ export class ShadedGeometry {
179
179
  * @param {AABB3} destination
180
180
  */
181
181
  getBoundingBox(destination) {
182
- destination.copy(this.__bvh_leaf);
182
+ const aabb = this.__bvh_aabb;
183
+
184
+ destination.readFromArray(aabb);
183
185
  }
184
186
 
185
187
  /**
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.36.10",
8
+ "version": "2.36.11",
9
9
  "dependencies": {
10
10
  "gl-matrix": "3.4.3",
11
11
  "fast-levenshtein": "2.0.6",