@adatechnology/game-animals-three 0.3.0 → 0.3.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.
- package/dist/index.global.js +10 -0
- package/dist/index.global.js.map +1 -1
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -1
- package/package.json +5 -5
package/dist/index.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
// src/index.ts
|
|
2
2
|
import { GAIT_PHASES } from "@adatechnology/game-animals";
|
|
3
|
+
import { markKitOrigin } from "@adatechnology/game-contracts";
|
|
3
4
|
import { collectReferencedNodes, createNodeSkin } from "@adatechnology/game-props3d";
|
|
4
5
|
import { shapeGeometries as shapeGeometries2 } from "@adatechnology/game-shapes-three";
|
|
5
6
|
|
|
@@ -1216,6 +1217,7 @@ var createAnimalsThree = (host, options = {}) => {
|
|
|
1216
1217
|
else if (species.body.kind === "bird") buildBird(THREE, rig, { extra: BIRD_EXTRAS[species.id] });
|
|
1217
1218
|
else buildQuadruped(THREE, rig, { document: species.body.texture ? documentOf() : void 0, extra: QUADRUPED_EXTRAS[species.id] });
|
|
1218
1219
|
rig.triangles = countTriangles(rig.root);
|
|
1220
|
+
markKitOrigin(rig.root, { owner: "game-animals-three", kind: "animal", id: species.id });
|
|
1219
1221
|
rig.root.traverse((object) => {
|
|
1220
1222
|
if (object.isMesh) object.userData.speciesId = species.id;
|
|
1221
1223
|
});
|