@woosh/meep-engine 2.110.5 → 2.110.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
@@ -80700,8 +80700,10 @@ class AABB2 {
80700
80700
  *
80701
80701
  * @param {Vector2} result
80702
80702
  */
80703
- getCenter(result) {
80703
+ getCenter(result = new Vector2()) {
80704
80704
  result.set(this.centerX, this.centerY);
80705
+
80706
+ return result;
80705
80707
  }
80706
80708
 
80707
80709
  /**
@@ -94736,11 +94738,11 @@ class EntityComponentDataset {
94736
94738
 
94737
94739
  /**
94738
94740
  * @template T
94739
- * @param {number} entityIndex
94741
+ * @param {number} entity_id
94740
94742
  * @param {Class<T>} klass
94741
94743
  * @returns {T|undefined}
94742
94744
  */
94743
- getComponent(entityIndex, klass) {
94745
+ getComponent(entity_id, klass) {
94744
94746
 
94745
94747
  const componentIndex = this.computeComponentTypeIndex(klass);
94746
94748
 
@@ -94749,7 +94751,7 @@ class EntityComponentDataset {
94749
94751
  return undefined;
94750
94752
  }
94751
94753
 
94752
- return this.getComponentByIndex(entityIndex, componentIndex);
94754
+ return this.getComponentByIndex(entity_id, componentIndex);
94753
94755
  }
94754
94756
 
94755
94757
  /**