@adatechnology/game-vehicles-three 0.3.0 → 0.3.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 +80 -71
- package/dist/index.global.js.map +1 -1
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -1
- package/package.json +7 -7
package/dist/index.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
// src/build.ts
|
|
2
|
+
import { markKitOrigin } from "@adatechnology/game-contracts";
|
|
2
3
|
import { colorFromSeed, fleetDims, paintPalettes, paletteOf } from "@adatechnology/game-vehicles-fleet";
|
|
3
4
|
|
|
4
5
|
// src/lite.ts
|
|
@@ -230,6 +231,7 @@ function createVehiclesThree(THREE, options) {
|
|
|
230
231
|
const pivotMatrix = new THREE.Matrix4().makeTranslation(-cx, -bounds.min.y, -cz).multiply(rotation);
|
|
231
232
|
const group = new THREE.Group();
|
|
232
233
|
group.name = `vehicle:${key}`;
|
|
234
|
+
markKitOrigin(group, { owner: "game-vehicles-three", kind: "vehicle", id: key });
|
|
233
235
|
const damageables = kit.damageables(c, pivotMatrix);
|
|
234
236
|
let pruned = 0;
|
|
235
237
|
if (quality === "high") {
|