@adatechnology/game-vehicles-fleet 6.0.1 → 7.0.0

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.
@@ -3808,6 +3808,34 @@ var GameVehiclesFleet = (() => {
3808
3808
  ];
3809
3809
  }
3810
3810
 
3811
+ // src/spokes.ts
3812
+ var THICKNESS_STEP = 0.0625;
3813
+ var THINNEST = 0.15;
3814
+ var CLEARANCE = 15e-4;
3815
+ var SPOKE_HALF_THICKNESS = 0.02;
3816
+ var DISH_HALF_THICKNESS = 0.025;
3817
+ function sharesPlaneWithDish(reach, scale) {
3818
+ const dishReach = reach * 0.9;
3819
+ const outer = Math.abs(reach + SPOKE_HALF_THICKNESS * scale - (dishReach + DISH_HALF_THICKNESS));
3820
+ const inner = Math.abs(reach - SPOKE_HALF_THICKNESS * scale - (dishReach - DISH_HALF_THICKNESS));
3821
+ return outer < CLEARANCE || inner < CLEARANCE;
3822
+ }
3823
+ function separateSpokes(context) {
3824
+ for (const wheel of context.wheels) {
3825
+ let previous = 1 + THICKNESS_STEP;
3826
+ for (const child of wheel.children) {
3827
+ const mesh = child;
3828
+ const type = mesh.geometry?.type;
3829
+ if (!mesh.isMesh || type !== "BufferGeometry" && type !== "BoxGeometry" || mesh.position.z === 0) continue;
3830
+ const reach = Math.abs(mesh.position.z);
3831
+ let scale = previous - THICKNESS_STEP;
3832
+ while (sharesPlaneWithDish(reach, scale) && scale > THINNEST) scale -= THICKNESS_STEP / 2;
3833
+ mesh.scale.z = Math.max(scale, THINNEST);
3834
+ previous = scale;
3835
+ }
3836
+ }
3837
+ }
3838
+
3811
3839
  // src/vehicles/boats-extra.ts
