@adatechnology/game-crowd-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 +20 -3
- 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;
|
|
@@ -6490,7 +6497,17 @@ var GameCrowdThree = (() => {
|
|
|
6490
6497
|
fem: false,
|
|
6491
6498
|
life: 1,
|
|
6492
6499
|
hs: "short",
|
|
6493
|
-
hair: "2a1e16"
|
|
6500
|
+
hair: "2a1e16",
|
|
6501
|
+
pose: {
|
|
6502
|
+
armL: 0,
|
|
6503
|
+
armR: 0,
|
|
6504
|
+
elbL: -0.12,
|
|
6505
|
+
elbR: -0.12,
|
|
6506
|
+
armOut: 0.11,
|
|
6507
|
+
lean: 0.04,
|
|
6508
|
+
headX: 0,
|
|
6509
|
+
headZ: 0
|
|
6510
|
+
}
|
|
6494
6511
|
},
|
|
6495
6512
|
shirtColor: "3d5a73"
|
|
6496
6513
|
};
|
|
@@ -6517,7 +6534,7 @@ var GameCrowdThree = (() => {
|
|
|
6517
6534
|
},
|
|
6518
6535
|
stances: {
|
|
6519
6536
|
relaxed: {
|
|
6520
|
-
R: { p: [0.2, -0.
|
|
6537
|
+
R: { p: [0.2, -0.22, -0.36], r: [0.05, 1.57, -0.05], grip: 0.2 },
|
|
6521
6538
|
L: "mirror"
|
|
6522
6539
|
},
|
|
6523
6540
|
fists: {
|
|
@@ -6548,7 +6565,7 @@ var GameCrowdThree = (() => {
|
|
|
6548
6565
|
var now = () => typeof performance === "undefined" ? Date.now() : performance.now();
|
|
6549
6566
|
function createCrowdRenderer(three, options) {
|
|
6550
6567
|
const { crowd } = options;
|
|
6551
|
-
const group = new three.Group();
|
|
6568
|
+
const group = markKitOrigin(new three.Group(), { owner: "game-crowd-three", kind: "person" });
|
|
6552
6569
|
group.name = "crowd";
|
|
6553
6570
|
const time = { value: 0 };
|
|
6554
6571
|
const eyes = crowd.pack.types.map((type) => type.eye ?? null);
|