@adatechnology/game-crowd-three 0.3.1 → 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 +8 -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 +9 -9
package/dist/index.global.js
CHANGED
|
@@ -46,6 +46,13 @@ var GameCrowdThree = (() => {
|
|
|
46
46
|
legRBroken: 256,
|
|
47
47
|
jaw: 512
|
|
48
48
|
};
|
|
49
|
+
var KIT_ORIGIN_KEY = "kitOrigin";
|
|
50
|
+
function markKitOrigin(object2, origin) {
|
|
51
|
+
const node = object2;
|
|
52
|
+
node.userData = node.userData ?? {};
|
|
53
|
+
node.userData[KIT_ORIGIN_KEY] = { ...origin };
|
|
54
|
+
return object2;
|
|
55
|
+
}
|
|
49
56
|
|
|
50
57
|
// ../game-characters/dist/index.js
|
|
51
58
|
var __defProp2 = Object.defineProperty;
|
|
@@ -6558,7 +6565,7 @@ var GameCrowdThree = (() => {
|
|
|
6558
6565
|
var now = () => typeof performance === "undefined" ? Date.now() : performance.now();
|
|
6559
6566
|
function createCrowdRenderer(three, options) {
|
|
6560
6567
|
const { crowd } = options;
|
|
6561
|
-
const group = new three.Group();
|
|
6568
|
+
const group = markKitOrigin(new three.Group(), { owner: "game-crowd-three", kind: "person" });
|
|
6562
6569
|
group.name = "crowd";
|
|
6563
6570
|
const time = { value: 0 };
|
|
6564
6571
|
const eyes = crowd.pack.types.map((type) => type.eye ?? null);
|