3812
3840
  function installBoatsExtra(fx) {
3813
3841
  const kit = fx.kit;
@@ -4242,12 +4270,12 @@ var GameVehiclesFleet = (() => {
4242
4270
  cs.castShadow = false;
4243
4271
  [1, -1].forEach(function(s) {
4244
4272
  c.roundBox(2.6, 0.06, 0.42, 0.02, teak, -2.45, 0.86, s * 0.82);
4245
- c.roundBox(2.6, 0.38, 0.06, 0.02, white, -2.45, 0.67, s * 0.6);
4273
+ c.roundBox(2.6, 0.376, 0.06, 0.02, white, -2.45, 0.671, s * 0.6);
4246
4274
  c.roundBox(2.8, 0.22, 0.05, 0.02, white, -2.4, 1.02, s * (H.sheerAt(-2.4).z - 0.32));
4247
4275
  c.cylinder(0.06, 0.07, 0.11, MT.chrome, -1.6, 1.15, s * 1.06);
4248
4276
  c.cylinder(0.035, 0.035, 0.02, MT.chrome, -1.6, 1.21, s * 1.06);
4249
4277
  });
4250
- c.roundBox(0.3, 0.38, 1.2, 0.03, white, -3.75, 0.67, 0);
4278
+ c.roundBox(0.3, 0.376, 1.2, 0.03, white, -3.75, 0.671, 0);
4251
4279
  c.seatTops.push({ x: -2.6, y: 0.9, z: 0.82, w: 0.42, l: 2.4 }, { x: -2.6, y: 0.9, z: -0.82, w: 0.42, l: 2.4 });
4252
4280
  const trST = [
4253
4281
  [-1.1, 0.8, 1.56, 2, 6],
@@ -4656,9 +4684,9 @@ var GameVehiclesFleet = (() => {
4656
4684
  });
4657
4685
  c.roundBox(1.6, 0.03, 0.1, 0.01, MT.wood, 0.3, 0.05, 0.38, { rot: [0.2, 0, 0] });
4658
4686
  c.roundBox(1.6, 0.03, 0.1, 0.01, MT.wood, 0.3, 0.06, 0.28, { rot: [0.2, 0, 0] });
4659
- c.roundBox(0.36, 0.24, 0.26, 0.03, CM("#ffffff", { roughness: 0.5 }), 1.25, 0.14, 0.15);
4687
+ c.roundBox(0.36, 0.24, 0.26, 0.03, CM("#ffffff", { roughness: 0.5 }), 1.25, 0.142, 0.15);
4660
4688
  c.roundBox(0.1, 0.03, 0.02, 5e-3, CM("#d01c1c"), 1.25, 0.2, 0.282);
4661
- c.roundBox(0.03, 0.1, 0.02, 5e-3, CM("#d01c1c"), 1.25, 0.2, 0.282);
4689
+ c.roundBox(0.03, 0.1, 0.02, 5e-3, CM("#d01c1c"), 1.25, 0.2, 0.284);
4662
4690
  const buoy = c.add(new THREE.TorusGeometry(0.24, 0.06, 10, 24), CM("#f0f0ea", { roughness: 0.6 }), 1.1, 0.1, -0.2);
4663
4691
  buoy.rotation.x = PI / 2;
4664
4692
  const motor = EA.outboard(c, -1.99, 0.55, 0, { k: 1, tiller: true, label: "40", col: "#1d1f22" });
@@ -4794,7 +4822,7 @@ var GameVehiclesFleet = (() => {
4794
4822
  return Math.min(0.06 - y, x - x0 - 0.04);
4795
4823
  }),
4796
4824
  CM("#1d2023", { roughness: 0.6 }),
4797
- { sz: 1.004, dy: 3e-3 }
4825
+ { sz: 1.004, dy: 3e-3, ends: false }
4798
4826
  );
4799
4827
  EA.sheerTube(c, H, x0 + 0.02, 6.2, 0.07, blk, { dy: -0.1, dz: 0.02 });
4800
4828
  const deck = c.add(EA.deckGeo(H, x0 + 0.02, 6.32, { n: 40, m: 10, crown: 0.05 }), deckC);
@@ -7889,7 +7917,7 @@ var GameVehiclesFleet = (() => {
7889
7917
  [0.62, 0.48, -0.48, -0.62].forEach(function(z) {
7890
7918
  const s = dg.at(dg.uz(z), 0.25);
7891
7919
  c2.cylinder(0.045, 0.045, 0.1, EXH, s.p.x - 0.02, 0.25, z, "x");
7892
- c2.cylinder(0.036, 0.036, 0.102, MT.dark, s.p.x - 0.02, 0.25, z, "x");
7920
+ c2.cylinder(0.036, 0.036, 0.106, MT.dark, s.p.x - 0.02, 0.25, z, "x");
7893
7921
  });
7894
7922
  const lip = K.grid(-1, 0, { z1: 0.7, y0: 0.88, y1: 0.97, du: 0.03, dv: 0.02 });
7895
7923
  K.skin(lip, GLOSS, { u0: 0.05, u1: 0.95, yb: 0.925, yt: 0.955, off: 0.016, thick: 0.02, nv: 2 });
@@ -8304,7 +8332,7 @@ var GameVehiclesFleet = (() => {
8304
8332
  side: s,
8305
8333
  noPart: true
8306
8334
  });
8307
- c.roundBox(0.03, 0.12, 0.42, 0.02, MT.dark, bx + 0.125, by - bh * 0.3, s * 0.35);
8335
+ c.roundBox(0.03, 0.12, 0.42, 0.02, MT.dark, bx + 0.119, by - bh * 0.3, s * 0.35);
8308
8336
  });
8309
8337
  }
8310
8338
  c.roundBox(0.06, 0.06, 0.12, 0.02, MT.steel, bx + 0.13, by - bh * 0.35, 0);
@@ -8407,7 +8435,7 @@ var GameVehiclesFleet = (() => {
8407
8435
  -(W - 0.2) / 2 + (k + 0.5) * (W - 0.2) / 8
8408
8436
  );
8409
8437
  [1, -1].forEach(function(s) {
8410
- c.roundBox(0.06, 0.32, 0.06, 0.01, MT.trim, rear + 0.12, ry - 0.2, s * 0.43);
8438
+ c.roundBox(0.06, 0.32, 0.06, 0.01, MT.trim, rear + 0.118, ry - 0.2, s * 0.43);
8411
8439
  });
8412
8440
  m.rearBumper = bar;
8413
8441
  c.part("bumper", trl("labels.rear_bumper"), bar, new V3(rear, 0.52, 0), 1);
@@ -9469,7 +9497,7 @@ var GameVehiclesFleet = (() => {
9469
9497
  });
9470
9498
  const vg = c.roundBox(0.32, 0.2, 0.03, 0.03, MT.armorGlass, 1.3, 2.45, zs);
9471
9499
  kit.asGlass(c, vg, s > 0 ? lbl("right_armored_viewport") : lbl("left_armored_viewport"), "laminated");
9472
- c.roundBox(0.4, 0.28, 0.02, 0.03, plate, 1.3, 2.45, zs - s * 4e-3);
9500
+ c.roundBox(0.4, 0.28, 0.02, 0.03, plate, 1.3, 2.45, zs - s * 8e-3);
9473
9501
  for (let x = rear + 0.2; x < bx0; x += 0.3) {
9474
9502
  c.sphere(0.018, MT.steel, x, 1.2, zs);
9475
9503
  c.sphere(0.018, MT.steel, x, 2.98, zs);
@@ -9578,7 +9606,7 @@ var GameVehiclesFleet = (() => {
9578
9606
  const hx0 = 0.02, hx1 = 1.84 + FX, hy = 1.48;
9579
9607
  [1, -1].forEach(function(s) {
9580
9608
  c.roundBox(hx1 - hx0, 0.38, 0.035, 0.02, paint, (hx0 + hx1) / 2, 1.22, s * 0.36, { def: true });
9581
- for (let j = 0; j < 5; j++) c.roundBox(0.22, 0.025, 0.012, 8e-3, MT.dark, 0.75 + j * 0.16, 1.24, s * 0.38);
9609
+ for (let j = 0; j < 5; j++) c.roundBox(0.22, 0.025, 0.012, 8e-3, MT.dark, 0.75 + j * 0.16, 1.24, s * (0.38 + j % 2 * 3e-3));
9582
9610
  c.roundBox(1, 0.03, 0.02, 0.01, CM("#e9e6dd"), 0.55, 1.36, s * 0.38);
9583
9611
  c.text("275", 0.3, 0.14, 0.32, 1.2, s * 0.384, s > 0 ? "+z" : "-z", { fg: "#f2efe6" });
9584
9612
  });
@@ -10054,7 +10082,7 @@ var GameVehiclesFleet = (() => {
10054
10082
  const hs = c.add(
10055
10083
  EA.foilGeo(
10056
10084
  [
10057
- { p: [-3.9, 1.44, 0], c: 0.3, t: 0.1 },
10085
+ { p: [-3.9, 1.44, s * 2e-3], c: 0.3, t: 0.1 },
10058
10086
  { p: [-3.95, 1.44, s * 0.42], c: 0.22, t: 0.09 }
10059
10087
  ],
10060
10088
  { up: "y", n: 8 }
@@ -10293,7 +10321,7 @@ var GameVehiclesFleet = (() => {
10293
10321
  },
10294
10322
  lbl("chin_windows"),
10295
10323
  "tempered",
10296
- { pos: new V3(2.3, 0.88, 0) }
10324
+ { pos: new V3(2.3, 0.88, 0), k: 0.988 }
10297
10325
  );
10298
10326
  [1, -1].forEach(function(s) {
10299
10327
  EA.fuseGlass(
@@ -10393,7 +10421,7 @@ var GameVehiclesFleet = (() => {
10393
10421
  tipCol: "#e6e4dd",
10394
10422
  phase: 0.25
10395
10423
  });
10396
- c.roundBox(0.5, 0.12, 0.16, 0.05, MT.steel, 0, 2.8, 0);
10424
+ c.roundBox(0.5, 0.12, 0.16, 0.05, MT.steel, 0, 2.797, 0);
10397
10425
  const bm = boom(
10398
10426
  c,
10399
10427
  EA,
@@ -10427,7 +10455,7 @@ var GameVehiclesFleet = (() => {
10427
10455
  const hs = c.add(
10428
10456
  EA.foilGeo(
10429
10457
  [
10430
- { p: [-4.05, 1.68, 0], c: 0.42, t: 0.12, cam: -0.04 },
10458
+ { p: [-4.05, 1.68, s * 2e-3], c: 0.42, t: 0.12, cam: -0.04 },
10431
10459
  { p: [-4.1, 1.68, s * 0.99], c: 0.38, t: 0.11, cam: -0.04 }
10432
10460
  ],
10433
10461
  { up: "y", n: 8 }
@@ -10676,7 +10704,7 @@ var GameVehiclesFleet = (() => {
10676
10704
  },
10677
10705
  lbl("chin_windows"),
10678
10706
  "tempered",
10679
- { pos: new V3(3.05, 0.95, 0) }
10707
+ { pos: new V3(3.05, 0.95, 0), k: 0.988 }
10680
10708
  );
10681
10709
  [1, -1].forEach(function(s) {
10682
10710
  EA.fuseGlass(c, ST, EA.sideKeepP(fdP, 0.6, s), s > 0 ? lbl("co_pilot_door_window") : lbl("pilot_door_window"), "tempered", {
@@ -10841,7 +10869,7 @@ var GameVehiclesFleet = (() => {
10841
10869
  const hs = c.add(
10842
10870
  EA.foilGeo(
10843
10871
  [
10844
- { p: [-5.75, 2.1, 0], c: 0.62, t: 0.12, cam: -0.03 },
10872
+ { p: [-5.75, 2.1, s * 2e-3], c: 0.62, t: 0.12, cam: -0.03 },
10845
10873
  { p: [-5.85, 2.1, s * 1.05], c: 0.52, t: 0.11, cam: -0.03 }
10846
10874
  ],
10847
10875
  { up: "y", n: 8 }
@@ -11254,7 +11282,7 @@ var GameVehiclesFleet = (() => {
11254
11282
  EA.colorize(
11255
11283
  EA.foilGeo(
11256
11284
  [
11257
- { p: [-8.3, 2.75, 0], c: 1, t: 0.1 },
11285
+ { p: [-8.3, 2.75, s * 2e-3], c: 1, t: 0.1 },
11258
11286
  { p: [-8.5, 2.75, s * 1.85], c: 0.7, t: 0.09 }
11259
11287
  ],
11260
11288
  { up: "y", n: 8 }
@@ -12326,7 +12354,7 @@ var GameVehiclesFleet = (() => {
12326
12354
  const floor = c.roundBox(L, 0.1, W, 0.02, wood, cx, y0, 0, { def: true });
12327
12355
  c.roundBox(L - 0.1, 0.14, 0.2, 0.02, MT.trim, cx, y0 - 0.12, 0.45);
12328
12356
  c.roundBox(L - 0.1, 0.14, 0.2, 0.02, MT.trim, cx, y0 - 0.12, -0.45);
12329
- for (let xs = x1 + 0.2; xs < x0; xs += 0.55) c.roundBox(0.08, 0.1, W - 0.05, 0.02, MT.trim, xs, y0 - 0.1, 0);
12357
+ for (let xs = x1 + 0.2; xs < x0; xs += 0.55) c.roundBox(0.08, 0.1, W - 0.05, 0.02, MT.trim, xs, y0 - 0.102, 0);
12330
12358
  const sides = [];
12331
12359
  [1, -1].forEach(function(s) {
12332
12360
  const sd = c.roundBox(L, sideH, 0.06, 0.02, wood, cx, y0 + sideH / 2 + 0.05, s * (W / 2 - 0.03), { def: true });
@@ -12337,7 +12365,7 @@ var GameVehiclesFleet = (() => {
12337
12365
  c.roundBox(L, 0.03, 0.015, 6e-3, CM("#3a3c2e", { roughness: 0.9 }), cx, y0 + 0.05 + sideH * t * 2, s * (W / 2 + 2e-3));
12338
12366
  });
12339
12367
  });
12340
- c.roundBox(0.06, sideH, W, 0.02, wood, x0 - 0.03, y0 + sideH / 2 + 0.05, 0, { def: true });
12368
+ c.roundBox(0.06, sideH, W, 0.02, wood, x0 - 0.028, y0 + sideH / 2 + 0.05, 0, { def: true });
12341
12369
  const tg = c.roundBox(0.06, sideH * 0.7, W - 0.1, 0.02, wood, x1 - 0.02, y0 - sideH * 0.3, 0);
12342
12370
  tg.rotation.z = 0.08;
12343
12371
  const top = y0 + sideH + bowH, yb = y0 + sideH + 0.05, nseg = 20, pos = [], idx = [];
@@ -12731,7 +12759,7 @@ var GameVehiclesFleet = (() => {
12731
12759
  top: roofY + 0.03,
12732
12760
  k: 0.28,
12733
12761
  holes,
12734
- archInner: W / 2 - ww - 0.1,
12762
+ archInner: W / 2 - ww - 0.098,
12735
12763
  sub: 0.18,
12736
12764
  bev: 0.025
12737
12765
  });
@@ -13064,8 +13092,7 @@ var GameVehiclesFleet = (() => {
13064
13092
  [1.3, roofY, 0.1],
13065
13093
  [F - 0.04, 1.02, 0.06],
13066
13094
  [F, 0.9, 0.05],
13067
- [2.05, 0.46, 0.06],
13068
- [-1.4, 0.44, 0.04]
13095
+ [2.05, 0.46, 0.06]
13069
13096
  ];
13070
13097
  const arches = axles.map(function(x) {
13071
13098
  return [x, wr, wr + 0.09];
@@ -13143,8 +13170,8 @@ var GameVehiclesFleet = (() => {
13143
13170
  [1, -1].forEach(function(s) {
13144
13171
  c.roundBox(1.6, 0.16, 0.12, 0.04, OLIVE_STEEL, (axles[1] + axles[2]) / 2, wr, s * (W / 2 - ww - 0.1));
13145
13172
  c.cylinder(0.12, 0.12, 0.2, OLIVE_STEEL, (axles[1] + axles[2]) / 2, wr, s * (W / 2 - ww - 0.1), "z");
13146
- c.roundBox(1, 0.05, 0.32, 0.02, paintMat(c, col), axles[0], 1.12, s * (W / 2 - 0.16), { def: true });
13147
- c.roundBox(2.35, 0.05, 0.32, 0.02, paintMat(c, col), (axles[1] + axles[2]) / 2, 1.12, s * (W / 2 - 0.16), { def: true });
13173
+ c.roundBox(1, 0.05, 0.32, 0.02, paintMat(c, col), axles[0], 1.12, s * (W / 2 - 0.158), { def: true });
13174
+ c.roundBox(2.35, 0.05, 0.32, 0.02, paintMat(c, col), (axles[1] + axles[2]) / 2, 1.12, s * (W / 2 - 0.158), { def: true });
13148
13175
  c.roundBox(1.2, 0.26, 0.28, 0.03, paintMat(c, OLIVE2), -1.45, 1.28, s * (W / 2 - 0.17));
13149
13176
  [-0.95, -1.95].forEach(function(x) {
13150
13177
  c.roundBox(0.3, 0.2, 0.02, 0.01, MT.dark, x, 1.28, s * (W / 2 - 0.025));
@@ -13301,7 +13328,7 @@ var GameVehiclesFleet = (() => {
13301
13328
  m.kind = "car";
13302
13329
  m.bullet = true;
13303
13330
  const low = c.roundBox(6.6, 0.62, 2, 0.08, paintMat(c, col), -0.1, 0.78, 0, { def: true, sub: 0.3 });
13304
- c.roundBox(0.55, 0.62, 2, 0.06, paintMat(c, col), 3.1, 0.8, 0, { def: true, rot: [0, 0, -0.95] });
13331
+ c.roundBox(0.55, 0.62, 2.004, 0.06, paintMat(c, col), 3.1, 0.8, 0, { def: true, rot: [0, 0, -0.95] });
13305
13332
  const items = [
13306
13333
  [R, 1.05, 0.04],
13307
13334
  [R - 0.02, deckY - 0.04, 0.05],
@@ -13344,7 +13371,7 @@ var GameVehiclesFleet = (() => {
13344
13371
  (ex0 + ex1) / 2
13345
13372
  );
13346
13373
  scale(c, nB, bcen, 1.45);
13347
- c.roundBox(ex1 - ex0 - 0.1, 0.02, 2.1, 0.01, BAY_LIGHT, bcen.x, 0.95, 0);
13374
+ c.roundBox(ex1 - ex0 - 0.1, 0.012, 2.1, 0.01, BAY_LIGHT, bcen.x, 0.957, 0);
13348
13375
  [1, -1].forEach(function(sd) {
13349
13376
  c.roundBox(ex1 - ex0 - 0.1, 0.55, 0.02, 0.01, BAY_LIGHT, bcen.x, 1.25, sd * 1.08);
13350
13377
  });
@@ -13370,12 +13397,12 @@ var GameVehiclesFleet = (() => {
13370
13397
  c.roundBox(0.55, 0.42, 0.03, 0.01, MT.rubber, 2.95, 0.86, s * (W / 2 + 0.05));
13371
13398
  c.part("armor", s > 0 ? trl("labels.right_skirt") : trl("labels.left_skirt"), sk, new V3(-0.2, 0.86, s * W / 2), 1.2);
13372
13399
  c.roundBox(0.5, 0.03, 0.6, 0.01, paintMat(c, col), F - 0.25, 1.08, s * tz, { rot: [0, 0, -0.35] });
13373
- c.roundBox(0.03, 0.5, 0.55, 0.01, MT.rubber, R + 0.02, 0.85, s * tz);
13400
+ c.roundBox(0.03, 0.5, 0.55, 0.01, MT.rubber, R + 0.015, 0.85, s * tz);
13374
13401
  star(c, 0.6, 1.3, s * (H.half(1.3) + 0.01), 0.17, s > 0 ? "+z" : "-z", { ring: true });
13375
13402
  c.text(trl("texts.army"), 1, 0.16, -1.5, 1.3, s * (H.half(1.3) + 0.01), s > 0 ? "+z" : "-z", { fg: "#dcdace", size: 0.7 });
13376
13403
  guardedHeadlight(c, 2.95, gl(2.95) + 0.16, s * 1.3, s, { style: "round" });
13377
13404
  c.roundBox(0.1, 0.16, 0.08, 0.02, OLIVE_STEEL, 2.9, gl(2.9) + 0.04, s * 1.3);
13378
- c.roundBox(0.1, 0.18, 0.3, 0.03, OLIVE_STEEL, R - 0.04, 1.35, s * 1.25);
13405
+ c.roundBox(0.1, 0.18, 0.3, 0.03, OLIVE_STEEL, R - 0.037, 1.35, s * 1.25);
13379
13406
  kit.taillight(c, { style: "round2", x: R - 0.08, y: 1.35, z: s * 1.25, w: 0.2, h: 0.09, d: 0.05, side: s });
13380
13407
  c.tube(
13381
13408
  [
@@ -13417,7 +13444,7 @@ var GameVehiclesFleet = (() => {
13417
13444
  { rot: [0, 0, -0.18] }
13418
13445
  );
13419
13446
  hatch(c, 2.05, roofY - 0.1, -0.78, 0.28, 0, OLIVE_STEEL, { yaw: 0 });
13420
- kit.seat(c, 1.95, 0.62, -0.78, { w: 0.44, h: 0.34, back: 0.5, lean: 0.5, mat: CM("#2f3226", { roughness: 0.9 }) });
13447
+ kit.seat(c, 1.95, 0.62, -0.76, { w: 0.44, h: 0.34, back: 0.5, lean: 0.5, mat: CM("#2f3226", { roughness: 0.9 }) });
13421
13448
  [-0.95, -0.78, -0.61].forEach(function(z, i) {
13422
13449
  periscope(c, 2.3, roofY - 0.08, z, 0.14, i === 1 ? lbl("driver_periscope") : null);
13423
13450
  });
@@ -13539,14 +13566,14 @@ var GameVehiclesFleet = (() => {
13539
13566
  const g = new THREE.Group();
13540
13567
  g.position.set(x, y, z);
13541
13568
  c.vehicle.add(g);
13542
- const wmsh = new THREE.Mesh(new THREE.CylinderGeometry(rad, rad, w * 0.8, 24), wm);
13569
+ const wmsh = new THREE.Mesh(new THREE.CylinderGeometry(rad, rad, w * (opt.width ?? 0.8), 24), wm);
13543
13570
  wmsh.rotation.x = PI / 2;
13544
13571
  wmsh.castShadow = true;
13545
13572
  g.add(wmsh);
13546
13573
  if (opt.tires)
13547
13574
  [-1, 1].forEach(function(q) {
13548
13575
  const t = new THREE.Mesh(new THREE.TorusGeometry(rad - 0.035, 0.035, 6, 24), MT.rubber);
13549
- t.position.z = q * w * 0.22;
13576
+ t.position.z = q * w * (opt.tireAt ?? 0.22);
13550
13577
  g.add(t);
13551
13578
  });
13552
13579
  const hb = new THREE.Mesh(new THREE.CylinderGeometry(rad * 0.32, rad * 0.32, w * 0.86, 10), MT.steel);
@@ -13563,21 +13590,21 @@ var GameVehiclesFleet = (() => {
13563
13590
  for (let k = 0; k < 6; k++) {
13564
13591
  const b = new THREE.Mesh(G.roundedBox(rad * 1.5, 0.05, 0.04, 0.01), wm);
13565
13592
  b.rotation.z = k / 6 * PI;
13566
- b.position.z = (z > 0 ? 1 : -1) * w * 0.42;
13593
+ b.position.z = (z > 0 ? 1 : -1) * (w * 0.42 + k * 3e-3);
13567
13594
  g.add(b);
13568
13595
  }
13569
13596
  c.spin.push({ o: g, axis: "z", v: 0, track: true });
13570
13597
  return g;
13571
13598
  }
13572
13599
  for (let i = 0; i < n; i++) wheel(xs + i * sp, r + th, r, { tires: true });
13573
- wheel(x0, yS, rS, { teeth: true });
13574
- wheel(x1, yI, rI, { spokes: true, tires: true });
13600
+ wheel(x0, yS, rS, { teeth: true, width: 0.76 });
13601
+ wheel(x1, yI, rI, { spokes: true, tires: true, width: 0.76, tireAt: 0.2 });
13575
13602
  const topY = function(x) {
13576
13603
  return yS + rS + th / 2 + (yI + rI - yS - rS) * (x - x0) / (x1 - x0);
13577
13604
  };
13578
13605
  for (let q = 0; q < 4; q++) {
13579
13606
  const xr = x0 + (x1 - x0) * (0.2 + q * 0.2);
13580
- wheel(xr, topY(xr) - rr - th / 2 - 0.01, rr, {});
13607
+ wheel(xr, topY(xr) - rr - th / 2 - 0.01, rr, { width: 0.7 });
13581
13608
  }
13582
13609
  const path = [], segs = 12;
13583
13610
  function arc(cx, cy, rad, a0, a1) {
@@ -13601,7 +13628,7 @@ var GameVehiclesFleet = (() => {
13601
13628
  const curve = new THREE.SplineCurve(pts.concat([pts[0]])), lenT = curve.getLength(), nl = Math.round(lenT / 0.15), links = [];
13602
13629
  for (let l = 0; l < nl; l++) {
13603
13630
  const t = l / nl, p = curve.getPointAt(t), tg = curve.getTangentAt(t), ang = Math.atan2(tg.y, tg.x);
13604
- const lg = G.roundedBox(0.13, th, w, 0.015);
13631
+ const lg = G.roundedBox(0.13, th, w - l % 2 * 4e-3, 0.015);
13605
13632
  lg.applyMatrix4(new THREE.Matrix4().makeRotationZ(ang).setPosition(p.x, p.y, 0));
13606
13633
  links.push(lg);
13607
13634
  const gh2 = G.roundedBox(0.05, 0.05, 0.05, 0.01);
@@ -17307,9 +17334,9 @@ var GameVehiclesFleet = (() => {
17307
17334
  ],
17308
17335
  col
17309
17336
  );
17310
- lamp(c, { style: "rect", x: 0.57, y: 0.91, z: 0, w: 0.2, h: 0.11, d: 0.08, side: 1, label: trl("labels.headlight") });
17337
+ lamp(c, { style: "rect", x: 0.575, y: 0.91, z: 0, w: 0.2, h: 0.11, d: 0.08, side: 1, label: trl("labels.headlight") });
17311
17338
  c.roundBox(0.1, 0.07, 0.18, 0.02, blk, 0.36, 1.04, 0, { rot: [0, 0, 0.4] });
17312
- c.roundBox(0.02, 0.05, 0.15, 0.01, MT.gauge, 0.39, 1.06, 0, { rot: [0, 0, 0.4] });
17339
+ c.roundBox(0.02, 0.05, 0.15, 0.01, MT.gauge, 0.39, 1.064, 0, { rot: [0, 0, 0.4] });
17313
17340
  handlebar(c, 0.36, 1.03, 0.37, { rise: 0.04, back: 0.06, mat: MT.chrome, stalk: 0.19 });
17314
17341
  [1, -1].forEach(function(s) {
17315
17342
  blinker(c, 0.48, 0.9, s * 0.17, true);
@@ -17511,7 +17538,7 @@ var GameVehiclesFleet = (() => {
17511
17538
  body(
17512
17539
  c,
17513
17540
  [
17514
- [0.44, 1.13, 0.85, 0.24, 2.6],
17541
+ [0.435, 1.13, 0.85, 0.24, 2.6],
17515
17542
  [0.55, 1.11, 0.87, 0.24, 2.6],
17516
17543
  [0.6, 1.05, 0.91, 0.16, 2.4]
17517
17544
  ],
@@ -17678,7 +17705,7 @@ var GameVehiclesFleet = (() => {
17678
17705
  body(
17679
17706
  c,
17680
17707
  [
17681
- [0.62, 1.32, 0.98, 0.3, 2.6],
17708
+ [0.615, 1.32, 0.98, 0.3, 2.6],
17682
17709
  [0.72, 1.28, 1, 0.3, 2.6],
17683
17710
  [0.78, 1.2, 1.02, 0.22, 2.4]
17684
17711
  ],
@@ -18611,8 +18638,8 @@ var GameVehiclesFleet = (() => {
18611
18638
  return b;
18612
18639
  }
18613
18640
  function plateMoto(c, x, y, txt) {
18614
- c.roundBox(0.02, 0.15, 0.2, 8e-3, MT.trim, x + 0.012, y, 0);
18615
- c.text(txt || kit.config.plate.slice(0, 5), 0.2, 0.135, x, y, 0, "-x", {
18641
+ c.roundBox(0.02, 0.15, 0.2, 8e-3, MT.trim, x + 9e-3, y, 0);
18642
+ c.text(txt || kit.config.plate.slice(0, 5), 0.2, 0.135, x - 3e-3, y, 0, "-x", {
18616
18643
  w: 300,
18617
18644
  h: 220,
18618
18645
  bg: "#f2f2ee",
@@ -18727,7 +18754,7 @@ var GameVehiclesFleet = (() => {
18727
18754
  g.add(d);
18728
18755
  for (let q = 0; q < 12; q++) {
18729
18756
  const a2 = q / 12 * PI * 2, sl = new THREE.Mesh(G.roundedBox(rimR * 0.42, 0.016, 6e-3, 5e-3), o.slot || CM("#1c1e21", { metalness: 0.5, roughness: 0.4 }));
18730
- sl.position.set(Math.cos(a2) * rimR * 0.62, Math.sin(a2) * rimR * 0.62, s * (hw * 0.72 + 6e-3));
18757
+ sl.position.set(Math.cos(a2) * rimR * 0.62, Math.sin(a2) * rimR * 0.62, s * (hw * 0.72 + 0.0105));
18731
18758
  sl.rotation.z = a2;
18732
18759
  g.add(sl);
18733
18760
  }
@@ -18825,7 +18852,7 @@ var GameVehiclesFleet = (() => {
18825
18852
  body(
18826
18853
  c,
18827
18854
  [
18828
- [0.34, 0.36, 0.29, 0.28, 2.6],
18855
+ [0.335, 0.36, 0.29, 0.28, 2.6],
18829
18856
  [0.46, 0.38, 0.31, 0.46, 3],
18830
18857
  [0.6, 0.41, 0.34, 0.5, 3],
18831
18858
  [0.74, 0.43, 0.37, 0.46, 2.8],
@@ -19233,7 +19260,7 @@ var GameVehiclesFleet = (() => {
19233
19260
  body(
19234
19261
  c,
19235
19262
  [
19236
- [0.42, 1.05, 0.82, 0.26, 2.6],
19263
+ [0.415, 1.05, 0.82, 0.26, 2.6],
19237
19264
  [0.52, 1.03, 0.83, 0.28, 2.6],
19238
19265
  [0.59, 0.99, 0.85, 0.22, 2.4],
19239
19266
  [0.62, 0.95, 0.87, 0.1, 2.2]
@@ -19254,7 +19281,7 @@ var GameVehiclesFleet = (() => {
19254
19281
  });
19255
19282
  c.roundBox(0.015, 0.1, 0.2, 0.02, SMOKEG, 0.55, 1.035, 0, { rot: [0, 0, 0.55] });
19256
19283
  c.roundBox(0.07, 0.03, 0.16, 0.01, CM("#121518", { roughness: 0.25, metalness: 0.3 }), 0.44, 1.07, 0, { rot: [0, 0, 0.5] });
19257
- c.roundBox(0.04, 0.032, 0.1, 6e-3, MT.gauge, 0.45, 1.075, 0, { rot: [0, 0, 0.5] });
19284
+ c.roundBox(0.04, 0.032, 0.1, 6e-3, MT.gauge, 0.45, 1.078, 0, { rot: [0, 0, 0.5] });
19258
19285
  [1, -1].forEach(function(s) {
19259
19286
  blinker(c, 0.5, 0.92, s * 0.16, true);
19260
19287
  });
@@ -19671,7 +19698,7 @@ var GameVehiclesFleet = (() => {
19671
19698
  });
19672
19699
  c.cylinder(0.12, 0.12, 0.07, CH, 0.2, 0.56, 0.17, "z");
19673
19700
  c.cylinder(0.1, 0.1, 0.012, CM("#9ea3a7", { metalness: 0.55, roughness: 0.35 }), 0.2, 0.56, 0.21, "z");
19674
- c.text("114", 0.1, 0.04, 0.2, 0.56, 0.217, "+z", { fg: "#1b1c1f", size: 0.85 });
19701
+ c.text("114", 0.1, 0.04, 0.2, 0.56, 0.219, "+z", { fg: "#1b1c1f", size: 0.85 });
19675
19702
  c.sphere(0.17, CH, -0.06, 0.32, -0.17, 1.35, 0.85, 0.28);
19676
19703
  c.cylinder(0.07, 0.07, 0.02, CH, -0.02, 0.3, -0.215, "z");
19677
19704
  c.roundBox(0.86, 0.035, 0.02, 0.015, CM("#1a1a1a", { roughness: 0.8 }), -0.43, 0.32, 0.15, { rot: [0, 0, 0] });
@@ -20066,12 +20093,12 @@ var GameVehiclesFleet = (() => {
20066
20093
  col
20067
20094
  );
20068
20095
  c.roundBox(0.1, 0.07, 0.18, 0.02, blk, 0.36, 1.04, 0, { rot: [0, 0, 0.4] });
20069
- c.roundBox(0.02, 0.05, 0.15, 0.01, MT.gauge, 0.39, 1.06, 0, { rot: [0, 0, 0.4] });
20096
+ c.roundBox(0.02, 0.05, 0.15, 0.01, MT.gauge, 0.39, 1.064, 0, { rot: [0, 0, 0.4] });
20070
20097
  [1, -1].forEach(function(s) {
20071
20098
  blinker(c, 0.48, 0.9, s * 0.17, true);
20072
20099
  });
20073
20100
  Z.fairing = grab(c, n0);
20074
- lamp(c, { style: "rect", x: 0.57, y: 0.91, z: 0, w: 0.2, h: 0.11, d: 0.08, side: 1, label: trl("labels.headlight") });
20101
+ lamp(c, { style: "rect", x: 0.575, y: 0.91, z: 0, w: 0.2, h: 0.11, d: 0.08, side: 1, label: trl("labels.headlight") });
20075
20102
  n0 = c.vehicle.children.length;
20076
20103
  handlebar(c, 0.36, 1.02, 0.36, { rise: 0.03, back: 0.06, mat: MT.chrome, stalk: 0.19 });
20077
20104
  Z.handlebar = grab(c, n0);
@@ -20197,9 +20224,19 @@ var GameVehiclesFleet = (() => {
20197
20224
  return [s[0], cy - hh, cy + hh, s[3] * k, s[4], s[5]];
20198
20225
  });
20199
20226
  }
20227
+ function stretchSt(st) {
20228
+ const out = st.map(function(q) {
20229
+ return q.slice();
20230
+ });
20231
+ const last = out.length - 1;
20232
+ const dir = out[last][0] >= out[0][0] ? 1 : -1;
20233
+ out[0][0] = out[0][0] + dir * 3e-3;
20234
+ out[last][0] = out[last][0] - dir * 3e-3;
20235
+ return out;
20236
+ }
20200
20237
  function fSkin(c, EA, st, keep, mat, o) {
20201
20238
  o = o || {};
20202
- const m = c.add(EA.fuseGeo(scaleSt(st, o.k || 1.004), { smooth: o.smooth || 48, seg: o.seg || 30 }), mat, 0, 0, 0, o.parent);
20239
+ const m = c.add(EA.fuseGeo(stretchSt(scaleSt(st, o.k || EA.nextSkinScale(c))), { smooth: o.smooth || 48, seg: o.seg || 30 }), mat, 0, 0, 0, o.parent);
20203
20240
  m.castShadow = false;
20204
20241
  cutSub(m, [keep], o.sub || 0.06, o.pre);
20205
20242
  c.deform.push(m);
@@ -20207,7 +20244,7 @@ var GameVehiclesFleet = (() => {
20207
20244
  }
20208
20245
  function fGlass(c, EA, st, keep, label, type, o) {
20209
20246
  o = o || {};
20210
- const m = new THREE.Mesh(EA.fuseGeo(scaleSt(st, o.k || 0.988), { smooth: o.smooth || 48, seg: o.seg || 30 }), o.mat || MT.glass);
20247
+ const m = new THREE.Mesh(EA.fuseGeo(scaleSt(st, o.k || EA.nextPaneScale(c)), { smooth: o.smooth || 48, seg: o.seg || 30 }), o.mat || MT.glass);
20211
20248
  (o.parent || c.vehicle).add(m);
20212
20249
  cutSub(m, [keep], o.sub || 0.07, o.pre);
20213
20250
  return kit.asGlass(c, m, label, type || "tempered", o.pos ? { pos: o.pos } : {});
@@ -20369,7 +20406,7 @@ var GameVehiclesFleet = (() => {
20369
20406
  return Math.min(boltW(x) - Math.abs(y - bolt(x)), x + 3.2, 2.93 - x, Math.abs(z) - 0.12);
20370
20407
  }),
20371
20408
  black,
20372
- { parent: grp, sub: 0.05, pre: EA.keepT([-3.3, 3, -0.35, 0.2, 0.1]) }
20409
+ { parent: grp, sub: 0.05, k: 1.013, pre: EA.keepT([-3.3, 3, -0.35, 0.2, 0.1]) }
20373
20410
  );
20374
20411
  const doorR = EA.polySdf([
20375
20412
  [1.38, -0.4],
@@ -20434,7 +20471,7 @@ var GameVehiclesFleet = (() => {
20434
20471
  };
20435
20472
  const g = EA.foilGeo(
20436
20473
  [
20437
- { p: [1.46, dh(0), 0], c: 1.6, t: 0.12, cam: 0.025, noCap: true },
20474
+ { p: [1.46, dh(0), s * 2e-3], c: 1.6, t: 0.12, cam: 0.025, noCap: true },
20438
20475
  { p: [1.46, dh(2.6), s * 2.6], c: 1.6, t: 0.12, cam: 0.025 },
20439
20476
  { p: [1.46, dh(4.9), s * 4.9], c: 1.6, t: 0.12, cam: 0.025 },
20440
20477
  { p: [1.43, dh(5.18), s * 5.18], c: 1.5, t: 0.11, cam: 0.02 },
@@ -20491,7 +20528,7 @@ var GameVehiclesFleet = (() => {
20491
20528
  const hs = c.add(
20492
20529
  EA.foilGeo(
20493
20530
  [
20494
- { p: [-2.78, 0.1, 0], c: 0.78, t: 0.07 },
20531
+ { p: [-2.78, 0.1, s * 2e-3], c: 0.78, t: 0.07 },
20495
20532
  { p: [-2.85, 0.1, s * 1.1], c: 0.74, t: 0.07 },
20496
20533
  { p: [-2.95, 0.1, s * 1.36], c: 0.6, t: 0.06 },
20497
20534
  { p: [-3.1, 0.1, s * 1.46], c: 0.32, t: 0.05 }
@@ -20742,7 +20779,7 @@ var GameVehiclesFleet = (() => {
20742
20779
  EA.sideKeepP(ckP, 0.5, s),
20743
20780
  s > 0 ? lbl("right_flight_deck_window") : lbl("left_flight_deck_window"),
20744
20781
  "tempered",
20745
- { pos: new V3(5.4, 2.25, s * 0.8) }
20782
+ { pos: new V3(5.4, 2.25, s * 0.8), k: 1.0085 }
20746
20783
  );
20747
20784
  fGlass(
20748
20785
  c,
@@ -20796,7 +20833,7 @@ var GameVehiclesFleet = (() => {
20796
20833
  const w = c.add(
20797
20834
  EA.foilGeo(
20798
20835
  [
20799
- { p: [1.52, dh(0), 0], c: 2.38, t: 0.15, cam: 0.02 },
20836
+ { p: [1.52, dh(0), s * 2e-3], c: 2.38, t: 0.15, cam: 0.02 },
20800
20837
  { p: [1.52, dh(0.86), s * 0.86], c: 2.38, t: 0.15, cam: 0.02 },
20801
20838
  { p: [1.42, dh(2.47), s * 2.47], c: 2.25, t: 0.145, cam: 0.02 },
20802
20839
  { p: [0.98, dh(7.42), s * 7.42], c: 1.4, t: 0.12, cam: 0.02 },
@@ -20931,7 +20968,7 @@ var GameVehiclesFleet = (() => {
20931
20968
  const hs = c.add(
20932
20969
  EA.foilGeo(
20933
20970
  [
20934
- { p: [-5.95, 2.3, 0], c: 1.55, t: 0.1 },
20971
+ { p: [-5.95, 2.3, s * 2e-3], c: 1.55, t: 0.1 },
20935
20972
  { p: [-6.62, 2.3 + 3.2 * 0.176, s * 3.2], c: 0.86, t: 0.09 }
20936
20973
  ],
20937
20974
  { up: "y", n: 10 }
@@ -21194,7 +21231,7 @@ var GameVehiclesFleet = (() => {
21194
21231
  const w = c.add(
21195
21232
  EA.foilGeo(
21196
21233
  [
21197
- { p: [1.56, dh(0), 0], c: 1.98, t: 0.15, cam: 0.025, noCap: true },
21234
+ { p: [1.56, dh(0), s * 2e-3], c: 1.98, t: 0.15, cam: 0.025, noCap: true },
21198
21235
  { p: [1.56, dh(3.6), s * 3.6], c: 1.98, t: 0.15, cam: 0.025 },
21199
21236
  { p: [1.38, dh(7.7), s * 7.7], c: 1.3, t: 0.12, cam: 0.02 },
21200
21237
  { p: [1.32, dh(7.94), s * 7.94], c: 1.1, t: 0.06, cam: 0.01 }
@@ -21336,7 +21373,7 @@ var GameVehiclesFleet = (() => {
21336
21373
  const hs = c.add(
21337
21374
  EA.foilGeo(
21338
21375
  [
21339
- { p: [-4.8, 3.08, 0], c: 1.55, t: 0.1 },
21376
+ { p: [-4.8, 3.08, s * 2e-3], c: 1.55, t: 0.1 },
21340
21377
  { p: [-5.15, 3.08, s * 3.1], c: 1, t: 0.09 }
21341
21378
  ],
21342
21379
  { up: "y", n: 10 }
@@ -21539,7 +21576,7 @@ var GameVehiclesFleet = (() => {
21539
21576
  EA.sideKeepP(ckP, 0.5, s),
21540
21577
  s > 0 ? lbl("right_flight_deck_side_window") : lbl("left_flight_deck_side_window"),
21541
21578
  "tempered",
21542
- { pos: new V3(3.6, 2, s * 0.78) }
21579
+ { pos: new V3(3.6, 2, s * 0.78), k: 1.0085 }
21543
21580
  );
21544
21581
  fGlass(
21545
21582
  c,
@@ -21567,7 +21604,7 @@ var GameVehiclesFleet = (() => {
21567
21604
  return Math.min(8e-3 - Math.abs(EA.polySdf(rrect(2.62, 3.25, 0.72, 2.22, 0.12))(x, y)), -z - 0.5);
21568
21605
  }),
21569
21606
  MT.dark,
21570
- { k: 1.003 }
21607
+ { k: 1.0065 }
21571
21608
  );
21572
21609
  void dF;
21573
21610
  EA.fuseSkin(
@@ -21577,7 +21614,7 @@ var GameVehiclesFleet = (() => {
21577
21614
  return Math.min(0.035 - Math.abs(x - 3.88 - (y - 1.75) * 0.5), y - 1.7, 2.42 - y);
21578
21615
  }),
21579
21616
  blk,
21580
- { k: 1.004 }
21617
+ { k: 1.0065 }
21581
21618
  );
21582
21619
  c.rod(new V3(5, 1.74, 0), new V3(4.05, 2.4, 0), 0.02, blk);
21583
21620
  const fl = 0.8, fab = CM("#c9bda6", { roughness: 0.75 });
@@ -21616,7 +21653,7 @@ var GameVehiclesFleet = (() => {
21616
21653
  const w = c.add(
21617
21654
  EA.foilGeo(
21618
21655
  [
21619
- { p: [1, dh(0), 0], c: 2.45, t: 0.14, cam: 0.02 },
21656
+ { p: [1, dh(0), s * 2e-3], c: 2.45, t: 0.14, cam: 0.02 },
21620
21657
  { p: [0.95, dh(0.85), s * 0.85], c: 2.42, t: 0.14, cam: 0.02 },
21621
21658
  { p: [0.55, dh(2.4), s * 2.4], c: 1.9, t: 0.13, cam: 0.02 },
21622
21659
  { p: [-0.32, dh(5.75), s * 5.75], c: 1.08, t: 0.11, cam: 0.02 },
@@ -21698,7 +21735,7 @@ var GameVehiclesFleet = (() => {
21698
21735
  const finB = c.add(
21699
21736
  EA.foilGeo(
21700
21737
  [
21701
- { p: [-3.89, 2.25, 0], c: 2.22, t: 0.115 },
21738
+ { p: [-3.89, 2.253, 0], c: 2.22, t: 0.115 },
21702
21739
  { p: [-5.34, 4.185, 0], c: 1.17, t: 0.105 }
21703
21740
  ],
21704
21741
  { up: "z", n: 10 }
@@ -21721,7 +21758,7 @@ var GameVehiclesFleet = (() => {
21721
21758
  const hs = c.add(
21722
21759
  EA.foilGeo(
21723
21760
  [
21724
- { p: [-5.3, 4.2, 0], c: 1.18, t: 0.1 },
21761
+ { p: [-5.3, 4.2, s * 2e-3], c: 1.18, t: 0.1 },
21725
21762
  { p: [-5.9, 4.24, s * 2.55], c: 0.62, t: 0.09 }
21726
21763
  ],
21727
21764
  { up: "y", n: 10 }
@@ -21983,7 +22020,7 @@ var GameVehiclesFleet = (() => {
21983
22020
  [1, -1].forEach(function(s) {
21984
22021
  const g = EA.foilGeo(
21985
22022
  [
21986
- { p: [1.52, dh(0), 0], c: 2.35, t: 0.15, cam: 0.02 },
22023
+ { p: [1.52, dh(0), s * 2e-3], c: 2.35, t: 0.15, cam: 0.02 },
21987
22024
  { p: [1.5, dh(0.48), s * 0.48], c: 2.32, t: 0.15, cam: 0.02 },
21988
22025
  { p: [0.78, dh(5.4), s * 5.4], c: 1.2, t: 0.12, cam: 0.02 },
21989
22026
  { p: [0.74, dh(5.57), s * 5.57], c: 1.1, t: 0.07, cam: 0.01 }
@@ -22088,7 +22125,7 @@ var GameVehiclesFleet = (() => {
22088
22125
  [1, -1].forEach(function(s) {
22089
22126
  const g = EA.foilGeo(
22090
22127
  [
22091
- { p: [-4.3, 1.72, 0], c: 1.3, t: 0.1 },
22128
+ { p: [-4.3, 1.72, s * 2e-3], c: 1.3, t: 0.1 },
22092
22129
  { p: [-4.72, 1.76, s * 2.2], c: 0.75, t: 0.09 }
22093
22130
  ],
22094
22131
  { up: "y", n: 10 }
@@ -22351,7 +22388,7 @@ var GameVehiclesFleet = (() => {
22351
22388
  const fl = c.roundBox(L, 0.035, 2 * hw, 0.01, LINER, cx, o.floor, 0);
22352
22389
  for (let k = 0; k < 7; k++) c.roundBox(L - 0.04, 0.018, 0.04, 8e-3, LINER, cx, o.floor + 0.025, -hw * 0.8 + k * hw * 1.6 / 6);
22353
22390
  [1, -1].forEach(function(s) {
22354
- c.roundBox(L, h, 0.025, 0.01, LINER, cx, o.floor + h / 2, s * (hw + 0.012));
22391
+ c.roundBox(L - 8e-3, h, 0.025, 0.01, LINER, cx, o.floor + h / 2, s * (hw + 0.012));
22355
22392
  });
22356
22393
  c.roundBox(0.025, h, 2 * hw, 0.01, LINER, o.x0 + 0.012, o.floor + h / 2, 0);
22357
22394
  c.roundBox(0.03, h + 0.05, 2 * hw + 0.02, 0.01, c.paint(c.meta.color), o.x1 - 0.015, o.floor + (h + 0.05) / 2, 0);
@@ -23247,10 +23284,10 @@ var GameVehiclesFleet = (() => {
23247
23284
  pre: function(c2, _m) {
23248
23285
  const gx = fX(s, 0.82) - 0.012, gy = 0.82, gh = 0.46, gw = 1.08, tz = 0.8;
23249
23286
  c2.roundBox(0.05, gh, gw, 0.04, MT.chrome, gx, gy, 0, { taper: { sz: tz } });
23250
- c2.roundBox(0.056, gh - 0.1, gw - 0.16, 0.02, GLOSS, gx + 2e-3, gy, 0, { taper: { sz: tz - 0.02 } });
23287
+ c2.roundBox(0.058, gh - 0.1, gw - 0.16, 0.02, GLOSS, gx + 2e-3, gy, 0, { taper: { sz: tz - 0.02 } });
23251
23288
  [0.13, 0.045, -0.04, -0.125].forEach(function(dy) {
23252
23289
  const k = (dy + gh / 2 - 0.05) / (gh - 0.1);
23253
- c2.roundBox(0.06, 0.022, (gw - 0.2) * (1 + (tz - 1) * k), 8e-3, MT.chrome, gx + 4e-3, gy + dy, 0);
23290
+ c2.roundBox(0.066, 0.022, (gw - 0.2) * (1 + (tz - 1) * k), 8e-3, MT.chrome, gx + 4e-3, gy + dy, 0);
23254
23291
  });
23255
23292
  c2.roundBox(0.04, 0.04, 1.32, 0.015, MT.chrome, fX(s, 1.04) - 0.03, 1.04, 0);
23256
23293
  kit.emblem(c2, fX(s, 0.9) + 0.03, 0.9, 0, 0.06);
@@ -23586,9 +23623,9 @@ var GameVehiclesFleet = (() => {
23586
23623
  pre: function(c2, _m) {
23587
23624
  const gx = fX(s, 0.8) - 0.012, gy = 0.8, gw = 1.14, gh = 0.52;
23588
23625
  c2.roundBox(0.05, gh, gw, 0.04, MT.chrome, gx, gy, 0, { taper: { sz: 0.84 } });
23589
- c2.roundBox(0.056, gh - 0.12, gw - 0.16, 0.02, GLOSS, gx + 2e-3, gy - 0.01, 0, { taper: { sz: 0.82 } });
23626
+ c2.roundBox(0.058, gh - 0.12, gw - 0.16, 0.02, GLOSS, gx + 2e-3, gy - 0.01, 0, { taper: { sz: 0.82 } });
23590
23627
  [0.12, -0.02, -0.14].forEach(function(dy) {
23591
- c2.roundBox(0.06, 0.03, (gw - 0.22) * (1 - (dy + 0.2) * 0.4), 0.01, MT.housing, gx + 4e-3, gy + dy, 0);
23628
+ c2.roundBox(0.066, 0.03, (gw - 0.22) * (1 - (dy + 0.2) * 0.4), 0.01, MT.housing, gx + 4e-3, gy + dy, 0);
23592
23629
  });
23593
23630
  c2.roundBox(0.04, 0.05, 1.3, 0.02, MT.chrome, fX(s, 1.04) - 0.03, 1.04, 0);
23594
23631
  kit.emblem(c2, gx + 0.035, gy + 0.06, 0, 0.06);
@@ -23754,7 +23791,7 @@ var GameVehiclesFleet = (() => {
23754
23791
  wg.add(bolt);
23755
23792
  }
23756
23793
  for (let sk = 0; sk < 6; sk++) {
23757
- const sa = sk / 6 * PI * 2, hole = new THREE.Mesh(new THREE.CylinderGeometry(rr * 0.13, rr * 0.13, 0.034, 14), MT.hole);
23794
+ const sa = sk / 6 * PI * 2, hole = new THREE.Mesh(new THREE.CylinderGeometry(rr * 0.13, rr * 0.13, 0.03, 14), MT.hole);
23758
23795
  hole.rotation.x = PI / 2;
23759
23796
  hole.position.set(Math.cos(sa) * rr * 0.58, Math.sin(sa) * rr * 0.58, fz + zs * 2e-3);
23760
23797
  wg.add(hole);
@@ -23783,7 +23820,7 @@ var GameVehiclesFleet = (() => {
23783
23820
  c.rod(new V3(0.6, 2.8, sd * 0.78), new V3(-0.25, 2.8, sd * 0.78), 0.035, red);
23784
23821
  });
23785
23822
  c.rod(new V3(0.6, 2.8, -0.78), new V3(0.6, 2.8, 0.78), 0.035, red);
23786
- c.rod(new V3(-0.25, 2.8, -0.78), new V3(-0.25, 2.8, 0.78), 0.035, red);
23823
+ c.rod(new V3(-0.25, 2.8, -0.78), new V3(-0.25, 2.8, 0.78), 0.032, red);
23787
23824
  c.rod(new V3(-0.25, 2.3, -0.8), new V3(-0.25, 2.8, 0.78), 0.03, red);
23788
23825
  const roofItems = [c.roundBox(0.16, 0.05, 1.3, 0.02, MT.trim, 0.42, m.top + 0.08, 0)];
23789
23826
  [-0.48, -0.16, 0.16, 0.48].forEach(function(z) {
@@ -24364,8 +24401,8 @@ var GameVehiclesFleet = (() => {
24364
24401
  );
24365
24402
  const zz = sd * (kit.halfAt(W, m.tumble, 1.75) + 0.012), zt = sd * (kit.halfAt(W, m.tumble, 2.22) + 0.012);
24366
24403
  c2.text("RESGATE", 1.2, 0.3, sd > 0 ? -1.5 : -0.85, 2.22, zt, sd > 0 ? "+z" : "-z", { fg: red });
24367
- [0, PI / 3, -PI / 3].forEach(function(a) {
24368
- c2.roundBox(0.09, 0.36, 0.01, 0.01, blu, -2.25, 1.75, zz, { rot: [0, 0, a] });
24404
+ [0, PI / 3, -PI / 3].forEach(function(a, i) {
24405
+ c2.roundBox(0.09, 0.36, 0.01, 0.01, blu, -2.25, 1.75, zz + sd * i * 25e-4, { rot: [0, 0, a] });
24369
24406
  });
24370
24407
  });
24371
24408
  if (c2.hood) {
@@ -24717,9 +24754,31 @@ var GameVehiclesFleet = (() => {
24717
24754
  if (o.col) colorize(g, o.col);
24718
24755
  return g;
24719
24756
  }
24757
+ function stretchEnds(st, by) {
24758
+ const out = st.map(function(q) {
24759
+ return q.slice();
24760
+ });
24761
+ const last = out.length - 1;
24762
+ const dir = out[last][0] >= out[0][0] ? 1 : -1;
24763
+ out[0][0] = out[0][0] - dir * by;
24764
+ out[last][0] = out[last][0] + dir * by;
24765
+ return out;
24766
+ }
24767
+ const paneCount = /* @__PURE__ */ new WeakMap();
24768
+ function nextPaneScale(c) {
24769
+ const n = paneCount.get(c) ?? 0;
24770
+ paneCount.set(c, n + 1);
24771
+ return 0.988 - 35e-4 * (n % 4);
24772
+ }
24773
+ const skinCount = /* @__PURE__ */ new WeakMap();
24774
+ function nextSkinScale(c) {
24775
+ const n = skinCount.get(c) ?? 0;
24776
+ skinCount.set(c, n + 1);
24777
+ return 1.004 + 25e-4 * (n % 3);
24778
+ }
24720
24779
  function fuseGlass(c, st, keep, label, type, o) {
24721
24780
  o = o || {};
24722
- const k = o.k || 0.988;
24781
+ const k = o.k || nextPaneScale(c);
24723
24782
  const st2 = st.map(function(s) {
24724
24783
  const cy = (s[1] + s[2]) / 2, hh = (s[2] - s[1]) / 2 * k;
24725
24784
  return [s[0], cy - hh, cy + hh, s[3] * k, s[4], s[5]];
@@ -24732,12 +24791,12 @@ var GameVehiclesFleet = (() => {
24732
24791
  }
24733
24792
  function fuseSkin(c, st, keep, mat, o) {
24734
24793
  o = o || {};
24735
- const k = o.k || 1.004;
24794
+ const k = o.k || nextSkinScale(c);
24736
24795
  const st2 = st.map(function(s) {
24737
24796
  const cy = (s[1] + s[2]) / 2, hh = (s[2] - s[1]) / 2 * k;
24738
24797
  return [s[0], cy - hh, cy + hh, s[3] * k, s[4], s[5]];
24739
24798
  });
24740
- const m = c.add(fuseGeo(st2, { smooth: o.smooth || 48, seg: o.seg || 30 }), mat, 0, 0, 0, o.parent);
24799
+ const m = c.add(fuseGeo(stretchEnds(st2, -3e-3), { smooth: o.smooth || 48, seg: o.seg || 30 }), mat, 0, 0, 0, o.parent);
24741
24800
  m.castShadow = false;
24742
24801
  kit.cutMesh(m, [keep], 40);
24743
24802
  c.deform.push(m);
@@ -25008,7 +25067,7 @@ var GameVehiclesFleet = (() => {
25008
25067
  }
25009
25068
  ;
25010
25069
  (o.screens || []).forEach(function(s) {
25011
- const sc = c.roundBox(0.012, s[2], s[3], 8e-3, MT.screen, x - 0.085, y + s[0], s[1]);
25070
+ const sc = c.roundBox(0.012, s[2], s[3], 8e-3, MT.screen, x - 0.091, y + s[0], s[1]);
25012
25071
  sc.castShadow = false;
25013
25072
  });
25014
25073
  }
@@ -25048,7 +25107,7 @@ var GameVehiclesFleet = (() => {
25048
25107
  );
25049
25108
  c.roundBox(0.42 * k, 0.07 * k, 0.33 * k, 0.03 * k, CM(o.band || "#2a2c30", { roughness: 0.5 }), -0.2 * k - 0.05, -0.02 * k, 0, P);
25050
25109
  c.roundBox(0.17 * k, shaft, 0.11 * k, 0.04 * k, low, -0.16 * k, -shaft / 2 - 0.02, 0, P);
25051
- c.roundBox(0.36 * k, 0.018, 0.2 * k, 8e-3, low, -0.17 * k, -shaft - 0.01, 0, P);
25110
+ c.roundBox(0.36 * k, 0.018, 0.2 * k, 8e-3, low, -0.17 * k, -shaft - 6e-3, 0, P);
25052
25111
  c.cylinder(0.055 * k, 0.05 * k, 0.32 * k, low, -0.2 * k, -shaft - 0.09 * k, 0, "x", P);
25053
25112
  c.roundBox(0.16 * k, 0.12 * k, 0.025, 0.01, low, -0.18 * k, -shaft - 0.17 * k, 0, P);
25054
25113
  const pr = propeller(c, -0.38 * k, -shaft - 0.09 * k, 0, {
@@ -25080,7 +25139,11 @@ var GameVehiclesFleet = (() => {
25080
25139
  function skinOf(c, mesh, keep, mat, o) {
25081
25140
  o = o || {};
25082
25141
  const g = mesh.geometry.clone(), p = g.attributes.position, sz = o.sz || 1.006, dy = o.dy || 0;
25142
+ let reach = 0;
25143
+ for (let i = 0; i < p.count; i++) reach = Math.max(reach, Math.abs(p.getX(i)));
25144
+ const sx = o.ends === false ? 1 : 1 - 3e-3 / (reach || 1);
25083
25145
  for (let i = 0; i < p.count; i++) {
25146
+ p.setX(i, p.getX(i) * sx);
25084
25147
  p.setZ(i, p.getZ(i) * sz);
25085
25148
  p.setY(i, p.getY(i) + dy * Math.sign(p.getY(i)));
25086
25149
  }
@@ -25194,6 +25257,8 @@ var GameVehiclesFleet = (() => {
25194
25257
  foilGeo,
25195
25258
  fuseGeo,
25196
25259
  fuseGlass,
25260
+ nextPaneScale,
25261
+ nextSkinScale,
25197
25262
  fuseSkin,
25198
25263
  bandT,
25199
25264
  cutT,
@@ -25342,7 +25407,7 @@ var GameVehiclesFleet = (() => {
25342
25407
  const tank = c.roundBox(0.48, 0.24, 0.3, 0.06, CM("#a3241c", { roughness: 0.5 }), -2.05, 0.06, -0.38);
25343
25408
  c.rod(new V3(-2, 0.18, -0.38), new V3(-2.3, 0.4, -0.1), 0.01, CM("#1b1b1b"));
25344
25409
  c.roundBox(1.8, 0.03, 0.1, 0.01, MT.wood, -0.6, 0, 0.5, { rot: [0.3, 0, 0] });
25345
- c.roundBox(0.35, 0.03, 0.14, 0.02, MT.wood, 0.45, 0, 0.5, { rot: [0.3, 0, 0] });
25410
+ c.roundBox(0.35, 0.03, 0.14, 0.02, MT.wood, 0.45, 4e-3, 0.5, { rot: [0.3, 0, 0] });
25346
25411
  c.rod(new V3(-2.35, 0.42, 0.6), new V3(-2.35, 1.1, 0.6), 0.012, MT.chrome);
25347
25412
  EA.navLight(c, -2.35, 1.13, 0.6, "white", trl("labels.stern_light_mast"), { r: 0.035 });
25348
25413
  EA.navLight(c, 2.3, 0.53, 0.06, "green", trl("labels.starboard_bow_light_green"), { r: 0.03 });
@@ -25519,7 +25584,7 @@ var GameVehiclesFleet = (() => {
25519
25584
  c.roundBox(2.3, 0.22, 0.5, 0.07, vinyl, -2.3, 0.45, s * 0.75);
25520
25585
  c.roundBox(2.3, 0.4, 0.12, 0.05, vinyl, -2.3, 0.72, s * (H.half(-2.3, 0.7) - 0.08));
25521
25586
  });
25522
- c.roundBox(0.5, 0.22, 1.5, 0.07, vinyl, -3.35, 0.45, 0);
25587
+ c.roundBox(0.5, 0.22, 1.5, 0.07, vinyl, -3.35, 0.453, 0);
25523
25588
  c.roundBox(0.12, 0.42, 2.1, 0.05, vinyl, -3.52, 0.74, 0);
25524
25589
  c.seatTops.push(
25525
25590
  { x: -2.3, y: 0.57, z: 0.75, w: 0.5, l: 2.2 },
@@ -25527,8 +25592,8 @@ var GameVehiclesFleet = (() => {
25527
25592
  { x: 2, y: 0.57, z: 0, w: 1.2, l: 0.9 }
25528
25593
  );
25529
25594
  const cy = 0.22;
25530
- c.roundBox(0.85, 0.72, 0.78, 0.12, white, 0.75, cy + 0.36, 0.72);
25531
- c.roundBox(0.85, 0.72, 0.72, 0.12, white, 0.75, cy + 0.36, -0.74);
25595
+ c.roundBox(0.85, 0.72, 0.78, 0.12, white, 0.75, cy + 0.362, 0.72);
25596
+ c.roundBox(0.85, 0.72, 0.72, 0.12, white, 0.75, cy + 0.362, -0.74);
25532
25597
  c.roundBox(0.42, 0.04, 0.7, 0.015, CM("#18191b", { roughness: 0.7 }), 0.95, cy + 0.74, 0.72, { rot: [0, 0, -0.35] });
25533
25598
  [0.55, 0.72, 0.89].forEach(function(z, i) {
25534
25599
  c.cylinder(0.045, 0.045, 0.012, MT.gauge, 0.93 + (i === 1 ? 0.05 : 0), cy + 0.79, z, null, { seg: 16 }).rotation.set(0, 0, 1.22);
@@ -25539,8 +25604,8 @@ var GameVehiclesFleet = (() => {
25539
25604
  c.rod(new V3(0.62, cy + 0.72, 0.62), new V3(0.55, cy + 0.82, 0.62), 0.02, MT.chrome);
25540
25605
  c.rod(new V3(0.55, cy + 0.7, 0.98), new V3(0.42, cy + 0.88, 1), 0.015, MT.chrome);
25541
25606
  c.sphere(0.035, MT.plastic, 0.42, cy + 0.9, 1);
25542
- kit.seat(c, -0.1, cy, 0.72, { w: 0.55, h: 0.42, back: 0.48, lean: 0.12, mat: vinyl, headrest: false });
25543
- kit.seat(c, -0.1, cy, -0.74, { w: 0.55, h: 0.42, back: 0.48, lean: 0.12, mat: vinyl, headrest: false });
25607
+ kit.seat(c, -0.1, cy + 2e-3, 0.72, { w: 0.55, h: 0.42, back: 0.48, lean: 0.12, mat: vinyl, headrest: false });
25608
+ kit.seat(c, -0.1, cy + 2e-3, -0.74, { w: 0.55, h: 0.42, back: 0.48, lean: 0.12, mat: vinyl, headrest: false });
25544
25609
  [1, -1].forEach(function(s) {
25545
25610
  const pts = [];
25546
25611
  for (let i = 0; i <= 8; i++) {
@@ -25762,7 +25827,7 @@ var GameVehiclesFleet = (() => {
25762
25827
  [1.6, -0.55],
25763
25828
  [1.95, -1]
25764
25829
  ].forEach(function(q) {
25765
- c.roundBox(0.42, 0.24, 0.32, 0.03, CM("#3f6fa0", { roughness: 0.6 }), q[0], dk(q[0]) + 0.12, q[1]);
25830
+ c.roundBox(0.42, 0.24, 0.32, 0.03, CM("#3f6fa0", { roughness: 0.6 }), q[0], dk(q[0]) + 0.128 + (q[0] > 1.9 ? 4e-3 : 0), q[1]);
25766
25831
  });
25767
25832
  const hx = -2.7, hy0 = dk(hx), hh = 1.9, hw2 = 1.1, cas = c.roundBox(2, hh, hw2 * 2, 0.08, wht, hx, hy0 + hh / 2, 0, { def: true });
25768
25833
  const cutF = {
@@ -25851,11 +25916,11 @@ var GameVehiclesFleet = (() => {
25851
25916
  c.rod(new V3(0, 0, 0), new V3(0, Math.cos(a8) * 0.36, Math.sin(a8) * 0.36), 0.014, MT.wood, { parent: whl });
25852
25917
  }
25853
25918
  c.cylinder(0.05, 0.05, 0.14, MT.wood, 0.06, 0, 0, "x", { parent: whl });
25854
- kit.seat(c, hx - 0.05, hy0, 0, { w: 0.5, h: 0.55, back: 0.45, mat: inner, headrest: false });
25919
+ kit.seat(c, hx - 0.05, hy0 + 2e-3, 0, { w: 0.5, h: 0.55, back: 0.45, mat: inner, headrest: false });
25855
25920
  c.roundBox(1.8, 0.12, 0.65, 0.04, CM("#7c5a3b"), hx - 0.2, hy0 + 0.5, -0.72);
25856
25921
  c.roundBox(1.7, 0.08, 0.55, 0.04, CM("#6b7c8f", { roughness: 1 }), hx - 0.2, hy0 + 0.6, -0.72);
25857
25922
  c.roundBox(1.9, 0.02, 2.1, 0.01, inner, hx, hy0 + hh - 0.06, 0).castShadow = false;
25858
- c.cylinder(0.1, 0.1, 1.2, MT.trim, hx - 0.75, hy0 + hh + 0.6, 0.65);
25923
+ c.cylinder(0.1, 0.1, 1.2, MT.trim, hx - 0.75, hy0 + hh + 0.596, 0.65);
25859
25924
  c.cylinder(0.13, 0.1, 0.1, MT.trim, hx - 0.75, hy0 + hh + 1.22, 0.65);
25860
25925
  c.rod(new V3(hx + 0.4, hy0 + hh + 0.1, 0), new V3(hx + 0.4, hy0 + hh + 1.6, 0), 0.04, wood);
25861
25926
  EA.navLight(c, hx + 0.4, hy0 + hh + 1.65, 0, "white", trl("labels.masthead_light"), { r: 0.05 });
@@ -25956,7 +26021,7 @@ var GameVehiclesFleet = (() => {
25956
26021
  const EA = shared.EA, white = "#ecebe6";
25957
26022
  const paintW = c.paint(white);
25958
26023
  const ST = [
25959
- [2.3, 0.98, 1.46, 0.7, 2.4],
26024
+ [2.297, 0.98, 1.46, 0.7, 2.4],
25960
26025
  [2.15, 0.88, 1.55, 0.92, 2.6],
25961
26026
  [1.85, 0.8, 1.61, 1.02, 2.8],
25962
26027
  [1.45, 0.72, 1.65, 1.08, 3],
@@ -26085,7 +26150,7 @@ var GameVehiclesFleet = (() => {
26085
26150
  };
26086
26151
  const g = EA.foilGeo(
26087
26152
  [
26088
- { p: [0.66, dh(0), 0], c: 1.63, t: 0.12, cam: 0.02 },
26153
+ { p: [0.66, dh(0), s * 2e-3], c: 1.63, t: 0.12, cam: 0.02 },
26089
26154
  { p: [0.66, dh(2.6), s * 2.6], c: 1.63, t: 0.12, cam: 0.02 },
26090
26155
  { p: [0.62, dh(5.2), s * 5.2], c: 1.14, t: 0.11, cam: 0.02 },
26091
26156
  { p: [0.58, dh(5.5) + 0.02, s * 5.5], c: 0.98, t: 0.06, cam: 0.01 }
@@ -26124,7 +26189,7 @@ var GameVehiclesFleet = (() => {
26124
26189
  const hs = c.add(
26125
26190
  EA.foilGeo(
26126
26191
  [
26127
- { p: [-4.6, 1.42, 0], c: 1.2, t: 0.09 },
26192
+ { p: [-4.6, 1.42, s * 2e-3], c: 1.2, t: 0.09 },
26128
26193
  { p: [-4.95, 1.42, s * 1.72], c: 0.86, t: 0.08 }
26129
26194
  ],
26130
26195
  { up: "y", n: 10 }
@@ -26375,7 +26440,7 @@ var GameVehiclesFleet = (() => {
26375
26440
  const w = c.add(
26376
26441
  EA.foilGeo(
26377
26442
  [
26378
- { p: [1.18, dh(0), 0], c: 1.71, t: 0.15, cam: 0.02 },
26443
+ { p: [1.18, dh(0), s * 2e-3], c: 1.71, t: 0.15, cam: 0.02 },
26379
26444
  { p: [1.18, dh(5.6), s * 5.6], c: 1.71, t: 0.14, cam: 0.02 },
26380
26445
  { p: [1.12, dh(5.84) + 0.02, s * 5.84], c: 1.55, t: 0.07, cam: 0.01 }
26381
26446
  ],
@@ -26409,7 +26474,7 @@ var GameVehiclesFleet = (() => {
26409
26474
  const hs = c.add(
26410
26475
  EA.foilGeo(
26411
26476
  [
26412
- { p: [-2.95, 0.36, 0], c: 0.95, t: 0.09 },
26477
+ { p: [-2.95, 0.36, s * 2e-3], c: 0.95, t: 0.09 },
26413
26478
  { p: [-3.05, 0.36, s * 1.8], c: 0.8, t: 0.08 }
26414
26479
  ],
26415
26480
  { up: "y", n: 10 }
@@ -26441,8 +26506,8 @@ var GameVehiclesFleet = (() => {
26441
26506
  const finB = c.add(
26442
26507
  EA.foilGeo(
26443
26508
  [
26444
- { p: [-2.64, 0.42, 0], c: 1.27, t: 0.11 },
26445
- { p: [-3.24, 1.85, 0], c: 0.74, t: 0.1 }
26509
+ { p: [-2.64, 0.424, 0], c: 1.27, t: 0.11 },
26510
+ { p: [-3.24, 1.853, 0], c: 0.74, t: 0.1 }
26446
26511
  ],
26447
26512
  { up: "z", n: 10 }
26448
26513
  ),
@@ -26712,10 +26777,11 @@ var GameVehiclesFleet = (() => {
26712
26777
  EA.sideKeepP(fdP, 0.35, s),
26713
26778
  s > 0 ? lbl("front_right_door_window") : lbl("front_left_door_window"),
26714
26779
  "tempered",
26715
- { pos: new V3(0.4, 1.5, s * 0.64) }
26780
+ { pos: new V3(0.4, 1.5, s * 0.64), k: 0.988 }
26716
26781
  );
26717
26782
  EA.fuseGlass(c, ST, EA.sideKeepP(rdP, 0.35, s), s > 0 ? lbl("rear_right_door_window") : lbl("rear_left_door_window"), "tempered", {
26718
- pos: new V3(-0.5, 1.5, s * 0.63)
26783
+ pos: new V3(-0.5, 1.5, s * 0.63),
26784
+ k: 0.988
26719
26785
  });
26720
26786
  const df = EA.polySdf([
26721
26787
  [0.78, 0.72],
@@ -26811,7 +26877,7 @@ var GameVehiclesFleet = (() => {
26811
26877
  const hs = c.add(
26812
26878
  EA.foilGeo(
26813
26879
  [
26814
- { p: [-5.25, 1.76, 0], c: 0.45, t: 0.1 },
26880
+ { p: [-5.25, 1.76, s * 2e-3], c: 0.45, t: 0.1 },
26815
26881
  { p: [-5.32, 1.76, s * 0.62], c: 0.34, t: 0.09 }
26816
26882
  ],
26817
26883
  { up: "y", n: 8 }
@@ -27139,7 +27205,7 @@ var GameVehiclesFleet = (() => {
27139
27205
  const hs = c.add(
27140
27206
  EA.foilGeo(
27141
27207
  [
27142
- { p: [-5.3, 1.98, 0], c: 0.6, t: 0.11 },
27208
+ { p: [-5.3, 1.98, s * 2e-3], c: 0.6, t: 0.11 },
27143
27209
  { p: [-5.38, 1.98, s * 1], c: 0.52, t: 0.1 }
27144
27210
  ],
27145
27211
  { up: "y", n: 8 }
@@ -27340,7 +27406,10 @@ var GameVehiclesFleet = (() => {
27340
27406
  hasSunroof: (key) => !!options.sunroofs?.includes(key),
27341
27407
  register(spec, build) {
27342
27408
  if (!groups.has(spec.group) || only && !only.has(spec.key) || skip.has(spec.key)) return;
27343
- kit.register({ ...spec, seedKey: legacyVehicleSeeds[spec.key] }, build);
27409
+ kit.register({ ...spec, seedKey: legacyVehicleSeeds[spec.key] }, (context, vehicleKit) => {
27410
+ build(context, vehicleKit);
27411
+ separateSpokes(context);
27412
+ });
27344
27413
  }
27345
27414
  };
27346
27415
  }