@adatechnology/game-interactables-three 0.4.0 → 0.4.1
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 +1 -1
- package/dist/index.global.js.map +1 -1
- package/dist/index.js +4 -4
- package/dist/index.js.map +1 -1
- package/package.json +9 -9
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// src/effects.ts
|
|
2
|
-
import { warnOnce } from "@adatechnology/game-contracts";
|
|
2
|
+
import { markKitOrigin, warnOnce } from "@adatechnology/game-contracts";
|
|
3
3
|
|
|
4
4
|
// src/routed-particles.ts
|
|
5
5
|
var channel = (value) => Math.round(Math.min(1, Math.max(0, value)) * 255);
|
|
@@ -179,7 +179,7 @@ function createEffects(THREE, a, b = {}) {
|
|
|
179
179
|
depthWrite: false,
|
|
180
180
|
blending: additive ? THREE.AdditiveBlending : THREE.NormalBlending
|
|
181
181
|
});
|
|
182
|
-
const points = new THREE.Points(geo, mat);
|
|
182
|
+
const points = markKitOrigin(new THREE.Points(geo, mat), { owner: "game-interactables-three", kind: "effect", id: kind });
|
|
183
183
|
points.frustumCulled = false;
|
|
184
184
|
points.name = `effects:${kind}`;
|
|
185
185
|
scene.add(points);
|
|
@@ -724,7 +724,7 @@ function createEffects(THREE, a, b = {}) {
|
|
|
724
724
|
import { createCord, catenary } from "@adatechnology/game-shapes-three";
|
|
725
725
|
|
|
726
726
|
// src/mesh.ts
|
|
727
|
-
import { markKitOrigin } from "@adatechnology/game-contracts";
|
|
727
|
+
import { markKitOrigin as markKitOrigin2 } from "@adatechnology/game-contracts";
|
|
728
728
|
import { LIGHT_PRIORITY } from "@adatechnology/game-render-three";
|
|
729
729
|
import { createShapeRecorder } from "@adatechnology/game-props3d";
|
|
730
730
|
import { colorChannels, generate } from "@adatechnology/game-shapes";
|
|
@@ -1445,7 +1445,7 @@ function createMeshApi(THREE, options = {}) {
|
|
|
1445
1445
|
});
|
|
1446
1446
|
const batches = buffers.levels[0]?.batches ?? [];
|
|
1447
1447
|
const of = (id) => ({ batches: batches.filter((b) => b.part === id), points: buffers.points.filter((p) => p.part === id) });
|
|
1448
|
-
const group =
|
|
1448
|
+
const group = markKitOrigin2(new THREE.Group(), { owner: "game-interactables-three", kind: "furniture", ...spec ? { id: spec.type } : {} });
|
|
1449
1449
|
group.name = "interactable";
|
|
1450
1450
|
const parts = {};
|
|
1451
1451
|
const body = of(null);
|