@adatechnology/game-interactables-three 0.1.7 → 0.1.9
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/dist/index.global.js +10 -1
- package/dist/index.global.js.map +1 -1
- package/dist/index.js +2 -1
- package/dist/index.js.map +1 -1
- package/package.json +6 -5
package/dist/index.global.js
CHANGED
|
@@ -739,6 +739,15 @@ void main() {
|
|
|
739
739
|
return mesh2;
|
|
740
740
|
}
|
|
741
741
|
|
|
742
|
+
// ../game-contracts/dist/index.js
|
|
743
|
+
var KIT_ORIGIN_KEY = "kitOrigin";
|
|
744
|
+
function markKitOrigin(object2, origin) {
|
|
745
|
+
const node = object2;
|
|
746
|
+
node.userData = node.userData ?? {};
|
|
747
|
+
node.userData[KIT_ORIGIN_KEY] = { ...origin };
|
|
748
|
+
return object2;
|
|
749
|
+
}
|
|
750
|
+
|
|
742
751
|
// ../game-shapes/dist/chunk-R4RY23RH.js
|
|
743
752
|
var __defProp2 = Object.defineProperty;
|
|
744
753
|
var __defNormalProp = (obj, key, value) => key in obj ? __defProp2(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
@@ -3425,7 +3434,7 @@ ${QROT}${shader.vertexShader}`;
|
|
|
3425
3434
|
});
|
|
3426
3435
|
const batches = buffers.levels[0]?.batches ?? [];
|
|
3427
3436
|
const of = (id) => ({ batches: batches.filter((b) => b.part === id), points: buffers.points.filter((p) => p.part === id) });
|
|
3428
|
-
const group = new THREE.Group();
|
|
3437
|
+
const group = markKitOrigin(new THREE.Group(), { owner: "game-interactables-three", kind: "furniture", ...spec ? { id: spec.type } : {} });
|
|
3429
3438
|
group.name = "interactable";
|
|
3430
3439
|
const parts = {};
|
|
3431
3440
|
const body = of(null);
|