@adatechnology/game-interactables-household 0.7.5 → 0.7.6
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 +4 -4
- package/dist/index.global.js.map +1 -1
- package/dist/index.js +4 -4
- package/dist/index.js.map +1 -1
- package/package.json +4 -4
package/dist/index.global.js
CHANGED
|
@@ -21849,7 +21849,7 @@ var GameInteractablesHousehold = (() => {
|
|
|
21849
21849
|
d: 0.38,
|
|
21850
21850
|
h: 0.3,
|
|
21851
21851
|
y: 0.9,
|
|
21852
|
-
solid:
|
|
21852
|
+
solid: true,
|
|
21853
21853
|
massKg: 14,
|
|
21854
21854
|
sounds: {
|
|
21855
21855
|
leaves: {
|
|
@@ -23144,7 +23144,7 @@ var GameInteractablesHousehold = (() => {
|
|
|
23144
23144
|
}
|
|
23145
23145
|
for (const s of seats) c.add("seats", { ...s, eye: 0.62 });
|
|
23146
23146
|
if (lie) {
|
|
23147
|
-
c.add("seats", { id: "lie", pose: "lie", pos: [0, round3(seatY + 0.
|
|
23147
|
+
c.add("seats", { id: "lie", pose: "lie", pos: [0, round3(seatY + 0.03), round3(sz0 + (sz1 - sz0) * 0.5)], ry: Math.PI / 2, eye: 0.21, exit: [0, 0, round3(hd + 0.55)] });
|
|
23148
23148
|
}
|
|
23149
23149
|
for (const s of c.spec.seats ?? []) c.interact(`sit_${s.id}`, [s.pos[0], round3(s.pos[1] + 0.25), round3(s.pos[2] + 0.3)], { do: "sit", seat: s.id }, s.pose === "lie" ? "prompt.lie" : "prompt.sit", 1.6);
|
|
23150
23150
|
}
|
|
@@ -23201,7 +23201,7 @@ var GameInteractablesHousehold = (() => {
|
|
|
23201
23201
|
const id = double ? `lie_${i + 1}` : "lie";
|
|
23202
23202
|
seats.push(id);
|
|
23203
23203
|
const sx = double ? i === 0 ? -1 : 1 : 0;
|
|
23204
|
-
c.add("seats", { id, pose: "lie", pos: [round3(cx), round3(matTop
|
|
23204
|
+
c.add("seats", { id, pose: "lie", pos: [round3(cx), round3(matTop), round3(-hd + 0.95)], ry: FACE, eye: 0.26, exit: [round3(sx * (hw + 0.5) || hw + 0.5), 0, round3(-hd + 1.1)] });
|
|
23205
23205
|
}
|
|
23206
23206
|
for (const id of seats) {
|
|
23207
23207
|
const s = c.spec.seats.find((x) => x.id === id);
|
|
@@ -23268,7 +23268,7 @@ var GameInteractablesHousehold = (() => {
|
|
|
23268
23268
|
for (const x of [-0.2, 0.2]) c.b("wood", x - 0.02, 0.06, zEnd, x + 0.02, highTop + 0.3, hd, shade(wood, 1.1));
|
|
23269
23269
|
for (let i = 0; i < 5; i++) c.b("wood", -0.2, 0.3 + i * 0.22, zEnd + 5e-3, 0.2, 0.34 + i * 0.22, hd - 0.01, wood);
|
|
23270
23270
|
for (const [id, top, ex] of [["lie_lower", lowTop, 1], ["lie_upper", highTop, -1]]) {
|
|
23271
|
-
c.add("seats", { id, pose: "lie", pos: [0, round3(top
|
|
23271
|
+
c.add("seats", { id, pose: "lie", pos: [0, round3(top), round3(-hd + 0.95)], ry: FACE, eye: 0.26, exit: [round3(ex * (hw + 0.5)), 0, round3(-hd + 1.1)] });
|
|
23272
23272
|
c.interact(`lie_${id}`, [0, round3(top + 0.3), round3(-hd + 0.95)], { do: "sit", seat: id }, "prompt.lie", 1.8);
|
|
23273
23273
|
}
|
|
23274
23274
|
}
|