@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.js CHANGED
@@ -2074,7 +2074,7 @@ var types_default = [
2074
2074
  d: 0.38,
2075
2075
  h: 0.3,
2076
2076
  y: 0.9,
2077
- solid: false,
2077
+ solid: true,
2078
2078
  massKg: 14,
2079
2079
  sounds: {
2080
2080
  leaves: {
@@ -3369,7 +3369,7 @@ function sofaLike(c, n, lie) {
3369
3369
  }
3370
3370
  for (const s of seats) c.add("seats", { ...s, eye: 0.62 });
3371
3371
  if (lie) {
3372
- c.add("seats", { id: "lie", pose: "lie", pos: [0, round3(seatY + 0.06), round3(sz0 + (sz1 - sz0) * 0.5)], ry: Math.PI / 2, exit: [0, 0, round3(hd + 0.55)] });
3372
+ 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)] });
3373
3373
  }
3374
3374
  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);
3375
3375
  }
@@ -3426,7 +3426,7 @@ function bedBuild(c, double) {
3426
3426
  const id = double ? `lie_${i + 1}` : "lie";
3427
3427
  seats.push(id);
3428
3428
  const sx = double ? i === 0 ? -1 : 1 : 0;
3429
- c.add("seats", { id, pose: "lie", pos: [round3(cx), round3(matTop + 0.06), round3(-hd + 0.95)], ry: FACE, eye: 0.2, exit: [round3(sx * (hw + 0.5) || hw + 0.5), 0, round3(-hd + 1.1)] });
3429
+ 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)] });
3430
3430
  }
3431
3431
  for (const id of seats) {
3432
3432
  const s = c.spec.seats.find((x) => x.id === id);
@@ -3493,7 +3493,7 @@ function bunkBed(c) {
3493
3493
  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));
3494
3494
  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);
3495
3495
  for (const [id, top, ex] of [["lie_lower", lowTop, 1], ["lie_upper", highTop, -1]]) {
3496
- c.add("seats", { id, pose: "lie", pos: [0, round3(top + 0.06), round3(-hd + 0.95)], ry: FACE, eye: 0.2, exit: [round3(ex * (hw + 0.5)), 0, round3(-hd + 1.1)] });
3496
+ 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)] });
3497
3497
  c.interact(`lie_${id}`, [0, round3(top + 0.3), round3(-hd + 0.95)], { do: "sit", seat: id }, "prompt.lie", 1.8);
3498
3498
  }
3499
3499
  }