@adatechnology/game-vegetation-three 0.2.0 → 0.2.2

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.
@@ -9597,6 +9597,15 @@ gl_Position = projectionMatrix * mvPosition;
9597
9597
  };
9598
9598
  }
9599
9599
 
9600
+ // ../game-contracts/dist/index.js
9601
+ var KIT_ORIGIN_KEY = "kitOrigin";
9602
+ function markKitOrigin(object2, origin) {
9603
+ const node = object2;
9604
+ node.userData = node.userData ?? {};
9605
+ node.userData[KIT_ORIGIN_KEY] = { ...origin };
9606
+ return object2;
9607
+ }
9608
+
9600
9609
  // src/test-area/plants.ts
9601
9610
  var PLANT_SEED = 3;
9602
9611
  var PLANT_DEFS = [
@@ -9640,7 +9649,7 @@ gl_Position = projectionMatrix * mvPosition;
9640
9649
  return plant;
9641
9650
  };
9642
9651
  function buildObject(THREE, def) {
9643
- const root = new THREE.Group();
9652
+ const root = markKitOrigin(new THREE.Group(), { owner: "game-vegetation-three", kind: "plant", id: def.base ?? def.id });
9644
9653
  root.name = def.id;
9645
9654
  const segments = def.segments ?? 1;
9646
9655
  let spacing = 0;