@adatechnology/game-interactables-household 0.6.0 → 0.7.1
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.d.ts +3 -1
- package/dist/index.global.js +116 -57
- package/dist/index.global.js.map +1 -1
- package/dist/index.js +116 -57
- package/dist/index.js.map +1 -1
- package/package.json +4 -4
package/dist/index.js
CHANGED
|
@@ -42,6 +42,7 @@ var DESTRUCTION = {
|
|
|
42
42
|
wall_switch: { body: { material: "plastic", joint: "screw" }, parts: [["rocker", { material: "plastic", joint: "clip", piece: "rocker" }]] },
|
|
43
43
|
service_entrance: { body: { material: "steel", joint: "bolt" }, parts: [["meter_door", door("steel")]] },
|
|
44
44
|
conduit_run: { body: { material: "plastic", joint: "clip" }, parts: [] },
|
|
45
|
+
service_mast: { body: { material: "steel", joint: "clip" }, parts: [] },
|
|
45
46
|
electrical_panel: {
|
|
46
47
|
body: { material: "steel", joint: "screw" },
|
|
47
48
|
parts: [[/^breaker/, { material: "plastic", joint: "clip", piece: "breaker" }], ["door", door("steel")]]
|
|
@@ -1235,6 +1236,7 @@ var en_default = {
|
|
|
1235
1236
|
"type.wall_socket": "Wall socket",
|
|
1236
1237
|
"type.wall_switch": "Light switch",
|
|
1237
1238
|
"type.service_entrance": "Service entrance pole",
|
|
1239
|
+
"type.service_mast": "Service mast (pontalete)",
|
|
1238
1240
|
"type.conduit_run": "Conduit run",
|
|
1239
1241
|
"type.tv": "Television",
|
|
1240
1242
|
"type.microwave": "Microwave",
|
|
@@ -1479,6 +1481,7 @@ var pt_BR_default = {
|
|
|
1479
1481
|
"type.wall_socket": "Tomada",
|
|
1480
1482
|
"type.wall_switch": "Interruptor",
|
|
1481
1483
|
"type.service_entrance": "Poste de entrada de energia",
|
|
1484
|
+
"type.service_mast": "Pontalete de entrada de energia",
|
|
1482
1485
|
"type.conduit_run": "Eletroduto",
|
|
1483
1486
|
"type.tv": "Televis\xE3o",
|
|
1484
1487
|
"type.microwave": "Micro-ondas",
|
|
@@ -1985,6 +1988,17 @@ var types_default = [
|
|
|
1985
1988
|
solid: true,
|
|
1986
1989
|
massKg: 60
|
|
1987
1990
|
},
|
|
1991
|
+
{
|
|
1992
|
+
id: "service_mast",
|
|
1993
|
+
group: "electrical",
|
|
1994
|
+
w: 0.1,
|
|
1995
|
+
d: 0.25,
|
|
1996
|
+
h: 4.4,
|
|
1997
|
+
y: 0,
|
|
1998
|
+
solid: true,
|
|
1999
|
+
massKg: 14,
|
|
2000
|
+
fixed: true
|
|
2001
|
+
},
|
|
1988
2002
|
{
|
|
1989
2003
|
id: "electrical_panel",
|
|
1990
2004
|
group: "electrical",
|
|
@@ -2340,8 +2354,8 @@ function handle(c, kind, x, y, zf, len, color) {
|
|
|
2340
2354
|
const oy = vertical ? s * (len / 2 - 0.025) : 0;
|
|
2341
2355
|
c.b("metal", x + ox - 6e-3, y + oy - 6e-3, zf, x + ox + 6e-3, y + oy + 6e-3, zf + 0.02, dark);
|
|
2342
2356
|
}
|
|
2343
|
-
c.b("metal", x - gx / 2, y - gy / 2, zf + 0.018, x + gx / 2, y + gy / 2, zf + HANDLE, color);
|
|
2344
|
-
c.b("metal", x - gx / 2 + (vertical ? 3e-3 : 0), y - gy / 2 + (vertical ? 0 : 3e-3), zf + HANDLE, x + gx / 2 - (vertical ? 3e-3 : 0), y + gy / 2 - (vertical ? 0 : 3e-3), zf + HANDLE
|
|
2357
|
+
c.b("metal", x - gx / 2, y - gy / 2, zf + 0.018, x + gx / 2, y + gy / 2, zf + HANDLE - 2e-3, color);
|
|
2358
|
+
c.b("metal", x - gx / 2 + (vertical ? 3e-3 : 0), y - gy / 2 + (vertical ? 0 : 3e-3), zf + HANDLE - 2e-3, x + gx / 2 - (vertical ? 3e-3 : 0), y + gy / 2 - (vertical ? 0 : 3e-3), zf + HANDLE, shade(color, 1.2));
|
|
2345
2359
|
}
|
|
2346
2360
|
function hingedDoor(c, o) {
|
|
2347
2361
|
const t = o.t ?? 0.02;
|
|
@@ -2372,11 +2386,11 @@ function hingedDoor(c, o) {
|
|
|
2372
2386
|
c.b(mat, o.x0, o.y0 + r, o.zf - 3e-3, o.x0 + r, o.y1 - r, o.zf, shade(o.color, 1.06));
|
|
2373
2387
|
c.b(mat, o.x1 - r, o.y0 + r, o.zf - 3e-3, o.x1, o.y1 - r, o.zf, shade(o.color, 1.06));
|
|
2374
2388
|
} else {
|
|
2375
|
-
c.b(mat, o.x0, o.y0, zIn, o.x1, o.y1, o.zf, o.color);
|
|
2376
|
-
c.b(mat, o.x0 + 6e-3, o.y0 + 6e-3, o.zf -
|
|
2389
|
+
c.b(mat, o.x0, o.y0, zIn, o.x1, o.y1, o.zf - 2e-3, o.color);
|
|
2390
|
+
c.b(mat, o.x0 + 6e-3, o.y0 + 6e-3, o.zf - 4e-3, o.x1 - 6e-3, o.y1 - 6e-3, o.zf, shade(o.color, 1.04));
|
|
2377
2391
|
}
|
|
2378
2392
|
const inner = o.inner ?? mix(o.color, 16777215, 0.55);
|
|
2379
|
-
c.b("plain", o.x0 + 0.014, o.y0 + 0.014, zIn -
|
|
2393
|
+
c.b("plain", o.x0 + 0.014, o.y0 + 0.014, zIn - 3e-3, o.x1 - 0.014, o.y1 - 0.014, zIn, inner);
|
|
2380
2394
|
c.b("plain", o.x0 + 6e-3, o.y0 + 6e-3, zIn - 2e-3, o.x1 - 6e-3, o.y0 + 0.014, zIn, 3815996);
|
|
2381
2395
|
c.b("plain", o.x0 + 6e-3, o.y1 - 0.014, zIn - 2e-3, o.x1 - 6e-3, o.y1 - 6e-3, zIn, 3815996);
|
|
2382
2396
|
c.b("plain", o.x0 + 6e-3, o.y0 + 0.014, zIn - 2e-3, o.x0 + 0.014, o.y1 - 0.014, zIn, 3815996);
|
|
@@ -2414,7 +2428,7 @@ function drawer2(c, o) {
|
|
|
2414
2428
|
const m = Math.min(0.04, (o.y1 - o.y0) / 4);
|
|
2415
2429
|
c.b("wood", o.x0 + m, o.y0 + m, o.zf - 5e-3, o.x1 - m, o.y1 - m, o.zf - 1e-3, shade(o.color, 0.94));
|
|
2416
2430
|
c.b("wood", o.x0 + m + 0.01, o.y0 + m + 0.01, o.zf - 1e-3, o.x1 - m - 0.01, o.y1 - m - 0.01, o.zf, mix(o.color, 16777215, 0.08));
|
|
2417
|
-
c.b("wood", bx0, yb, zBack, bx1, yb + 8e-3, zFront, shade(o.color, 0.85));
|
|
2431
|
+
c.b("wood", bx0 + th, yb, zBack + th, bx1 - th, yb + 8e-3, zFront, shade(o.color, 0.85));
|
|
2418
2432
|
c.b("wood", bx0, yb, zBack, bx0 + th, yt, zFront, shade(o.color, 0.88));
|
|
2419
2433
|
c.b("wood", bx1 - th, yb, zBack, bx1, yt, zFront, shade(o.color, 0.88));
|
|
2420
2434
|
c.b("wood", bx0 + th, yb, zBack, bx1 - th, yt, zBack + th, shade(o.color, 0.82));
|
|
@@ -2455,10 +2469,10 @@ function shell(c, o) {
|
|
|
2455
2469
|
}
|
|
2456
2470
|
function shelf(c, x0, x1, y, z0, z1, color, t = 0.016, glass = false) {
|
|
2457
2471
|
if (glass) {
|
|
2458
|
-
c.b("glass", x0, y - 6e-3, z0, x1, y, z1, 13625066);
|
|
2472
|
+
c.b("glass", x0, y - 6e-3, z0, x1, y, z1 - 0.012, 13625066);
|
|
2459
2473
|
c.b("plain", x0, y - 8e-3, z1 - 0.012, x1, y + 0.012, z1, 15003376);
|
|
2460
2474
|
} else {
|
|
2461
|
-
c.b("wood", x0, y - t, z0, x1, y, z1, color);
|
|
2475
|
+
c.b("wood", x0, y - t, z0, x1, y, z1 - 3e-3, color);
|
|
2462
2476
|
c.b("wood", x0, y - t, z1 - 3e-3, x1, y, z1, shade(color, 1.12));
|
|
2463
2477
|
}
|
|
2464
2478
|
}
|
|
@@ -2492,7 +2506,8 @@ function plugged(c, id, kind, watts, plug, o = {}) {
|
|
|
2492
2506
|
id: `${id}_cord`,
|
|
2493
2507
|
kind: "cord",
|
|
2494
2508
|
radius: 4e-3,
|
|
2495
|
-
|
|
2509
|
+
// (down the back from the plug, never behind it: behind the back is the wall the device stands against)
|
|
2510
|
+
points: [plug, [plug[0], Math.max(floor, plug[1] - 0.08), plug[2]], [plug[0] + 0.05, floor, plug[2]]]
|
|
2496
2511
|
});
|
|
2497
2512
|
}
|
|
2498
2513
|
|
|
@@ -2544,7 +2559,20 @@ function wallSwitch(c) {
|
|
|
2544
2559
|
c.interact("use_switch", [0, round3(cy), round3(zp + 0.02)], { do: "toggle_switch", switch: "switch" }, "prompt.switch", 1);
|
|
2545
2560
|
c.spec.colliders = [];
|
|
2546
2561
|
}
|
|
2562
|
+
var NETWORK_POST = { half: 0.07, anchor: 5.7, bracket: 0.06 };
|
|
2563
|
+
function networkPost(c) {
|
|
2564
|
+
const { h } = c;
|
|
2565
|
+
const { half, anchor, bracket } = NETWORK_POST;
|
|
2566
|
+
c.b("plain", -half, 0, -half, half, h, half, c.main(11119009));
|
|
2567
|
+
c.b("metal", -0.02, anchor - 0.06, -half - bracket, 0.02, anchor + 0.04, -half - 2e-3, 4869200);
|
|
2568
|
+
c.add("wires", { id: "earth", kind: "cable", radius: 6e-3, points: [[0.04, 1.2, -half - 0.01], [0.04, 0.9, -half - 0.05], [0.04, 0.05, -half - 0.12]] });
|
|
2569
|
+
c.cyl("metal", 0.04, 1e-3, -half - 0.12, 0.01, 0.3, 12088115, "cyl6");
|
|
2570
|
+
c.spec.colliders = [];
|
|
2571
|
+
c.collider("pole", -half, 0, -half, half, h, half);
|
|
2572
|
+
c.add("damage", { target: "self", kind: "masonry", hp: 400 });
|
|
2573
|
+
}
|
|
2547
2574
|
function serviceEntrance(c) {
|
|
2575
|
+
if (c.M.variant === "network") return networkPost(c);
|
|
2548
2576
|
const { hw, h } = c;
|
|
2549
2577
|
const pole = c.main(11119009);
|
|
2550
2578
|
const top = h - 0.1;
|
|
@@ -2619,6 +2647,33 @@ function conduitRun(c) {
|
|
|
2619
2647
|
c.add("wires", { id: "conduit", kind: "conduit", radius: 0.012, points: pts });
|
|
2620
2648
|
c.spec.colliders = [];
|
|
2621
2649
|
}
|
|
2650
|
+
var MAST = { radius: 0.021, bend: 0.08, capRadius: 0.032, capLength: 0.06, color: 11120307 };
|
|
2651
|
+
function mastAxis(h) {
|
|
2652
|
+
const top = h - MAST.bend - MAST.radius * 1.2;
|
|
2653
|
+
const arc = Array.from({ length: 8 }, (_, index) => {
|
|
2654
|
+
const angle = Math.PI * (index + 1) / 8;
|
|
2655
|
+
return [0, round3(top + MAST.bend * Math.sin(angle)), round3(-MAST.bend * Math.cos(angle))];
|
|
2656
|
+
});
|
|
2657
|
+
return [[0, 0, -MAST.bend], [0, top, -MAST.bend], ...arc];
|
|
2658
|
+
}
|
|
2659
|
+
function pipeSegment(c, a, b) {
|
|
2660
|
+
const dy = b[1] - a[1];
|
|
2661
|
+
const dz = b[2] - a[2];
|
|
2662
|
+
const length = Math.hypot(dy, dz);
|
|
2663
|
+
if (length < 1e-4) return;
|
|
2664
|
+
if (Math.abs(dz) < 1e-6 && dy > 0) return void c.cyl("metal", a[0], a[1], a[2], MAST.radius, length, MAST.color, "cyl");
|
|
2665
|
+
const reach = length + MAST.radius * 0.4;
|
|
2666
|
+
c.cyl("metal", a[0], (a[1] + b[1]) / 2, (a[2] + b[2]) / 2, MAST.radius, reach, MAST.color, "cyl", Math.atan2(dz, dy), 0);
|
|
2667
|
+
}
|
|
2668
|
+
function serviceMast(c) {
|
|
2669
|
+
const points = c.M.points && c.M.points.length >= 2 ? c.M.points.map((p) => [...p]) : mastAxis(c.h);
|
|
2670
|
+
for (let index = 0; index + 1 < points.length; index++) pipeSegment(c, points[index], points[index + 1]);
|
|
2671
|
+
const end = points[points.length - 1];
|
|
2672
|
+
c.cyl("metal", end[0], end[1] - MAST.capLength, end[2], MAST.capRadius, MAST.capLength, MAST.color, "cyl");
|
|
2673
|
+
c.spec.colliders = [];
|
|
2674
|
+
const foot = points[0];
|
|
2675
|
+
c.collider("mast", foot[0] - MAST.radius, foot[1], foot[2] - MAST.radius, foot[0] + MAST.radius, end[1], foot[2] + MAST.radius);
|
|
2676
|
+
}
|
|
2622
2677
|
function tv(c) {
|
|
2623
2678
|
const { hw, hd, w, h, y0 } = c;
|
|
2624
2679
|
const bz = 0.04;
|
|
@@ -2837,8 +2892,8 @@ var STOVE_WALL_GAP = 0.04;
|
|
|
2837
2892
|
var STEEL = 11843772;
|
|
2838
2893
|
var CHROME = 13817562;
|
|
2839
2894
|
function tap2(c, x, y, z, id, partId) {
|
|
2840
|
-
c.cyl("metal", x, y, z, 0.03, 0.
|
|
2841
|
-
c.cyl("metal", x, y + 0.02, z, 0.017, 0.
|
|
2895
|
+
c.cyl("metal", x, y - 2e-3, z, 0.03, 0.022, STEEL, "cyl");
|
|
2896
|
+
c.cyl("metal", x, y + 0.02, z, 0.017, 0.19, CHROME, "cyl");
|
|
2842
2897
|
c.cyl("metal", x, y + 0.2, z, 0.021, 0.02, STEEL, "cyl");
|
|
2843
2898
|
c.b("metal", x - 0.015, y + 0.205, z, x + 0.015, y + 0.235, z + 0.015, CHROME);
|
|
2844
2899
|
c.b("metal", x - 0.014, y + 0.205, z + 0.015, x + 0.014, y + 0.235, z + 0.19, CHROME);
|
|
@@ -2996,10 +3051,11 @@ function counterWithBasin(c, o) {
|
|
|
2996
3051
|
const y0 = o.top - 0.04;
|
|
2997
3052
|
const zf = hd - HANDLE + 0.02;
|
|
2998
3053
|
const col = o.counter;
|
|
2999
|
-
|
|
3000
|
-
c.b("wood",
|
|
3001
|
-
c.b("wood", o.
|
|
3002
|
-
c.b("wood", o.bx0, y0,
|
|
3054
|
+
const g = 0.01;
|
|
3055
|
+
c.b("wood", -hw, y0, -hd, o.bx0 - g, o.top, zf, col);
|
|
3056
|
+
c.b("wood", o.bx1 + g, y0, -hd, hw, o.top, zf, col);
|
|
3057
|
+
c.b("wood", o.bx0 - g, y0, -hd, o.bx1 + g, o.top, o.bz0 - g, col);
|
|
3058
|
+
c.b("wood", o.bx0 - g, y0, o.bz1 + g, o.bx1 + g, o.top, zf, col);
|
|
3003
3059
|
const wall = o.steel ? 12896460 : 16054006;
|
|
3004
3060
|
const floor = o.steel ? 11449014 : 15133162;
|
|
3005
3061
|
const mat = o.steel ? "metal" : "plain";
|
|
@@ -3016,10 +3072,10 @@ function counterWithBasin(c, o) {
|
|
|
3016
3072
|
c.b(mat, o.bx1, o.top, o.bz0, o.bx1 + 0.02, o.top + 4e-3, o.bz1, wall);
|
|
3017
3073
|
}
|
|
3018
3074
|
function pipes(c, x, top, z) {
|
|
3019
|
-
const wall = -c.hd +
|
|
3075
|
+
const wall = -c.hd + 2e-3;
|
|
3020
3076
|
c.cyl("metal", x, 0.2, z, 0.02, top - 0.2 - 0.12, 13159632, "cyl6");
|
|
3021
3077
|
c.rod("plain", "x", x + 0.06, 0.2, z, 0.02, 0.14, 15263976, "cyl6");
|
|
3022
|
-
c.cyl("plain", x + 0.13, 0.
|
|
3078
|
+
c.cyl("plain", x + 0.13, 0.07, z, 0.022, 0.15, 15263976, "cyl6");
|
|
3023
3079
|
c.rod("plain", "z", x + 0.13, 0.09, (z + wall) / 2, 0.02, z - wall, 15263976, "cyl6");
|
|
3024
3080
|
}
|
|
3025
3081
|
function sinkKitchen(c) {
|
|
@@ -3084,7 +3140,7 @@ function utilitySink(c) {
|
|
|
3084
3140
|
const tubTop = 0.88;
|
|
3085
3141
|
const wall = 13619664;
|
|
3086
3142
|
const bw = c.w - 0.04;
|
|
3087
|
-
for (const sx of [-1, 1]) for (const sz of [-1, 1]) c.b("metal", sx * (hw - 0.04) - 0.02, 0, sz * (hd - 0.04) - 0.02, sx * (hw - 0.04) + 0.02, tubTop - 0.
|
|
3143
|
+
for (const sx of [-1, 1]) for (const sz of [-1, 1]) c.b("metal", sx * (hw - 0.04) - 0.02, 0, sz * (hd - 0.04) - 0.02, sx * (hw - 0.04) + 0.02, tubTop - 0.32, sz * (hd - 0.04) + 0.02, 6975090);
|
|
3088
3144
|
c.b("metal", -hw, tubTop - 0.34, -hd, hw, tubTop - 0.3, hd, 6975090);
|
|
3089
3145
|
const x0 = -bw / 2;
|
|
3090
3146
|
const x1 = bw / 2;
|
|
@@ -3219,16 +3275,16 @@ function sofaLike(c, n, lie) {
|
|
|
3219
3275
|
const baseTop = 0.28;
|
|
3220
3276
|
for (const sx of [-1, 1]) for (const sz of [-1, 1]) c.b("wood", sx * (hw - 0.07) - 0.025, 0, sz * (hd - 0.07) - 0.025, sx * (hw - 0.07) + 0.025, legH, sz * (hd - 0.07) + 0.025, 3811870);
|
|
3221
3277
|
c.b("fabric", -hw, legH, -hd, hw, baseTop, hd, dark);
|
|
3222
|
-
c.b("fabric", -hw + armW, baseTop - 0.01, hd - 0.02, hw - armW, baseTop + 0.02, hd, shade(fab, 0.7));
|
|
3278
|
+
c.b("fabric", -hw + armW, baseTop - 0.01, hd - 0.02, hw - armW, baseTop + 0.02, hd + 4e-3, shade(fab, 0.7));
|
|
3223
3279
|
const bt = 0.2;
|
|
3224
3280
|
c.b("fabric", -hw, baseTop, -hd, hw, h - 0.07 - bt / 2, -hd + bt, fab);
|
|
3225
|
-
c.rod("fabric", "x", 0, h - 0.07 - bt / 2, -hd + bt / 2, bt / 2, c.w, fab);
|
|
3281
|
+
c.rod("fabric", "x", 0, h - 0.07 - bt / 2, -hd + bt / 2, bt / 2, c.w - 4e-3, fab);
|
|
3226
3282
|
const armTop = 0.62;
|
|
3227
3283
|
for (const s of [-1, 1]) {
|
|
3228
3284
|
const x0 = s < 0 ? -hw : hw - armW;
|
|
3229
|
-
c.b("fabric", x0, baseTop, -hd + bt, x0 + armW, armTop - armW / 2, hd, fab);
|
|
3230
|
-
c.rod("fabric", "z", x0 + armW / 2, armTop - armW / 2, (-hd + bt + hd) / 2, armW / 2, hd - (-hd + bt), fab);
|
|
3231
|
-
c.b("fabric", s < 0 ? x0 + armW - 0.012 : x0, baseTop + 0.02, -hd + bt, s < 0 ? x0 + armW : x0 + 0.012, armTop - armW / 2, hd - 0.02, light);
|
|
3285
|
+
c.b("fabric", s < 0 ? x0 : x0 + 6e-3, baseTop, -hd + bt, s < 0 ? x0 + armW - 6e-3 : x0 + armW, armTop - armW / 2, hd, fab);
|
|
3286
|
+
c.rod("fabric", "z", x0 + armW / 2, armTop - armW / 2, (-hd + bt + hd) / 2, armW / 2, hd - (-hd + bt) - 4e-3, fab);
|
|
3287
|
+
c.b("fabric", s < 0 ? x0 + armW - 0.012 : x0, baseTop + 0.02, -hd + bt + 3e-3, s < 0 ? x0 + armW : x0 + 0.012, armTop - armW / 2 + 3e-3, hd - 0.02, light);
|
|
3232
3288
|
}
|
|
3233
3289
|
const ix0 = -hw + armW;
|
|
3234
3290
|
const ix1 = hw - armW;
|
|
@@ -3242,7 +3298,7 @@ function sofaLike(c, n, lie) {
|
|
|
3242
3298
|
const col = i % 2 === 0 ? light : fab;
|
|
3243
3299
|
c.b("fabric", x0, baseTop + 0.02, sz0 + 0.02, x1, seatY, sz1, col);
|
|
3244
3300
|
c.b("fabric", x0 + 0.01, seatY, sz0 + 0.03, x1 - 0.01, seatY + 0.025, sz1 - 0.01, mix(col, 16777215, 0.06));
|
|
3245
|
-
c.b("fabric", x0, baseTop + 0.
|
|
3301
|
+
c.b("fabric", x0 + 3e-3, baseTop + 0.025, sz1 - 6e-3, x1 - 3e-3, seatY + 0.02, sz1 + 3e-3, shade(col, 0.75));
|
|
3246
3302
|
c.b("fabric", x0 + 5e-3, seatY + 0.02, sz0 + 0.02, x1 - 5e-3, h - 0.12, sz0 + 0.19, col, 0, -0.18);
|
|
3247
3303
|
const cx = (x0 + x1) / 2;
|
|
3248
3304
|
seats.push({ id: `seat_${i + 1}`, pose: "sit", pos: [round3(cx), round3(seatY + 0.03), round3(sz0 + (sz1 - sz0) * 0.55)], ry: FACE, exit: [round3(cx), 0, round3(hd + 0.55)] });
|
|
@@ -3266,14 +3322,14 @@ function diningChair(c) {
|
|
|
3266
3322
|
const seatY = 0.45;
|
|
3267
3323
|
const lt = 0.035;
|
|
3268
3324
|
for (const sx of [-1, 1]) for (const sz of [-1, 1]) c.b("wood", sx * (hw - lt / 2 - 0.01) - lt / 2, 0, sz * (hd - lt / 2 - 0.01) - lt / 2, sx * (hw - lt / 2 - 0.01) + lt / 2, sz < 0 ? h : seatY - 0.03, sz * (hd - lt / 2 - 0.01) + lt / 2, shade(wood, sz < 0 ? 0.9 : 1));
|
|
3269
|
-
c.b("wood", -hw + 0.
|
|
3270
|
-
c.b("wood", -hw + 0.
|
|
3271
|
-
c.b("wood", -hw + 0.
|
|
3272
|
-
c.b("wood", hw - 0.04, seatY - 0.09, -hd + 0.04, hw - 0.
|
|
3325
|
+
c.b("wood", -hw + 0.014, seatY - 0.09, -hd + 0.014, hw - 0.014, seatY - 0.04, -hd + 0.04, shade(wood, 0.85));
|
|
3326
|
+
c.b("wood", -hw + 0.014, seatY - 0.09, hd - 0.04, hw - 0.014, seatY - 0.04, hd - 0.014, shade(wood, 0.85));
|
|
3327
|
+
c.b("wood", -hw + 0.014, seatY - 0.09, -hd + 0.04, -hw + 0.04, seatY - 0.04, hd - 0.04, shade(wood, 0.85));
|
|
3328
|
+
c.b("wood", hw - 0.04, seatY - 0.09, -hd + 0.04, hw - 0.014, seatY - 0.04, hd - 0.04, shade(wood, 0.85));
|
|
3273
3329
|
c.b("wood", -hw, seatY - 0.03, -hd, hw, seatY, hd, wood);
|
|
3274
3330
|
c.b("fabric", -hw + 0.02, seatY, -hd + 0.05, hw - 0.02, seatY + 0.04, hd - 0.02, cush);
|
|
3275
3331
|
c.b("fabric", -hw + 0.03, seatY + 0.04, -hd + 0.06, hw - 0.03, seatY + 0.045, hd - 0.03, mix(cush, 16777215, 0.1));
|
|
3276
|
-
c.b("wood", -hw + 0.
|
|
3332
|
+
c.b("wood", -hw + 0.014, h - 0.1, -hd + 0.014, hw - 0.014, h - 0.03, -hd + 0.04, wood);
|
|
3277
3333
|
for (let i = 0; i < 3; i++) c.b("wood", -hw + 0.07 + i * ((c.w - 0.14) / 3), seatY + 0.06, -hd + 0.015, -hw + 0.07 + i * ((c.w - 0.14) / 3) + 0.04, h - 0.1, -hd + 0.035, shade(wood, 1.05));
|
|
3278
3334
|
c.add("seats", { id: "seat", pose: "sit", pos: [0, round3(seatY + 0.05), 0.02], ry: FACE, exit: [0, 0, round3(hd + 0.45)] });
|
|
3279
3335
|
c.interact("sit", [0, seatY + 0.3, 0.1], { do: "sit", seat: "seat" }, "prompt.sit", 1.5);
|
|
@@ -3285,8 +3341,8 @@ function bedBuild(c, double) {
|
|
|
3285
3341
|
const frameTop = 0.3;
|
|
3286
3342
|
const matTop = 0.54;
|
|
3287
3343
|
for (const sx of [-1, 1]) for (const sz of [-1, 1]) c.b("wood", sx * (hw - 0.04) - 0.035, 0, sz * (hd - 0.04) - 0.035, sx * (hw - 0.04) + 0.035, 0.16, sz * (hd - 0.04) + 0.035, shade(wood, 0.8));
|
|
3288
|
-
c.b("wood", -hw, 0.14, -hd, -hw + 0.05, frameTop, hd, wood);
|
|
3289
|
-
c.b("wood", hw - 0.05, 0.14, -hd, hw, frameTop, hd, wood);
|
|
3344
|
+
c.b("wood", -hw, 0.14, -hd + 0.06, -hw + 0.05, frameTop, hd - 0.05, wood);
|
|
3345
|
+
c.b("wood", hw - 0.05, 0.14, -hd + 0.06, hw, frameTop, hd - 0.05, wood);
|
|
3290
3346
|
c.b("wood", -hw, 0.14, hd - 0.05, hw, 0.44, hd, shade(wood, 1.05));
|
|
3291
3347
|
c.b("wood", -hw, 0.14, -hd, hw, h, -hd + 0.06, shade(wood, 0.92));
|
|
3292
3348
|
c.b("wood", -hw + 0.06, h - 0.08, -hd + 0.06, hw - 0.06, h - 0.02, -hd + 0.07, shade(wood, 1.12));
|
|
@@ -3328,10 +3384,10 @@ function bench(c) {
|
|
|
3328
3384
|
const x = sx * (hw - 0.06);
|
|
3329
3385
|
c.b("metal", x - 0.025, 0, -hd + 0.05, x + 0.025, seatY - 0.03, -hd + 0.09, iron);
|
|
3330
3386
|
c.b("metal", x - 0.025, 0, hd - 0.09, x + 0.025, seatY - 0.03, hd - 0.05, iron);
|
|
3331
|
-
c.b("metal", x - 0.
|
|
3387
|
+
c.b("metal", x - 0.02, seatY - 0.05, -hd + 0.04, x + 0.02, seatY - 0.02, hd - 0.04, iron);
|
|
3332
3388
|
c.b("metal", x - 0.025, seatY - 0.02, -hd + 0.04, x + 0.025, h, -hd + 0.08, iron);
|
|
3333
|
-
c.b("metal", x - 0.03, 0.62, -hd + 0.
|
|
3334
|
-
c.b("metal", x - 0.025, seatY - 0.
|
|
3389
|
+
c.b("metal", x - 0.03, 0.62, -hd + 0.045, x + 0.03, 0.655, hd - 0.12, iron);
|
|
3390
|
+
c.b("metal", x - 0.025, seatY - 0.04, hd - 0.12, x + 0.025, 0.62, hd - 0.09, iron);
|
|
3335
3391
|
}
|
|
3336
3392
|
for (let i = 0; i < 5; i++) c.b("wood", -hw + 0.03, seatY - 0.02, -hd + 0.09 + i * ((c.d - 0.18) / 5), hw - 0.03, seatY + 0.015, -hd + 0.09 + i * ((c.d - 0.18) / 5) + (c.d - 0.18) / 5 - 0.012, i % 2 ? wood : shade(wood, 1.06));
|
|
3337
3393
|
for (let i = 0; i < 3; i++) c.b("wood", -hw + 0.03, 0.55 + i * 0.1, -hd + 0.025, hw - 0.03, 0.55 + i * 0.1 + 0.075, -hd + 0.05, i % 2 ? wood : shade(wood, 1.06));
|
|
@@ -3371,7 +3427,7 @@ function bunkBed(c) {
|
|
|
3371
3427
|
c.b("wood", -hw + post, highTop + 0.04, zEnd - post - 0.45, -hw + post + 0.03, highTop + 0.07, zEnd - post, wood);
|
|
3372
3428
|
c.b("wood", hw - post - 0.03, highTop + 0.04, zEnd - post - 0.45, hw - post, highTop + 0.07, zEnd - post, wood);
|
|
3373
3429
|
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));
|
|
3374
|
-
for (let i = 0; i < 5; i++) c.b("wood", -0.2, 0.3 + i * 0.22, zEnd, 0.2, 0.34 + i * 0.22, hd - 0.01, wood);
|
|
3430
|
+
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);
|
|
3375
3431
|
for (const [id, top, ex] of [["lie_lower", lowTop, 1], ["lie_upper", highTop, -1]]) {
|
|
3376
3432
|
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)] });
|
|
3377
3433
|
c.interact(`lie_${id}`, [0, round3(top + 0.3), round3(-hd + 0.95)], { do: "sit", seat: id }, "prompt.lie", 1.8);
|
|
@@ -3545,10 +3601,12 @@ function drawPieces(c, pieces, f) {
|
|
|
3545
3601
|
// src/builders/storage.ts
|
|
3546
3602
|
var sideOf = (c, fallback) => c.M.hinge ?? fallback;
|
|
3547
3603
|
function doorLedge(c, x0, x1, y, zIn, depth, color) {
|
|
3548
|
-
|
|
3549
|
-
|
|
3550
|
-
c.b("plain", x0, y,
|
|
3551
|
-
c.b("plain",
|
|
3604
|
+
const zLip = zIn - depth + 8e-3;
|
|
3605
|
+
const zEnd = zIn - 2e-3;
|
|
3606
|
+
c.b("plain", x0 + 8e-3, y, zLip, x1 - 8e-3, y + 8e-3, zEnd, color);
|
|
3607
|
+
c.b("plain", x0, y, zIn - depth, x1, y + 0.05, zLip, mix(color, 16777215, 0.3));
|
|
3608
|
+
c.b("plain", x0, y, zLip, x0 + 8e-3, y + 0.05, zEnd, mix(color, 16777215, 0.3));
|
|
3609
|
+
c.b("plain", x1 - 8e-3, y, zLip, x1, y + 0.05, zEnd, mix(color, 16777215, 0.3));
|
|
3552
3610
|
}
|
|
3553
3611
|
function fridge(c) {
|
|
3554
3612
|
const { hw, hd, h } = c;
|
|
@@ -3562,7 +3620,7 @@ function fridge(c) {
|
|
|
3562
3620
|
const sh = shell(c, { x0: -hw, x1: hw, y0: 0.05, y1: h, z0: -hd, z1: zb, color: body, inner: lining, t: 0.04, tTop: 0.03, tBottom: 0.05, tBack: 0.03, material: "plain" });
|
|
3563
3621
|
c.b("plain", -hw + 0.03, 0, -hd + 0.03, hw - 0.03, 0.05, zb - 0.04, 2895408);
|
|
3564
3622
|
const yd = h - fh - 0.04;
|
|
3565
|
-
c.b("plain", sh.ix0, yd, sh.iz0, sh.ix1, yd + 0.04, zb, shade(body, 0.92));
|
|
3623
|
+
c.b("plain", sh.ix0 + 3e-3, yd, sh.iz0, sh.ix1 - 3e-3, yd + 0.04, zb, shade(body, 0.92));
|
|
3566
3624
|
c.b("plain", sh.ix0 + 3e-3, yd - 3e-3, sh.iz0 + 3e-3, sh.ix1 - 3e-3, yd, zb, lining);
|
|
3567
3625
|
c.b("plain", sh.ix0 + 3e-3, yd + 0.04, sh.iz0 + 3e-3, sh.ix1 - 3e-3, yd + 0.043, zb, lining);
|
|
3568
3626
|
const fy0 = sh.iy0;
|
|
@@ -3570,7 +3628,7 @@ function fridge(c) {
|
|
|
3570
3628
|
const levels = [fy0, fy0 + 0.28, fy0 + 0.56, fy0 + 0.84];
|
|
3571
3629
|
for (const y of levels.slice(1)) {
|
|
3572
3630
|
shelf(c, sh.ix0 + 4e-3, sh.ix1 - 4e-3, y, sh.iz0 + 0.01, sz1, 13625066, 0.016, true);
|
|
3573
|
-
for (const s of [-1, 1]) c.b("plain", s < 0 ? sh.ix0 : sh.ix1 - 0.012, y - 0.03, sh.iz0 + 0.01, s < 0 ? sh.ix0 + 0.012 : sh.ix1, y - 6e-3, sz1 - 0.02, 15003376);
|
|
3631
|
+
for (const s of [-1, 1]) c.b("plain", s < 0 ? sh.ix0 + 3e-3 : sh.ix1 - 0.012, y - 0.03, sh.iz0 + 0.01, s < 0 ? sh.ix0 + 0.012 : sh.ix1 - 3e-3, y - 6e-3, sz1 - 0.02, 15003376);
|
|
3574
3632
|
}
|
|
3575
3633
|
const slotsF = levels.flatMap((y) => c.row(sh.ix0 + 0.02, sh.ix1 - 0.02, y + (y === fy0 ? 3e-3 : 0), (sh.iz0 + 0.03 + sz1) / 2, 2, [0.3, 0.26, 0.3]));
|
|
3576
3634
|
const zy = yd + 0.043;
|
|
@@ -3639,7 +3697,7 @@ function fridgeCompact(c) {
|
|
|
3639
3697
|
c.b("plain", -hw + 0.03, 0, -hd + 0.03, hw - 0.03, 0.04, zb - 0.04, 2895408);
|
|
3640
3698
|
const fz = 0.2;
|
|
3641
3699
|
const yd = h - fz - 0.03;
|
|
3642
|
-
c.b("plain", sh.ix0, yd, sh.iz0, sh.ix1, yd + 0.03, zb, shade(body, 0.92));
|
|
3700
|
+
c.b("plain", sh.ix0 + 3e-3, yd, sh.iz0, sh.ix1 - 3e-3, yd + 0.03, zb, shade(body, 0.92));
|
|
3643
3701
|
c.b("plain", sh.ix0 + 3e-3, yd - 3e-3, sh.iz0 + 3e-3, sh.ix1 - 3e-3, yd, zb, lining);
|
|
3644
3702
|
const fy0 = sh.iy0;
|
|
3645
3703
|
const sz1 = zdi - 0.1;
|
|
@@ -3711,7 +3769,7 @@ function kitchenCabinetBase(c) {
|
|
|
3711
3769
|
const info = drawer2(c, { id: "drawer", x0: -hw + 3e-3, x1: hw - 3e-3, y0: yDr, y1: top - 3e-3, zf, zb: sh.iz0, color: front, handle: "bar_h", handleLen: 0.18 });
|
|
3712
3770
|
const midY = (0.1 + yDr) / 2;
|
|
3713
3771
|
const shelfY = midY;
|
|
3714
|
-
shelf(c, sh.ix0, sh.ix1, shelfY, sh.iz0, sh.iz1 - 0.02, body);
|
|
3772
|
+
shelf(c, sh.ix0 + 3e-3, sh.ix1 - 3e-3, shelfY, sh.iz0, sh.iz1 - 0.02, body);
|
|
3715
3773
|
const zc = (sh.iz0 + sh.iz1 - 0.02) / 2;
|
|
3716
3774
|
const n = c.w >= 0.6 ? 2 : 1;
|
|
3717
3775
|
const ids = doorsAcross(c, { x0: -hw + 3e-3, x1: hw - 3e-3, y0: 0.103, y1: yDr - 3e-3, zf, t, color: front, inner: lining, handle: "bar_v", side: sideOf(c, "left") });
|
|
@@ -3740,7 +3798,7 @@ function kitchenCabinetWall(c) {
|
|
|
3740
3798
|
const y1 = y0 + h;
|
|
3741
3799
|
const sh = shell(c, { x0: -hw, x1: hw, y0, y1, z0: -hd, z1: zr, color: body, inner: lining, t: 0.018 });
|
|
3742
3800
|
const shelfY = y0 + h / 2;
|
|
3743
|
-
shelf(c, sh.ix0, sh.ix1, shelfY, sh.iz0, sh.iz1 - 0.02, body);
|
|
3801
|
+
shelf(c, sh.ix0 + 3e-3, sh.ix1 - 3e-3, shelfY, sh.iz0, sh.iz1 - 0.02, body);
|
|
3744
3802
|
const n = c.w >= 0.6 ? 2 : 1;
|
|
3745
3803
|
const ids = doorsAcross(c, { x0: -hw + 3e-3, x1: hw - 3e-3, y0: y0 + 3e-3, y1: y1 - 3e-3, zf, t, color: front, inner: lining, handle: "knob", side: sideOf(c, "left") });
|
|
3746
3804
|
const zc = (sh.iz0 + sh.iz1 - 0.02) / 2;
|
|
@@ -3763,7 +3821,7 @@ function pantry(c) {
|
|
|
3763
3821
|
const sh = shell(c, { x0: -hw, x1: hw, y0: 0.08, y1: h, z0: -hd, z1: zr, color: body, inner: lining, t: 0.018, material: garage ? "metal" : "wood" });
|
|
3764
3822
|
c.b("wood", -hw + 0.01, 0, -hd + 0.03, hw - 0.01, 0.08, zr - 0.04, 3815478);
|
|
3765
3823
|
const ys = [0.45, 0.8, 1.15, 1.5, 1.85].filter((y) => y < h - 0.2);
|
|
3766
|
-
for (const y of ys) shelf(c, sh.ix0, sh.ix1, y, sh.iz0, sh.iz1 - (garage ? 0.02 : 0.025), body);
|
|
3824
|
+
for (const y of ys) shelf(c, sh.ix0 + 3e-3, sh.ix1 - 3e-3, y, sh.iz0, sh.iz1 - (garage ? 0.02 : 0.025), body);
|
|
3767
3825
|
const dmax = sh.iz1 - 0.03 - sh.iz0 - 0.05;
|
|
3768
3826
|
const zc = (sh.iz0 + sh.iz1 - 0.03) / 2;
|
|
3769
3827
|
const levels = [sh.iy0, ...ys];
|
|
@@ -3787,17 +3845,17 @@ function wardrobe(c) {
|
|
|
3787
3845
|
const sh = shell(c, { x0: -hw, x1: hw, y0: 0.1, y1: h, z0: -hd, z1: zr, color: body, inner: lining, t: 0.02, tBack: 0.012 });
|
|
3788
3846
|
c.b("wood", -hw + 0.01, 0, -hd + 0.03, hw - 0.01, 0.1, zr - 0.04, 3815478);
|
|
3789
3847
|
const yBoard = 0.372;
|
|
3790
|
-
c.b("wood", sh.ix0, yBoard, sh.iz0, sh.ix1, yBoard + 0.018, sh.iz1, shade(body, 0.95));
|
|
3791
|
-
c.b("plain", sh.ix0, yBoard + 0.018, sh.iz0, sh.ix1, yBoard + 0.021, sh.iz1, lining);
|
|
3848
|
+
c.b("wood", sh.ix0 + 3e-3, yBoard, sh.iz0, sh.ix1 - 3e-3, yBoard + 0.018, sh.iz1, shade(body, 0.95));
|
|
3849
|
+
c.b("plain", sh.ix0 + 3e-3, yBoard + 0.018, sh.iz0, sh.ix1 - 3e-3, yBoard + 0.021, sh.iz1, lining);
|
|
3792
3850
|
const gap = 3e-3;
|
|
3793
3851
|
const dw = (c.w - 6e-3 - gap * (n - 1)) / n;
|
|
3794
3852
|
const dx = (i) => -hw + 3e-3 + i * (dw + gap);
|
|
3795
3853
|
const xs = dx(n - 1) - gap / 2;
|
|
3796
|
-
c.b("wood", xs - 9e-3, yBoard + 0.
|
|
3854
|
+
c.b("wood", xs - 9e-3, yBoard + 0.021, sh.iz0, xs + 9e-3, sh.iy1, sh.iz1 - 0.02, shade(body, 0.95));
|
|
3797
3855
|
const rodY = Math.min(1.82, h - 0.28);
|
|
3798
3856
|
const zc = (sh.iz0 + sh.iz1) / 2 - 0.02;
|
|
3799
|
-
c.rod("metal", "x", (sh.ix0 + xs - 9e-3) / 2, rodY, zc, 0.0125, xs - 9e-3 - sh.ix0, 11843772);
|
|
3800
|
-
for (const x of [sh.ix0 + 0.
|
|
3857
|
+
c.rod("metal", "x", (sh.ix0 + 3e-3 + xs - 9e-3) / 2, rodY, zc, 0.0125, xs - 9e-3 - sh.ix0 - 3e-3, 11843772);
|
|
3858
|
+
for (const x of [sh.ix0 + 0.013, xs - 0.02]) c.b("metal", x - 0.01, rodY - 0.03, zc - 0.03, x + 0.01, rodY + 0.03, zc + 0.03, 9212054);
|
|
3801
3859
|
const span2 = xs - 9e-3 - sh.ix0 - 0.1;
|
|
3802
3860
|
const count = Math.max(4, Math.floor(span2 / 0.07));
|
|
3803
3861
|
const palette = [3824266, 11029050, 4880970, 14209216, 2763312, 9071258, 13148224];
|
|
@@ -3813,7 +3871,7 @@ function wardrobe(c) {
|
|
|
3813
3871
|
drawPieces(c, g.pieces, { x, y: rodY - 0.09 * scale, z: zc, yaw, scale });
|
|
3814
3872
|
}
|
|
3815
3873
|
const sy = [0.7, 1.05, 1.4, 1.75].filter((y) => y < h - 0.2);
|
|
3816
|
-
for (const y of sy) shelf(c, xs + 9e-3, sh.ix1, y, sh.iz0, sh.iz1 - 0.02, body);
|
|
3874
|
+
for (const y of sy) shelf(c, xs + 9e-3, sh.ix1 - 3e-3, y, sh.iz0, sh.iz1 - 0.02, body);
|
|
3817
3875
|
const levels = [yBoard + 0.021, ...sy];
|
|
3818
3876
|
const cols = sh.ix1 - (xs + 0.02) >= 0.3 ? 2 : 1;
|
|
3819
3877
|
const shelfSlots = levels.flatMap((y, i) => {
|
|
@@ -3943,7 +4001,7 @@ function bathroomCabinet(c) {
|
|
|
3943
4001
|
const y1 = y0 + h;
|
|
3944
4002
|
const sh = shell(c, { x0: -hw, x1: hw, y0, y1, z0: -hd, z1: zf - t - 3e-3, color: body, inner: lining, t: 0.015, tBack: 0.01, material: "plain" });
|
|
3945
4003
|
const shelfYs = [y0 + h / 3, y0 + 2 * h / 3];
|
|
3946
|
-
for (const y of shelfYs) shelf(c, sh.ix0, sh.ix1, y, sh.iz0, sh.iz1 - 0.01, 13625066, 0.016, true);
|
|
4004
|
+
for (const y of shelfYs) shelf(c, sh.ix0 + 3e-3, sh.ix1 - 3e-3, y, sh.iz0, sh.iz1 - 0.01, 13625066, 0.016, true);
|
|
3947
4005
|
const levels = [sh.iy0, ...shelfYs];
|
|
3948
4006
|
const zc = (sh.iz0 + sh.iz1) / 2;
|
|
3949
4007
|
const slots = levels.flatMap((y, i) => c.row(sh.ix0 + 0.01, sh.ix1 - 0.01, y, zc, 4, [0.12, (i < levels.length - 1 ? levels[i + 1] - y : sh.iy1 - y) - 0.025, sh.iz1 - sh.iz0 - 0.03]));
|
|
@@ -4658,7 +4716,7 @@ function fireplace(c) {
|
|
|
4658
4716
|
c.b("plain", -ow, hearthY, zw + 0.1, -ow + 0.04, openTop, zs, lin);
|
|
4659
4717
|
c.b("plain", ow - 0.04, hearthY, zw + 0.1, ow, openTop, zs, lin);
|
|
4660
4718
|
c.b("plain", -ow + 0.04, hearthY, zw + 0.1, ow - 0.04, hearthY + 0.03, zs, shade(lin, 0.75));
|
|
4661
|
-
c.b("plain", -ow, openTop - 0.02, zw + 0.1, ow, openTop, zs, shade(lin, 0.8));
|
|
4719
|
+
c.b("plain", -ow + 0.04, openTop - 0.02, zw + 0.1, ow - 0.04, openTop, zs, shade(lin, 0.8));
|
|
4662
4720
|
c.b("metal", -ow - 0.02, openTop, zs - 0.03, ow + 0.02, openTop + 0.04, zs + 5e-3, 3816512);
|
|
4663
4721
|
masonry(-ow, openTop, zw, ow, mantelY, zs - 0.03);
|
|
4664
4722
|
c.b("wood", -hw, mantelY, zw, hw, mantelY + 0.07, zs + 0.07, c.wood(6965808));
|
|
@@ -4669,16 +4727,16 @@ function fireplace(c) {
|
|
|
4669
4727
|
masonry(-bw, mantelY + 0.07, zw, bw, breastTop, zw + 0.45);
|
|
4670
4728
|
masonry(-stackHalf, breastTop, zw, stackHalf, chimneyTop - 0.08, zw + 0.4);
|
|
4671
4729
|
c.b("plain", -stackHalf - 0.04, chimneyTop - 0.08, zw, stackHalf + 0.04, chimneyTop - 0.04, zw + 0.44, 13617596);
|
|
4672
|
-
c.b("plain", -0.13, chimneyTop - 0.04, zw + 0.07, 0.13, chimneyTop, zw + 0.33, 10130570);
|
|
4673
|
-
c.b("plain", -0.1, chimneyTop -
|
|
4730
|
+
c.b("plain", -0.13, chimneyTop - 0.04, zw + 0.07, 0.13, chimneyTop - 2e-3, zw + 0.33, 10130570);
|
|
4731
|
+
c.b("plain", -0.1, chimneyTop - 4e-3, zw + 0.1, 0.1, chimneyTop, zw + 0.3, 4866106);
|
|
4674
4732
|
const fz = zw + 0.1 + (sd - 0.1) * 0.5;
|
|
4675
4733
|
const gy = hearthY + 0.03;
|
|
4676
4734
|
for (const s of [-1, 1]) {
|
|
4677
4735
|
c.b("metal", s * 0.27 - 0.02, gy, fz - 0.17, s * 0.27 + 0.02, gy + 0.2, fz - 0.15, IRON);
|
|
4678
4736
|
c.b("metal", s * 0.27 - 0.02, gy, fz + 0.15, s * 0.27 + 0.02, gy + 0.2, fz + 0.17, IRON);
|
|
4679
|
-
c.b("metal", s * 0.27 - 0.
|
|
4737
|
+
c.b("metal", s * 0.27 - 0.015, gy + 0.08, fz - 0.15, s * 0.27 + 0.015, gy + 0.1, fz + 0.15, IRON);
|
|
4680
4738
|
}
|
|
4681
|
-
for (let i = 0; i < 5; i++) c.b("metal", -0.28, gy + 0.
|
|
4739
|
+
for (let i = 0; i < 5; i++) c.b("metal", -0.28, gy + 0.083, fz - 0.14 + i * 0.07, 0.28, gy + 0.097, fz - 0.128 + i * 0.07, shade(IRON, 1.3));
|
|
4682
4740
|
const log = 5914154;
|
|
4683
4741
|
c.rod("wood", "x", 0, gy + 0.17, fz - 0.09, 0.06, 0.56, log);
|
|
4684
4742
|
c.rod("wood", "x", 0.02, gy + 0.17, fz + 0.09, 0.055, 0.5, shade(log, 1.1));
|
|
@@ -5186,6 +5244,7 @@ var BUILDERS = {
|
|
|
5186
5244
|
wall_switch: wallSwitch,
|
|
5187
5245
|
service_entrance: serviceEntrance,
|
|
5188
5246
|
conduit_run: conduitRun,
|
|
5247
|
+
service_mast: serviceMast,
|
|
5189
5248
|
electrical_panel: electricalPanel,
|
|
5190
5249
|
power_meter: powerMeter,
|
|
5191
5250
|
tv,
|