@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.js
CHANGED
|
@@ -698,6 +698,7 @@ function createCord(THREE, points, radius, material, radialSegments = 5) {
|
|
|
698
698
|
}
|
|
699
699
|
|
|
700
700
|
// src/mesh.ts
|
|
701
|
+
import { markKitOrigin } from "@adatechnology/game-contracts";
|
|
701
702
|
import { createShapeRecorder } from "@adatechnology/game-props3d";
|
|
702
703
|
import { colorChannels, generate } from "@adatechnology/game-shapes";
|
|
703
704
|
|
|
@@ -1135,7 +1136,7 @@ function createMeshApi(THREE, options = {}) {
|
|
|
1135
1136
|
});
|
|
1136
1137
|
const batches = buffers.levels[0]?.batches ?? [];
|
|
1137
1138
|
const of = (id) => ({ batches: batches.filter((b) => b.part === id), points: buffers.points.filter((p) => p.part === id) });
|
|
1138
|
-
const group = new THREE.Group();
|
|
1139
|
+
const group = markKitOrigin(new THREE.Group(), { owner: "game-interactables-three", kind: "furniture", ...spec ? { id: spec.type } : {} });
|
|
1139
1140
|
group.name = "interactable";
|
|
1140
1141
|
const parts = {};
|
|
1141
1142
|
const body = of(null);
|