@adatechnology/game-vehicles-fleet 6.0.1 → 8.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.
@@ -30,6 +30,7 @@ var GameVehiclesFleet = (() => {
30
30
  createFleetPack: () => createFleetPack,
31
31
  createScenarios: () => createScenarios,
32
32
  enLocale: () => en_default,
33
+ fleetCabinCategoryOf: () => fleetCabinCategoryOf,
33
34
  fleetCard: () => fleetCard,
34
35
  fleetDims: () => fleetDims,
35
36
  fleetGroupIds: () => fleetGroupIds,
@@ -3808,6 +3809,34 @@ var GameVehiclesFleet = (() => {
3808
3809
  ];
3809
3810
  }
3810
3811
 
3812
+ // src/spokes.ts
3813
+ var THICKNESS_STEP = 0.0625;
3814
+ var THINNEST = 0.15;
3815
+ var CLEARANCE = 15e-4;
3816
+ var SPOKE_HALF_THICKNESS = 0.02;
3817
+ var DISH_HALF_THICKNESS = 0.025;
3818
+ function sharesPlaneWithDish(reach, scale) {
3819
+ const dishReach = reach * 0.9;
3820
+ const outer = Math.abs(reach + SPOKE_HALF_THICKNESS * scale - (dishReach + DISH_HALF_THICKNESS));
3821
+ const inner = Math.abs(reach - SPOKE_HALF_THICKNESS * scale - (dishReach - DISH_HALF_THICKNESS));
3822
+ return outer < CLEARANCE || inner < CLEARANCE;
3823
+ }
3824
+ function separateSpokes(context) {
3825
+ for (const wheel of context.wheels) {
3826
+ let previous = 1 + THICKNESS_STEP;
3827
+ for (const child of wheel.children) {
3828
+ const mesh = child;
3829
+ const type = mesh.geometry?.type;
3830
+ if (!mesh.isMesh || type !== "BufferGeometry" && type !== "BoxGeometry" || mesh.position.z === 0) continue;
3831
+ const reach = Math.abs(mesh.position.z);
3832
+ let scale = previous - THICKNESS_STEP;
3833
+ while (sharesPlaneWithDish(reach, scale) && scale > THINNEST) scale -= THICKNESS_STEP / 2;
3834
+ mesh.scale.z = Math.max(scale, THINNEST);
3835
+ previous = scale;
3836
+ }
3837
+ }
3838
+ }
3839
+
3811
3840
  // src/vehicles/boats-extra.ts
3812
3841
  function installBoatsExtra(fx) {
3813
3842
  const kit = fx.kit;
@@ -4242,12 +4271,12 @@ var GameVehiclesFleet = (() => {
4242
4271
  cs.castShadow = false;
4243
4272
  [1, -1].forEach(function(s) {
4244
4273
  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);
4274
+ c.roundBox(2.6, 0.376, 0.06, 0.02, white, -2.45, 0.671, s * 0.6);
4246
4275
  c.roundBox(2.8, 0.22, 0.05, 0.02, white, -2.4, 1.02, s * (H.sheerAt(-2.4).z - 0.32));
4247
4276
  c.cylinder(0.06, 0.07, 0.11, MT.chrome, -1.6, 1.15, s * 1.06);
4248
4277
  c.cylinder(0.035, 0.035, 0.02, MT.chrome, -1.6, 1.21, s * 1.06);
4249
4278
  });
4250
- c.roundBox(0.3, 0.38, 1.2, 0.03, white, -3.75, 0.67, 0);
4279
+ c.roundBox(0.3, 0.376, 1.2, 0.03, white, -3.75, 0.671, 0);
4251
4280
  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
4281
  const trST = [
4253
4282
  [-1.1, 0.8, 1.56, 2, 6],
@@ -4656,9 +4685,9 @@ var GameVehiclesFleet = (() => {
4656
4685
  });
4657
4686
  c.roundBox(1.6, 0.03, 0.1, 0.01, MT.wood, 0.3, 0.05, 0.38, { rot: [0.2, 0, 0] });
4658
4687
  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);
4688
+ c.roundBox(0.36, 0.24, 0.26, 0.03, CM("#ffffff", { roughness: 0.5 }), 1.25, 0.142, 0.15);
4660
4689
  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);
4690
+ c.roundBox(0.03, 0.1, 0.02, 5e-3, CM("#d01c1c"), 1.25, 0.2, 0.284);
4662
4691
  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
4692
  buoy.rotation.x = PI / 2;
4664
4693
  const motor = EA.outboard(c, -1.99, 0.55, 0, { k: 1, tiller: true, label: "40", col: "#1d1f22" });
@@ -4794,7 +4823,7 @@ var GameVehiclesFleet = (() => {
4794
4823
  return Math.min(0.06 - y, x - x0 - 0.04);
4795
4824
  }),
4796
4825
  CM("#1d2023", { roughness: 0.6 }),
4797
- { sz: 1.004, dy: 3e-3 }
4826
+ { sz: 1.004, dy: 3e-3, ends: false }
4798
4827
  );
4799
4828
  EA.sheerTube(c, H, x0 + 0.02, 6.2, 0.07, blk, { dy: -0.1, dz: 0.02 });
4800
4829
  const deck = c.add(EA.deckGeo(H, x0 + 0.02, 6.32, { n: 40, m: 10, crown: 0.05 }), deckC);
@@ -4884,8 +4913,9 @@ var GameVehiclesFleet = (() => {
4884
4913
  c.rod(new V3(hx + 0.88, ih + 0.97, z - 0.05), new V3(hx + 0.78, ih + 1.12, z - 0.05), 0.012, MT.chrome);
4885
4914
  c.sphere(0.025, MT.plastic, hx + 0.78, ih + 1.12, z - 0.05);
4886
4915
  });
4887
- kit.seat(c, hx + 0.05, ih, 0.45, { w: 0.52, h: 0.62, back: 0.6, lean: 0.12, mat: CM("#25282b", { roughness: 0.8 }) });
4888
- kit.seat(c, hx + 0.05, ih, -0.45, { w: 0.52, h: 0.62, back: 0.6, lean: 0.12, mat: CM("#25282b", { roughness: 0.8 }) });
4916
+ kit.seat(c, hx + 0.05, ih, 0.45, { w: 0.52, h: 0.62, back: 0.6, lean: 0.12, mat: CM("#25282b", { roughness: 0.8 }), role: "front_passenger" });
4917
+ kit.seat(c, hx + 0.05, ih, -0.45, { w: 0.52, h: 0.62, back: 0.6, lean: 0.12, mat: CM("#25282b", { roughness: 0.8 }), id: "driver", role: "driver" });
4918
+ c.addDoor({ id: "cabin_door", widthMetres: 0.72, heightMetres: 1.65 });
4889
4919
  c.roundBox(0.45, 0.42, 1.9, 0.04, CM("#25282b", { roughness: 0.8 }), hx - 1.35, ih + 0.21, 0.1);
4890
4920
  c.seatTops.push({ x: hx - 1.35, y: ih + 0.44, z: 0.1, w: 1.8, l: 0.4 });
4891
4921
  c.roundBox(3, 0.02, 2, 0.01, CM("#3a3f44", { roughness: 0.9 }), hx, hy0 + hh - 0.06, 0).castShadow = false;
@@ -5830,8 +5860,9 @@ var GameVehiclesFleet = (() => {
5830
5860
  m.tumble = T;
5831
5861
  m.frontQuad = qf;
5832
5862
  if (intr && s.shelf) {
5833
- const sx0 = gh.rb + 0.03, sx1 = gh.rb + s.shelf;
5834
- c.roundBox(sx1 - sx0, 0.014, gh.Wg - 0.24, 6e-3, CM("#1b1c1e", { roughness: 0.92 }), (sx0 + sx1) / 2, gh.belt - 0.02, 0).castShadow = false;
5863
+ const sx0 = gh.rb + 0.03, sx1 = Math.min(gh.rb + s.shelf, gh.rb + 0.26);
5864
+ if (sx1 > sx0 + 0.04)
5865
+ c.roundBox(sx1 - sx0, 0.014, gh.Wg - 0.24, 6e-3, CM("#1b1c1e", { roughness: 0.92 }), (sx0 + sx1) / 2, gh.belt - 0.02, 0).castShadow = false;
5835
5866
  }
5836
5867
  if (intr)
5837
5868
  kit.interior(
@@ -5842,11 +5873,17 @@ var GameVehiclesFleet = (() => {
5842
5873
  ft: gh.ft,
5843
5874
  rb: gh.rb,
5844
5875
  rt: gh.rt,
5845
- roof: Math.min(gh.roof, roofR),
5876
+ roof: gh.roof + 0.02,
5846
5877
  belt: gh.belt,
5847
- floor: s.bottomY + 0.1,
5878
+ floor: s.bottomY + 0.02,
5879
+ seatH: 0.12,
5880
+ dashD: 0.32,
5881
+ dashH: 0.24,
5882
+ visorUp: true,
5848
5883
  zIn: gh.Wg / 2 - 0.09,
5849
5884
  zRoof: halfAt(gh.Wg, T, gh.roof) - 0.12,
5885
+ xFront: s.shelf ? gh.fb - 0.86 : void 0,
5886
+ rowPitch: s.shelf ? 0.72 : void 0,
5850
5887
  xRear: gh.rb + 0.06
5851
5888
  },
5852
5889
  intr
@@ -6394,7 +6431,7 @@ var GameVehiclesFleet = (() => {
6394
6431
  ]);
6395
6432
  c2.roundBox(0.03, 0.05, 0.16, 0.012, MT.trim, I.S.endX(-1, 0.84) - 0.01, 0.84, 0);
6396
6433
  },
6397
- interior: { rows: 2, col: "#4a4c52", trim: "#26272a" },
6434
+ interior: { rows: 2, col: "#4a4c52", trim: "#26272a", rowPitch: 0.72 },
6398
6435
  hood: { motor: "gasoline" },
6399
6436
  wheels: [
6400
6437
  [1.17, 0.2875, 0.175, wheelOpts("hubcap")],
@@ -7889,12 +7926,12 @@ var GameVehiclesFleet = (() => {
7889
7926
  [0.62, 0.48, -0.48, -0.62].forEach(function(z) {
7890
7927
  const s = dg.at(dg.uz(z), 0.25);
7891
7928
  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");
7929
+ c2.cylinder(0.036, 0.036, 0.106, MT.dark, s.p.x - 0.02, 0.25, z, "x");
7893
7930
  });
7894
7931
  const lip = K.grid(-1, 0, { z1: 0.7, y0: 0.88, y1: 0.97, du: 0.03, dv: 0.02 });
7895
7932
  K.skin(lip, GLOSS, { u0: 0.05, u1: 0.95, yb: 0.925, yt: 0.955, off: 0.016, thick: 0.02, nv: 2 });
7896
7933
  },
7897
- interior: { rows: 2, col: "#1c1d20", trim: "#121316" },
7934
+ interior: { rows: 2, col: "#1c1d20", trim: "#121316", xFront: -0.46, rowPitch: 0.62 },
7898
7935
  hood: { motor: "v8_na" },
7899
7936
  wheels: [
7900
7937
  [1.35, 0.3435, 0.255, { rim: ALLOYD, spokeMat: ALLOY, spokes: 10, rimR: 0.72 }],
@@ -8157,16 +8194,20 @@ var GameVehiclesFleet = (() => {
8157
8194
  x: xd - 0.07,
8158
8195
  y: belt + 0.02,
8159
8196
  w: zi * 2,
8160
- d: 0.48,
8161
- h: Math.min(0.55, belt - fl - 0.08),
8197
+ d: 0.34,
8198
+ h: Math.min(0.28, belt - fl - 0.16),
8162
8199
  drv: -zi * 0.52,
8163
8200
  mat: trim,
8164
8201
  top: fab
8165
8202
  });
8166
8203
  kit.steeringWheel(c, xd - 0.66, belt + 0.06, -zi * 0.52, { r: 0.22, tilt: 1.12, col: 0.5, mat: trim });
8167
8204
  const sx = Math.max(f - len + 0.62, xd - 1.08);
8168
- kit.seat(c, sx, fl, -zi * 0.52, { w: 0.5, mat: fab, h: 0.44, back: 0.64, lean: 0.18 });
8169
- kit.seat(c, sx, fl, zi * 0.42, { w: zi * 0.98, n: 2, mat: fab, h: 0.44, back: 0.6, lean: 0.18 });
8205
+ kit.seat(c, sx, fl, -zi * 0.52, { w: 0.52, mat: fab, h: 0.24, back: 0.64, lean: 0.18, id: "driver", role: "driver" });
8206
+ kit.seat(c, sx, fl, zi * 0.42, { w: zi * 0.98, n: 2, mat: fab, h: 0.24, back: 0.6, lean: 0.18, role: "front_passenger" });
8207
+ const doorW = Math.max(0.75, f - 0.1 - (xr - 0.06));
8208
+ const doorH = Math.max(1.05, ry - fl - 0.1);
8209
+ c.addDoor({ id: "door_front_left", widthMetres: Math.round(doorW * 1e3) / 1e3, heightMetres: Math.round(doorH * 1e3) / 1e3 });
8210
+ c.addDoor({ id: "door_front_right", widthMetres: Math.round(doorW * 1e3) / 1e3, heightMetres: Math.round(doorH * 1e3) / 1e3 });
8170
8211
  c.rod(new V3(sx + 0.55, fl, -0.05), new V3(sx + 0.5, fl + 0.48, -0.08), 0.014, MT.chrome);
8171
8212
  c.sphere(0.035, MT.plastic, sx + 0.5, fl + 0.5, -0.08);
8172
8213
  c.roundBox(0.03, ry - fl - 0.12, zi * 2, 0.01, trim, f - len + 0.07, (ry + fl) / 2, 0);
@@ -8304,7 +8345,7 @@ var GameVehiclesFleet = (() => {
8304
8345
  side: s,
8305
8346
  noPart: true
8306
8347
  });
8307
- c.roundBox(0.03, 0.12, 0.42, 0.02, MT.dark, bx + 0.125, by - bh * 0.3, s * 0.35);
8348
+ c.roundBox(0.03, 0.12, 0.42, 0.02, MT.dark, bx + 0.119, by - bh * 0.3, s * 0.35);
8308
8349
  });
8309
8350
  }
8310
8351
  c.roundBox(0.06, 0.06, 0.12, 0.02, MT.steel, bx + 0.13, by - bh * 0.35, 0);
@@ -8407,7 +8448,7 @@ var GameVehiclesFleet = (() => {
8407
8448
  -(W - 0.2) / 2 + (k + 0.5) * (W - 0.2) / 8
8408
8449
  );
8409
8450
  [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);
8451
+ c.roundBox(0.06, 0.32, 0.06, 0.01, MT.trim, rear + 0.118, ry - 0.2, s * 0.43);
8411
8452
  });
8412
8453
  m.rearBumper = bar;
8413
8454
  c.part("bumper", trl("labels.rear_bumper"), bar, new V3(rear, 0.52, 0), 1);
@@ -8943,7 +8984,8 @@ var GameVehiclesFleet = (() => {
8943
8984
  kit.busRows(c, { x0: dx0 - 0.15, x1: -4.15, pitch: 0.64, floor: fl, zIn: zi, aisle: 0.46, col: "#355a7a", ceil: 2.95, seatH: 0.4 });
8944
8985
  kit.dashboard(c, { x: f - 0.05, y: 1.42, w: zi * 2, d: 0.42, h: 0.4, drv: -0.7, mat: CM("#202124"), top: CM("#2a2b2e") });
8945
8986
  kit.steeringWheel(c, f - 0.6, 1.48, -0.7, { r: 0.25, tilt: 1.1, col: 0.45 });
8946
- kit.seat(c, f - 1.05, fl, -0.7, { w: 0.5, mat: CM("#2c2d30", { roughness: 0.85 }), h: 0.45 });
8987
+ kit.seat(c, f - 1.05, fl, -0.7, { w: 0.5, mat: CM("#2c2d30", { roughness: 0.85 }), h: 0.45, id: "driver", role: "driver" });
8988
+ c.addDoor({ id: "door_front_right", widthMetres: 0.85, heightMetres: 1.95 });
8947
8989
  c.roundBox(0.9, 0.38, 0.5, 0.08, CM("#2a2b2d"), f - 0.6, fl + 0.19, -0.05);
8948
8990
  c.rod(new V3(dx0 - 0.05, fl, zi - 0.35), new V3(dx0 - 0.05, 2.95, zi - 0.35), 0.02, MT.chrome);
8949
8991
  c.roundBox(L - 0.5, 0.02, zi * 2, 0.01, MT.headliner, 0, 2.98, 0).castShadow = false;
@@ -9277,9 +9319,11 @@ var GameVehiclesFleet = (() => {
9277
9319
  [1, 1.5, -2.2].forEach(function(x) {
9278
9320
  c.rod(new V3(x, fl, 0), new V3(x, 2.95, 0), 0.018, pole);
9279
9321
  });
9280
- kit.dashboard(c, { x: fx2(1.3) - 0.08, y: 1.3, w: 1.2, d: 0.5, h: 0.5, drv: -0.68, mat: CM("#1d1e20"), top: CM("#2a2b2e") });
9322
+ kit.dashboard(c, { x: fx2(1.3) - 0.08, y: 1.3, w: 1.2, d: 0.34, h: 0.28, drv: -0.68, mat: CM("#1d1e20"), top: CM("#2a2b2e") });
9281
9323
  kit.steeringWheel(c, f - 0.62, 1.38, -0.68, { r: 0.25, tilt: 1.15, col: 0.4 });
9282
- kit.seat(c, f - 1.15, 0.6, -0.68, { w: 0.5, mat: CM("#2c2d30", { roughness: 0.85 }), h: 0.46 });
9324
+ kit.seat(c, f - 1.15, 0.6, -0.68, { w: 0.5, mat: CM("#2c2d30", { roughness: 0.85 }), h: 0.46, id: "driver", role: "driver" });
9325
+ c.addDoor({ id: "door_front_right", widthMetres: 1, heightMetres: 2.05 });
9326
+ c.addDoor({ id: "door_rear_right", widthMetres: 1, heightMetres: 2.05 });
9283
9327
  c.roundBox(0.4, 0.95, 0.32, 0.05, CM("#9aa0a4", { metalness: 0.5 }), 3.95, fl + 0.48, -0.55);
9284
9328
  [0, 2.09, 4.19].forEach(function(a) {
9285
9329
  c.rod(
@@ -9469,7 +9513,7 @@ var GameVehiclesFleet = (() => {
9469
9513
  });
9470
9514
  const vg = c.roundBox(0.32, 0.2, 0.03, 0.03, MT.armorGlass, 1.3, 2.45, zs);
9471
9515
  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);
9516
+ c.roundBox(0.4, 0.28, 0.02, 0.03, plate, 1.3, 2.45, zs - s * 8e-3);
9473
9517
  for (let x = rear + 0.2; x < bx0; x += 0.3) {
9474
9518
  c.sphere(0.018, MT.steel, x, 1.2, zs);
9475
9519
  c.sphere(0.018, MT.steel, x, 2.98, zs);
@@ -9578,7 +9622,7 @@ var GameVehiclesFleet = (() => {
9578
9622
  const hx0 = 0.02, hx1 = 1.84 + FX, hy = 1.48;
9579
9623
  [1, -1].forEach(function(s) {
9580
9624
  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);
9625
+ 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
9626
  c.roundBox(1, 0.03, 0.02, 0.01, CM("#e9e6dd"), 0.55, 1.36, s * 0.38);
9583
9627
  c.text("275", 0.3, 0.14, 0.32, 1.2, s * 0.384, s > 0 ? "+z" : "-z", { fg: "#f2efe6" });
9584
9628
  });
@@ -9617,7 +9661,9 @@ var GameVehiclesFleet = (() => {
9617
9661
  c.cylinder(0.05, 0.05, 0.012, MT.gauge, -0.165, 1.6, 0.1, "x");
9618
9662
  kit.steeringWheel(c, -0.38, 1.66, 0, { r: 0.2, tilt: 1, col: 0.42, mat: MT.trim });
9619
9663
  c.roundBox(1, 0.05, 0.94, 0.02, CM("#5c5f62", { metalness: 0.5 }), -0.7, 1.12, 0);
9620
- kit.seat(c, -1, 1.35, 0, { w: 0.5, h: 0.16, back: 0.44, lean: 0.12, mat: MT.seat, headrest: false });
9664
+ kit.seat(c, -1.08, 1.35, 0, { w: 0.54, h: 0.16, back: 0.44, lean: 0.12, mat: MT.seat, headrest: false, id: "driver", role: "driver" });
9665
+ c.addDoor({ id: "cab_entry_left", widthMetres: 0.85, heightMetres: 1.15 });
9666
+ c.addDoor({ id: "cab_entry_right", widthMetres: 0.85, heightMetres: 1.15 });
9621
9667
  c.roundBox(0.3, 0.2, 0.3, 0.04, dgray, -1, 1.28, 0);
9622
9668
  [
9623
9669
  [0.25, 1],
@@ -9969,7 +10015,11 @@ var GameVehiclesFleet = (() => {
9969
10015
  const fl = 0.6, fab = CM("#2f3136", { roughness: 0.9 });
9970
10016
  GH.liner(c, ST, -0.3, 1, fl, MT.carpet, { h: 0.03, maxW: 0.98 });
9971
10017
  [0.26, -0.26].forEach(function(z) {
9972
- kit.seat(c, 0.05, fl, z, { w: 0.44, h: 0.34, back: 0.6, lean: 0.12, mat: fab });
10018
+ kit.seat(c, 0.05, fl, z, { w: 0.48, h: 0.12, back: 0.6, lean: 0.12, mat: fab, role: "pilot" });
10019
+ if (z < 0) {
10020
+ c.addDoor({ id: "door_front_left", widthMetres: 0.68, heightMetres: 0.95 });
10021
+ c.addDoor({ id: "door_front_right", widthMetres: 0.68, heightMetres: 0.95 });
10022
+ }
9973
10023
  EA.pedals(c, 1.15, fl, z);
9974
10024
  });
9975
10025
  c.roundBox(0.35, 0.5, 0.24, 0.05, CM("#232427"), 0.95, fl + 0.28, 0, { rot: [0, 0, 0.35] });
@@ -10054,7 +10104,7 @@ var GameVehiclesFleet = (() => {
10054
10104
  const hs = c.add(
10055
10105
  EA.foilGeo(
10056
10106
  [
10057
- { p: [-3.9, 1.44, 0], c: 0.3, t: 0.1 },
10107
+ { p: [-3.9, 1.44, s * 2e-3], c: 0.3, t: 0.1 },
10058
10108
  { p: [-3.95, 1.44, s * 0.42], c: 0.22, t: 0.09 }
10059
10109
  ],
10060
10110
  { up: "y", n: 8 }
@@ -10293,7 +10343,7 @@ var GameVehiclesFleet = (() => {
10293
10343
  },
10294
10344
  lbl("chin_windows"),
10295
10345
  "tempered",
10296
- { pos: new V3(2.3, 0.88, 0) }
10346
+ { pos: new V3(2.3, 0.88, 0), k: 0.988 }
10297
10347
  );
10298
10348
  [1, -1].forEach(function(s) {
10299
10349
  EA.fuseGlass(
@@ -10337,7 +10387,11 @@ var GameVehiclesFleet = (() => {
10337
10387
  const fl = 0.68, fab = CM("#4b4339", { roughness: 0.9 });
10338
10388
  GH.liner(c, ST, -0.6, 1.8, fl, MT.carpet, { h: 0.03, maxW: 1.15 });
10339
10389
  [0.3, -0.3].forEach(function(z) {
10340
- kit.seat(c, 1.05, fl, z, { w: 0.48, h: 0.36, back: 0.64, lean: 0.12, mat: fab });
10390
+ kit.seat(c, 1.05, fl, z, { w: 0.48, h: 0.28, back: 0.64, lean: 0.12, mat: fab, role: "pilot" });
10391
+ if (z < 0) {
10392
+ c.addDoor({ id: "door_front_left", widthMetres: 0.75, heightMetres: 1.05 });
10393
+ c.addDoor({ id: "door_front_right", widthMetres: 0.75, heightMetres: 1.05 });
10394
+ }
10341
10395
  EA.cyclic(c, 1.4, fl, z);
10342
10396
  EA.pedals(c, 2.1, fl, z);
10343
10397
  });
@@ -10393,7 +10447,7 @@ var GameVehiclesFleet = (() => {
10393
10447
  tipCol: "#e6e4dd",
10394
10448
  phase: 0.25
10395
10449
  });
10396
- c.roundBox(0.5, 0.12, 0.16, 0.05, MT.steel, 0, 2.8, 0);
10450
+ c.roundBox(0.5, 0.12, 0.16, 0.05, MT.steel, 0, 2.797, 0);
10397
10451
  const bm = boom(
10398
10452
  c,
10399
10453
  EA,
@@ -10427,7 +10481,7 @@ var GameVehiclesFleet = (() => {
10427
10481
  const hs = c.add(
10428
10482
  EA.foilGeo(
10429
10483
  [
10430
- { p: [-4.05, 1.68, 0], c: 0.42, t: 0.12, cam: -0.04 },
10484
+ { p: [-4.05, 1.68, s * 2e-3], c: 0.42, t: 0.12, cam: -0.04 },
10431
10485
  { p: [-4.1, 1.68, s * 0.99], c: 0.38, t: 0.11, cam: -0.04 }
10432
10486
  ],
10433
10487
  { up: "y", n: 8 }
@@ -10676,7 +10730,7 @@ var GameVehiclesFleet = (() => {
10676
10730
  },
10677
10731
  lbl("chin_windows"),
10678
10732
  "tempered",
10679
- { pos: new V3(3.05, 0.95, 0) }
10733
+ { pos: new V3(3.05, 0.95, 0), k: 0.988 }
10680
10734
  );
10681
10735
  [1, -1].forEach(function(s) {
10682
10736
  EA.fuseGlass(c, ST, EA.sideKeepP(fdP, 0.6, s), s > 0 ? lbl("co_pilot_door_window") : lbl("pilot_door_window"), "tempered", {
@@ -10741,7 +10795,11 @@ var GameVehiclesFleet = (() => {
10741
10795
  const fl = 0.7, fab = CM("#2c3540", { roughness: 0.9 });
10742
10796
  GH.liner(c, ST, -2.9, 2.5, fl, MT.carpet, { h: 0.03, maxW: 1.5 });
10743
10797
  [0.42, -0.42].forEach(function(z) {
10744
- kit.seat(c, 1.55, fl, z, { w: 0.5, h: 0.4, back: 0.7, lean: 0.12, mat: fab });
10798
+ kit.seat(c, 1.55, fl, z, { w: 0.5, h: 0.4, back: 0.7, lean: 0.12, mat: fab, role: "pilot" });
10799
+ if (z < 0) {
10800
+ c.addDoor({ id: "door_front_left", widthMetres: 0.78, heightMetres: 1.15 });
10801
+ c.addDoor({ id: "door_front_right", widthMetres: 0.78, heightMetres: 1.15 });
10802
+ }
10745
10803
  EA.cyclic(c, 1.95, fl, z);
10746
10804
  EA.pedals(c, 2.75, fl, z);
10747
10805
  });
@@ -10841,7 +10899,7 @@ var GameVehiclesFleet = (() => {
10841
10899
  const hs = c.add(
10842
10900
  EA.foilGeo(
10843
10901
  [
10844
- { p: [-5.75, 2.1, 0], c: 0.62, t: 0.12, cam: -0.03 },
10902
+ { p: [-5.75, 2.1, s * 2e-3], c: 0.62, t: 0.12, cam: -0.03 },
10845
10903
  { p: [-5.85, 2.1, s * 1.05], c: 0.52, t: 0.11, cam: -0.03 }
10846
10904
  ],
10847
10905
  { up: "y", n: 8 }
@@ -11174,10 +11232,12 @@ var GameVehiclesFleet = (() => {
11174
11232
  kit.cutMesh(fus, [EA.sideCutP(tdP, 0.5)], 40, { sub: 0.12 });
11175
11233
  EA.colorize(fus.geometry, col);
11176
11234
  const fab = CM("#2e3328", { roughness: 0.85 });
11177
- kit.seat(c, 4.75, 1.55, 0, { w: 0.5, h: 0.32, back: 0.7, lean: 0.15, mat: fab });
11235
+ kit.seat(c, 4.75, 1.55, 0, { w: 0.5, h: 0.1, back: 0.7, lean: 0.15, mat: fab, role: "pilot" });
11178
11236
  c.roundBox(0.2, 0.3, 0.6, 0.04, CM("#232427"), 5.35, 1.98, 0, { rot: [0, 0, 0.3] });
11179
11237
  c.roundBox(0.2, 0.2, 0.15, 0.03, MT.plastic, 5.25, 2.15, 0);
11180
- kit.seat(c, 3.2, 2.12, 0, { w: 0.5, h: 0.32, back: 0.72, lean: 0.15, mat: fab });
11238
+ kit.seat(c, 3.2, 2.12, 0, { w: 0.5, h: 0.1, back: 0.72, lean: 0.15, mat: fab, role: "pilot" });
11239
+ c.addDoor({ id: "canopy_left", widthMetres: 0.72, heightMetres: 0.95 });
11240
+ c.addDoor({ id: "door_cargo_left", widthMetres: 0.9, heightMetres: 1.15 });
11181
11241
  EA.instPanel(c, 3.85, 2.62, 0.8, { gauges: 6, z0: -0.25, tilt: 0.3, screens: [[0.05, 0.2, 0.14, 0.18]] });
11182
11242
  EA.cyclic(c, 3.55, 2.12, 0);
11183
11243
  EA.collective(c, 3.3, 2.12, -0.38);
@@ -11254,7 +11314,7 @@ var GameVehiclesFleet = (() => {
11254
11314
  EA.colorize(
11255
11315
  EA.foilGeo(
11256
11316
  [
11257
- { p: [-8.3, 2.75, 0], c: 1, t: 0.1 },
11317
+ { p: [-8.3, 2.75, s * 2e-3], c: 1, t: 0.1 },
11258
11318
  { p: [-8.5, 2.75, s * 1.85], c: 0.7, t: 0.09 }
11259
11319
  ],
11260
11320
  { up: "y", n: 8 }
@@ -11989,6 +12049,10 @@ var GameVehiclesFleet = (() => {
11989
12049
  mirrorCol: "#22231d",
11990
12050
  wheels: []
11991
12051
  };
12052
+ s.interior = Object.assign(
12053
+ { floor: s.bottomY + 0.02, roof: s.gh.roof + 0.02, seatH: 0.14, dashD: 0.32, dashH: 0.24, visorUp: true },
12054
+ s.interior || {}
12055
+ );
11992
12056
  kit.car(c, s);
11993
12057
  [xf, xr].forEach(function(x) {
11994
12058
  ;
@@ -12253,8 +12317,8 @@ var GameVehiclesFleet = (() => {
12253
12317
  x: xd - 0.07,
12254
12318
  y: belt + 0.02,
12255
12319
  w: zi * 2,
12256
- d: 0.48,
12257
- h: Math.min(0.55, belt - fl - 0.08),
12320
+ d: 0.34,
12321
+ h: Math.min(0.28, belt - fl - 0.16),
12258
12322
  drv: -zi * 0.52,
12259
12323
  mat: trim,
12260
12324
  top: fab,
@@ -12262,8 +12326,12 @@ var GameVehiclesFleet = (() => {
12262
12326
  });
12263
12327
  kit.steeringWheel(c, xd - 0.66, belt + 0.06, -zi * 0.52, { r: 0.23, tilt: 1.12, col: 0.5, mat: trim });
12264
12328
  const sx = Math.max(f - len + 0.62, xd - 1.08);
12265
- kit.seat(c, sx, fl, -zi * 0.52, { w: 0.5, mat: fab, h: 0.44, back: 0.64, lean: 0.18 });
12266
- kit.seat(c, sx, fl, zi * 0.42, { w: zi * 0.98, n: 2, mat: fab, h: 0.44, back: 0.6, lean: 0.18 });
12329
+ kit.seat(c, sx, fl, -zi * 0.52, { w: 0.52, mat: fab, h: 0.24, back: 0.64, lean: 0.18, id: "driver", role: "driver" });
12330
+ kit.seat(c, sx, fl, zi * 0.42, { w: zi * 0.98, n: 2, mat: fab, h: 0.24, back: 0.6, lean: 0.18, role: "front_passenger" });
12331
+ const mDoorW = Math.max(0.75, f - 0.1 - (xr - 0.06));
12332
+ const mDoorH = Math.max(1.05, ry - fl - 0.1);
12333
+ c.addDoor({ id: "door_front_left", widthMetres: Math.round(mDoorW * 1e3) / 1e3, heightMetres: Math.round(mDoorH * 1e3) / 1e3 });
12334
+ c.addDoor({ id: "door_front_right", widthMetres: Math.round(mDoorW * 1e3) / 1e3, heightMetres: Math.round(mDoorH * 1e3) / 1e3 });
12267
12335
  c.rod(new V3(sx + 0.55, fl, -0.05), new V3(sx + 0.5, fl + 0.48, -0.08), 0.014, OLIVE_STEEL);
12268
12336
  c.sphere(0.035, BLACK, sx + 0.5, fl + 0.5, -0.08);
12269
12337
  c.roundBox(0.25, 0.16, 0.34, 0.02, CM("#3b402d", { roughness: 0.7 }), xd - 0.35, belt + 0.12, 0.1);
@@ -12326,7 +12394,7 @@ var GameVehiclesFleet = (() => {
12326
12394
  const floor = c.roundBox(L, 0.1, W, 0.02, wood, cx, y0, 0, { def: true });
12327
12395
  c.roundBox(L - 0.1, 0.14, 0.2, 0.02, MT.trim, cx, y0 - 0.12, 0.45);
12328
12396
  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);
12397
+ 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
12398
  const sides = [];
12331
12399
  [1, -1].forEach(function(s) {
12332
12400
  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 +12405,7 @@ var GameVehiclesFleet = (() => {
12337
12405
  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
12406
  });
12339
12407
  });
12340
- c.roundBox(0.06, sideH, W, 0.02, wood, x0 - 0.03, y0 + sideH / 2 + 0.05, 0, { def: true });
12408
+ c.roundBox(0.06, sideH, W, 0.02, wood, x0 - 0.028, y0 + sideH / 2 + 0.05, 0, { def: true });
12341
12409
  const tg = c.roundBox(0.06, sideH * 0.7, W - 0.1, 0.02, wood, x1 - 0.02, y0 - sideH * 0.3, 0);
12342
12410
  tg.rotation.z = 0.08;
12343
12411
  const top = y0 + sideH + bowH, yb = y0 + sideH + 0.05, nseg = 20, pos = [], idx = [];
@@ -12731,7 +12799,7 @@ var GameVehiclesFleet = (() => {
12731
12799
  top: roofY + 0.03,
12732
12800
  k: 0.28,
12733
12801
  holes,
12734
- archInner: W / 2 - ww - 0.1,
12802
+ archInner: W / 2 - ww - 0.098,
12735
12803
  sub: 0.18,
12736
12804
  bev: 0.025
12737
12805
  });
@@ -12805,7 +12873,9 @@ var GameVehiclesFleet = (() => {
12805
12873
  [-0.9, -2.2].forEach(function(x) {
12806
12874
  c.roundBox(0.3, 0.04, 0.1, 0.02, RED_LIGHT, x, roofY - 0.1, 0).castShadow = false;
12807
12875
  });
12808
- kit.seat(c, 0.95, fl + 0.1, -0.62, { w: 0.5, h: 0.42, back: 0.62, lean: 0.12, mat: CM("#2f3226", { roughness: 0.9 }) });
12876
+ kit.seat(c, 0.95, fl + 0.1, -0.62, { w: 0.5, h: 0.42, back: 0.62, lean: 0.12, mat: CM("#2f3226", { roughness: 0.9 }), id: "driver", role: "driver" });
12877
+ c.addDoor({ id: "hatch_driver", widthMetres: 0.58, heightMetres: 0.6 });
12878
+ c.addDoor({ id: "ramp_rear", widthMetres: 1.4, heightMetres: 1.35 });
12809
12879
  kit.steeringWheel(c, 1.5, 1.42, -0.62, { r: 0.2, tilt: 0.9, col: 0.35 });
12810
12880
  c.roundBox(0.35, 0.3, 0.7, 0.04, CM("#25261f"), 1.85, 1.45, -0.6);
12811
12881
  kit.seat(c, 0.15, fl, 0, { w: 0.5, h: 0.45, back: 0.62, lean: 0.12, mat: CM("#2f3226", { roughness: 0.9 }) });
@@ -13064,8 +13134,7 @@ var GameVehiclesFleet = (() => {
13064
13134
  [1.3, roofY, 0.1],
13065
13135
  [F - 0.04, 1.02, 0.06],
13066
13136
  [F, 0.9, 0.05],
13067
- [2.05, 0.46, 0.06],
13068
- [-1.4, 0.44, 0.04]
13137
+ [2.05, 0.46, 0.06]
13069
13138
  ];
13070
13139
  const arches = axles.map(function(x) {
13071
13140
  return [x, wr, wr + 0.09];
@@ -13143,8 +13212,8 @@ var GameVehiclesFleet = (() => {
13143
13212
  [1, -1].forEach(function(s) {
13144
13213
  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
13214
  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 });
13215
+ c.roundBox(1, 0.05, 0.32, 0.02, paintMat(c, col), axles[0], 1.12, s * (W / 2 - 0.158), { def: true });
13216
+ 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
13217
  c.roundBox(1.2, 0.26, 0.28, 0.03, paintMat(c, OLIVE2), -1.45, 1.28, s * (W / 2 - 0.17));
13149
13218
  [-0.95, -1.95].forEach(function(x) {
13150
13219
  c.roundBox(0.3, 0.2, 0.02, 0.01, MT.dark, x, 1.28, s * (W / 2 - 0.025));
@@ -13175,7 +13244,9 @@ var GameVehiclesFleet = (() => {
13175
13244
  });
13176
13245
  const fl = 0.72, fab = CM("#2f3226", { roughness: 0.9 });
13177
13246
  c.roundBox(3, 0.04, 1.6, 0.01, MT.carpet, 0.2, fl, 0);
13178
- kit.seat(c, 1, fl + 0.3, -0.55, { w: 0.46, h: 0.4, back: 0.5, lean: 0.25, mat: fab });
13247
+ kit.seat(c, 1, fl, -0.55, { w: 0.46, h: 0.14, back: 0.5, lean: 0.25, mat: fab, id: "driver", role: "driver" });
13248
+ c.addDoor({ id: "hatch_driver", widthMetres: 0.54, heightMetres: 0.58 });
13249
+ c.addDoor({ id: "hatch_commander", widthMetres: 0.6, heightMetres: 0.6 });
13179
13250
  kit.steeringWheel(c, 1.5, 1.38, -0.55, { r: 0.18, tilt: 0.9, col: 0.3 });
13180
13251
  c.roundBox(0.3, 0.26, 0.6, 0.04, CM("#25261f"), 1.75, 1.35, -0.5);
13181
13252
  const nT = c.vehicle.children.length;
@@ -13223,8 +13294,8 @@ var GameVehiclesFleet = (() => {
13223
13294
  for (let k = 0; k < 4; k++)
13224
13295
  c.rod(new V3(tx - 1.55, ty + 0.14, -0.6 + k * 0.4), new V3(tx - 1.55, ty + 0.4, -0.6 + k * 0.4), 0.015, OLIVE_STEEL);
13225
13296
  c.rod(new V3(tx - 1.55, ty + 0.4, -0.65), new V3(tx - 1.55, ty + 0.4, 0.65), 0.015, OLIVE_STEEL);
13226
- kit.seat(c, tx - 0.4, fl + 0.45, 0.42, { w: 0.42, h: 0.38, back: 0.45, lean: 0.1, mat: fab });
13227
- kit.seat(c, tx - 0.4, fl + 0.45, -0.42, { w: 0.42, h: 0.38, back: 0.45, lean: 0.1, mat: fab });
13297
+ kit.seat(c, tx - 0.4, fl + 0.12, 0.42, { w: 0.46, h: 0.16, back: 0.45, lean: 0.1, mat: fab, role: "crew" });
13298
+ kit.seat(c, tx - 0.4, fl + 0.12, -0.42, { w: 0.46, h: 0.16, back: 0.45, lean: 0.1, mat: fab, role: "crew" });
13228
13299
  c.roundBox(0.8, 0.3, 0.3, 0.05, BARREL, tx + 0.1, ty + 0.1, 0);
13229
13300
  c.roundBox(1.6, 0.02, 1.2, 0.01, MT.headliner, tx - 0.2, ty + 0.66, 0).castShadow = false;
13230
13301
  rigid(c, c.vehicle.children.slice(nT));
@@ -13301,7 +13372,7 @@ var GameVehiclesFleet = (() => {
13301
13372
  m.kind = "car";
13302
13373
  m.bullet = true;
13303
13374
  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] });
13375
+ 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
13376
  const items = [
13306
13377
  [R, 1.05, 0.04],
13307
13378
  [R - 0.02, deckY - 0.04, 0.05],
@@ -13344,7 +13415,7 @@ var GameVehiclesFleet = (() => {
13344
13415
  (ex0 + ex1) / 2
13345
13416
  );
13346
13417
  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);
13418
+ c.roundBox(ex1 - ex0 - 0.1, 0.012, 2.1, 0.01, BAY_LIGHT, bcen.x, 0.957, 0);
13348
13419
  [1, -1].forEach(function(sd) {
13349
13420
  c.roundBox(ex1 - ex0 - 0.1, 0.55, 0.02, 0.01, BAY_LIGHT, bcen.x, 1.25, sd * 1.08);
13350
13421
  });
@@ -13370,12 +13441,12 @@ var GameVehiclesFleet = (() => {
13370
13441
  c.roundBox(0.55, 0.42, 0.03, 0.01, MT.rubber, 2.95, 0.86, s * (W / 2 + 0.05));
13371
13442
  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
13443
  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);
13444
+ c.roundBox(0.03, 0.5, 0.55, 0.01, MT.rubber, R + 0.015, 0.85, s * tz);
13374
13445
  star(c, 0.6, 1.3, s * (H.half(1.3) + 0.01), 0.17, s > 0 ? "+z" : "-z", { ring: true });
13375
13446
  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
13447
  guardedHeadlight(c, 2.95, gl(2.95) + 0.16, s * 1.3, s, { style: "round" });
13377
13448
  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);
13449
+ c.roundBox(0.1, 0.18, 0.3, 0.03, OLIVE_STEEL, R - 0.037, 1.35, s * 1.25);
13379
13450
  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
13451
  c.tube(
13381
13452
  [
@@ -13417,7 +13488,18 @@ var GameVehiclesFleet = (() => {
13417
13488
  { rot: [0, 0, -0.18] }
13418
13489
  );
13419
13490
  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 }) });
13491
+ kit.seat(c, 1.65, 0.3, -0.76, {
13492
+ w: 0.46,
13493
+ h: 0.14,
13494
+ back: 0.5,
13495
+ lean: 0.5,
13496
+ mat: CM("#2f3226", { roughness: 0.9 }),
13497
+ id: "driver",
13498
+ role: "driver",
13499
+ headroomMetres: 0.9
13500
+ });
13501
+ c.addDoor({ id: "hatch_driver", widthMetres: 0.56, heightMetres: 0.58 });
13502
+ c.addDoor({ id: "hatch_commander", widthMetres: 0.68, heightMetres: 0.68 });
13421
13503
  [-0.95, -0.78, -0.61].forEach(function(z, i) {
13422
13504
  periscope(c, 2.3, roofY - 0.08, z, 0.14, i === 1 ? lbl("driver_periscope") : null);
13423
13505
  });
@@ -13494,9 +13576,9 @@ var GameVehiclesFleet = (() => {
13494
13576
  });
13495
13577
  c.roundBox(0.25, 0.3, 1.6, 0.06, CANVAS2, bx + 0.12, ty + 0.4, 0);
13496
13578
  c.part("cargo", trl("labels.luggage_basket"), null, new V3(bx + 0.1, ty + 0.5, 0), 1);
13497
- kit.seat(c, tx - 0.55, ty - 0.45, 0.6, { w: 0.42, h: 0.38, back: 0.45, lean: 0.1, mat: fab });
13498
- kit.seat(c, tx + 0.2, ty - 0.55, 0.62, { w: 0.4, h: 0.36, back: 0.42, lean: 0.1, mat: fab });
13499
- kit.seat(c, tx - 0.3, ty - 0.55, -0.62, { w: 0.4, h: 0.36, back: 0.42, lean: 0.1, mat: fab });
13579
+ kit.seat(c, tx - 0.55, ty - 0.45, 0.6, { w: 0.46, h: 0.16, back: 0.45, lean: 0.1, mat: fab, role: "crew" });
13580
+ kit.seat(c, tx + 0.2, ty - 0.55, 0.62, { w: 0.46, h: 0.16, back: 0.42, lean: 0.1, mat: fab, role: "crew" });
13581
+ kit.seat(c, tx - 0.3, ty - 0.55, -0.62, { w: 0.46, h: 0.16, back: 0.42, lean: 0.1, mat: fab, role: "crew" });
13500
13582
  c.roundBox(1.1, 0.35, 0.4, 0.05, BARREL, tx + 0.6, ty + 0.35, 0.05);
13501
13583
  c.roundBox(2.2, 0.02, 1.6, 0.01, MT.headliner, tx - 0.3, tTop - 0.08, 0).castShadow = false;
13502
13584
  c.cylinder(0.05, 0.05, 0.03, RED_LIGHT, tx - 0.4, tTop - 0.1, 0.2);
@@ -13539,14 +13621,14 @@ var GameVehiclesFleet = (() => {
13539
13621
  const g = new THREE.Group();
13540
13622
  g.position.set(x, y, z);
13541
13623
  c.vehicle.add(g);
13542
- const wmsh = new THREE.Mesh(new THREE.CylinderGeometry(rad, rad, w * 0.8, 24), wm);
13624
+ const wmsh = new THREE.Mesh(new THREE.CylinderGeometry(rad, rad, w * (opt.width ?? 0.8), 24), wm);
13543
13625
  wmsh.rotation.x = PI / 2;
13544
13626
  wmsh.castShadow = true;
13545
13627
  g.add(wmsh);
13546
13628
  if (opt.tires)
13547
13629
  [-1, 1].forEach(function(q) {
13548
13630
  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;
13631
+ t.position.z = q * w * (opt.tireAt ?? 0.22);
13550
13632
  g.add(t);
13551
13633
  });
13552
13634
  const hb = new THREE.Mesh(new THREE.CylinderGeometry(rad * 0.32, rad * 0.32, w * 0.86, 10), MT.steel);
@@ -13563,21 +13645,21 @@ var GameVehiclesFleet = (() => {
13563
13645
  for (let k = 0; k < 6; k++) {
13564
13646
  const b = new THREE.Mesh(G.roundedBox(rad * 1.5, 0.05, 0.04, 0.01), wm);
13565
13647
  b.rotation.z = k / 6 * PI;
13566
- b.position.z = (z > 0 ? 1 : -1) * w * 0.42;
13648
+ b.position.z = (z > 0 ? 1 : -1) * (w * 0.42 + k * 3e-3);
13567
13649
  g.add(b);
13568
13650
  }
13569
13651
  c.spin.push({ o: g, axis: "z", v: 0, track: true });
13570
13652
  return g;
13571
13653
  }
13572
13654
  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 });
13655
+ wheel(x0, yS, rS, { teeth: true, width: 0.76 });
13656
+ wheel(x1, yI, rI, { spokes: true, tires: true, width: 0.76, tireAt: 0.2 });
13575
13657
  const topY = function(x) {
13576
13658
  return yS + rS + th / 2 + (yI + rI - yS - rS) * (x - x0) / (x1 - x0);
13577
13659
  };
13578
13660
  for (let q = 0; q < 4; q++) {
13579
13661
  const xr = x0 + (x1 - x0) * (0.2 + q * 0.2);
13580
- wheel(xr, topY(xr) - rr - th / 2 - 0.01, rr, {});
13662
+ wheel(xr, topY(xr) - rr - th / 2 - 0.01, rr, { width: 0.7 });
13581
13663
  }
13582
13664
  const path = [], segs = 12;
13583
13665
  function arc(cx, cy, rad, a0, a1) {
@@ -13601,7 +13683,7 @@ var GameVehiclesFleet = (() => {
13601
13683
  const curve = new THREE.SplineCurve(pts.concat([pts[0]])), lenT = curve.getLength(), nl = Math.round(lenT / 0.15), links = [];
13602
13684
  for (let l = 0; l < nl; l++) {
13603
13685
  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);
13686
+ const lg = G.roundedBox(0.13, th, w - l % 2 * 4e-3, 0.015);
13605
13687
  lg.applyMatrix4(new THREE.Matrix4().makeRotationZ(ang).setPosition(p.x, p.y, 0));
13606
13688
  links.push(lg);
13607
13689
  const gh2 = G.roundedBox(0.05, 0.05, 0.05, 0.01);
@@ -13737,10 +13819,12 @@ var GameVehiclesFleet = (() => {
13737
13819
  const fl = 0.86, fab = CM("#2f3226", { roughness: 0.9 });
13738
13820
  c.roundBox(5.6, 0.04, 2.05, 0.01, MT.carpet, -0.4, fl, 0).castShadow = false;
13739
13821
  [0.5, -0.5].forEach(function(z) {
13740
- kit.seat(c, 1.55, fl, z, { w: 0.5, h: 0.42, back: 0.72, lean: 0.12, mat: fab });
13741
- c.rod(new V3(2, fl, z), new V3(1.95, fl + 0.55, z), 0.016, BLACK);
13742
- c.sphere(0.035, BLACK, 1.95, fl + 0.57, z);
13822
+ kit.seat(c, 1.55, fl, z, { w: 0.5, h: 0.42, back: 0.72, lean: 0.12, mat: fab, role: "pilot" });
13823
+ c.rod(new V3(2, fl, z), new V3(1.95, fl + 0.55, z), 0.016, BLACK).userData.noCabinRay = true;
13824
+ c.sphere(0.035, BLACK, 1.95, fl + 0.57, z).userData.noCabinRay = true;
13743
13825
  });
13826
+ c.addDoor({ id: "door_front_left", widthMetres: 0.75, heightMetres: 1.15 });
13827
+ c.addDoor({ id: "door_front_right", widthMetres: 0.75, heightMetres: 1.15 });
13744
13828
  c.roundBox(0.25, 0.45, 1.9, 0.05, CM("#232427"), 2.45, fl + 0.55, 0);
13745
13829
  c.roundBox(0.4, 0.05, 1.95, 0.02, CM("#1a1b1d"), 2.4, fl + 0.8, 0, { rot: [0, 0, 0.25] });
13746
13830
  [-0.75, -0.45, -0.15, 0.15, 0.45, 0.75].forEach(function(z) {
@@ -14877,9 +14961,13 @@ var GameVehiclesFleet = (() => {
14877
14961
  ft: gh.ft,
14878
14962
  rb: gh.rb,
14879
14963
  rt: gh.rt,
14880
- roof: Math.min(gh.roof, roofR),
14964
+ roof: gh.roof + 0.02,
14881
14965
  belt: gh.belt,
14882
- floor: s.bottomY + 0.1,
14966
+ floor: s.bottomY + 0.02,
14967
+ seatH: 0.12,
14968
+ dashD: 0.32,
14969
+ dashH: 0.24,
14970
+ visorUp: true,
14883
14971
  zIn: gh.Wg / 2 - 0.09,
14884
14972
  zRoof: halfAt(gh.Wg, T, gh.roof) - 0.12,
14885
14973
  xRear: gh.rb + 0.06
@@ -17307,9 +17395,9 @@ var GameVehiclesFleet = (() => {
17307
17395
  ],
17308
17396
  col
17309
17397
  );
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") });
17398
+ 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
17399
  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] });
17400
+ c.roundBox(0.02, 0.05, 0.15, 0.01, MT.gauge, 0.39, 1.064, 0, { rot: [0, 0, 0.4] });
17313
17401
  handlebar(c, 0.36, 1.03, 0.37, { rise: 0.04, back: 0.06, mat: MT.chrome, stalk: 0.19 });
17314
17402
  [1, -1].forEach(function(s) {
17315
17403
  blinker(c, 0.48, 0.9, s * 0.17, true);
@@ -17511,7 +17599,7 @@ var GameVehiclesFleet = (() => {
17511
17599
  body(
17512
17600
  c,
17513
17601
  [
17514
- [0.44, 1.13, 0.85, 0.24, 2.6],
17602
+ [0.435, 1.13, 0.85, 0.24, 2.6],
17515
17603
  [0.55, 1.11, 0.87, 0.24, 2.6],
17516
17604
  [0.6, 1.05, 0.91, 0.16, 2.4]
17517
17605
  ],
@@ -17678,7 +17766,7 @@ var GameVehiclesFleet = (() => {
17678
17766
  body(
17679
17767
  c,
17680
17768
  [
17681
- [0.62, 1.32, 0.98, 0.3, 2.6],
17769
+ [0.615, 1.32, 0.98, 0.3, 2.6],
17682
17770
  [0.72, 1.28, 1, 0.3, 2.6],
17683
17771
  [0.78, 1.2, 1.02, 0.22, 2.4]
17684
17772
  ],
@@ -18352,7 +18440,7 @@ var GameVehiclesFleet = (() => {
18352
18440
  c.cylinder(0.025, 0.025, 0.2, EXH, -1.98, 0.3, z, "x");
18353
18441
  });
18354
18442
  c.part("engine", trl("labels.air_cooled_engine_rear"), null, new V3(-1.6, 0.55, 0), 1);
18355
- const fab = CM("#4b3a2e", { roughness: 0.85 }), fl = 0.36;
18443
+ const fab = CM("#4b3a2e", { roughness: 0.85 }), fl = 0.31;
18356
18444
  c.roundBox(1.7, 0.03, 0.62, 0.01, MT.carpet, -0.15, fl, 0).castShadow = false;
18357
18445
  c.roundBox(0.2, 0.24, 1.14, 0.04, col, 0.66, 0.92, 0);
18358
18446
  c.roundBox(0.16, 0.05, 1.12, 0.02, CM("#1b1c1e"), 0.6, 1.03, 0);
@@ -18363,9 +18451,18 @@ var GameVehiclesFleet = (() => {
18363
18451
  c.rod(new V3(0.12, fl, 0), new V3(0.02, fl + 0.42, 0), 0.01, MT.chrome);
18364
18452
  c.sphere(0.025, MT.plastic, 0.02, fl + 0.44, 0);
18365
18453
  [-1, 1].forEach(function(sd) {
18366
- kit.seat(c, -0.02, fl, sd * 0.27, { w: 0.44, mat: fab, back: 0.58, lean: 0.2, h: 0.28, headrest: false });
18454
+ kit.seat(c, -0.08, fl, sd * 0.27, {
18455
+ w: 0.44,
18456
+ mat: fab,
18457
+ back: 0.58,
18458
+ lean: 0.2,
18459
+ h: 0.14,
18460
+ headrest: false,
18461
+ id: sd < 0 ? "driver" : "front_right",
18462
+ role: sd < 0 ? "driver" : "front_passenger"
18463
+ });
18367
18464
  });
18368
- kit.seat(c, -0.66, fl, 0, { w: 0.94, n: 3, mat: fab, back: 0.44, lean: 0.14, h: 0.26, len: 0.42, headrest: false });
18465
+ kit.seat(c, -0.58, fl, 0, { w: 0.94, n: 3, mat: fab, back: 0.44, lean: 0.14, h: 0.11, len: 0.42, headrest: false, role: "rear" });
18369
18466
  [1, -1].forEach(function(sd) {
18370
18467
  for (let yk = 0.56; yk < 0.95; yk += 0.075) {
18371
18468
  const zf = Math.min(loftHalf(stS, -0.3, yk - 0.04), loftHalf(stS, 0.5, yk - 0.04)) - 0.045;
@@ -18611,8 +18708,8 @@ var GameVehiclesFleet = (() => {
18611
18708
  return b;
18612
18709
  }
18613
18710
  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", {
18711
+ c.roundBox(0.02, 0.15, 0.2, 8e-3, MT.trim, x + 9e-3, y, 0);
18712
+ c.text(txt || kit.config.plate.slice(0, 5), 0.2, 0.135, x - 3e-3, y, 0, "-x", {
18616
18713
  w: 300,
18617
18714
  h: 220,
18618
18715
  bg: "#f2f2ee",
@@ -18727,7 +18824,7 @@ var GameVehiclesFleet = (() => {
18727
18824
  g.add(d);
18728
18825
  for (let q = 0; q < 12; q++) {
18729
18826
  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));
18827
+ sl.position.set(Math.cos(a2) * rimR * 0.62, Math.sin(a2) * rimR * 0.62, s * (hw * 0.72 + 0.0105));
18731
18828
  sl.rotation.z = a2;
18732
18829
  g.add(sl);
18733
18830
  }
@@ -18825,7 +18922,7 @@ var GameVehiclesFleet = (() => {
18825
18922
  body(
18826
18923
  c,
18827
18924
  [
18828
- [0.34, 0.36, 0.29, 0.28, 2.6],
18925
+ [0.335, 0.36, 0.29, 0.28, 2.6],
18829
18926
  [0.46, 0.38, 0.31, 0.46, 3],
18830
18927
  [0.6, 0.41, 0.34, 0.5, 3],
18831
18928
  [0.74, 0.43, 0.37, 0.46, 2.8],
@@ -19233,7 +19330,7 @@ var GameVehiclesFleet = (() => {
19233
19330
  body(
19234
19331
  c,
19235
19332
  [
19236
- [0.42, 1.05, 0.82, 0.26, 2.6],
19333
+ [0.415, 1.05, 0.82, 0.26, 2.6],
19237
19334
  [0.52, 1.03, 0.83, 0.28, 2.6],
19238
19335
  [0.59, 0.99, 0.85, 0.22, 2.4],
19239
19336
  [0.62, 0.95, 0.87, 0.1, 2.2]
@@ -19254,7 +19351,7 @@ var GameVehiclesFleet = (() => {
19254
19351
  });
19255
19352
  c.roundBox(0.015, 0.1, 0.2, 0.02, SMOKEG, 0.55, 1.035, 0, { rot: [0, 0, 0.55] });
19256
19353
  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] });
19354
+ c.roundBox(0.04, 0.032, 0.1, 6e-3, MT.gauge, 0.45, 1.078, 0, { rot: [0, 0, 0.5] });
19258
19355
  [1, -1].forEach(function(s) {
19259
19356
  blinker(c, 0.5, 0.92, s * 0.16, true);
19260
19357
  });
@@ -19671,7 +19768,7 @@ var GameVehiclesFleet = (() => {
19671
19768
  });
19672
19769
  c.cylinder(0.12, 0.12, 0.07, CH, 0.2, 0.56, 0.17, "z");
19673
19770
  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 });
19771
+ c.text("114", 0.1, 0.04, 0.2, 0.56, 0.219, "+z", { fg: "#1b1c1f", size: 0.85 });
19675
19772
  c.sphere(0.17, CH, -0.06, 0.32, -0.17, 1.35, 0.85, 0.28);
19676
19773
  c.cylinder(0.07, 0.07, 0.02, CH, -0.02, 0.3, -0.215, "z");
19677
19774
  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 +20163,12 @@ var GameVehiclesFleet = (() => {
20066
20163
  col
20067
20164
  );
20068
20165
  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] });
20166
+ c.roundBox(0.02, 0.05, 0.15, 0.01, MT.gauge, 0.39, 1.064, 0, { rot: [0, 0, 0.4] });
20070
20167
  [1, -1].forEach(function(s) {
20071
20168
  blinker(c, 0.48, 0.9, s * 0.17, true);
20072
20169
  });
20073
20170
  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") });
20171
+ 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
20172
  n0 = c.vehicle.children.length;
20076
20173
  handlebar(c, 0.36, 1.02, 0.36, { rise: 0.03, back: 0.06, mat: MT.chrome, stalk: 0.19 });
20077
20174
  Z.handlebar = grab(c, n0);
@@ -20197,9 +20294,19 @@ var GameVehiclesFleet = (() => {
20197
20294
  return [s[0], cy - hh, cy + hh, s[3] * k, s[4], s[5]];
20198
20295
  });
20199
20296
  }
20297
+ function stretchSt(st) {
20298
+ const out = st.map(function(q) {
20299
+ return q.slice();
20300
+ });
20301
+ const last = out.length - 1;
20302
+ const dir = out[last][0] >= out[0][0] ? 1 : -1;
20303
+ out[0][0] = out[0][0] + dir * 3e-3;
20304
+ out[last][0] = out[last][0] - dir * 3e-3;
20305
+ return out;
20306
+ }
20200
20307
  function fSkin(c, EA, st, keep, mat, o) {
20201
20308
  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);
20309
+ 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
20310
  m.castShadow = false;
20204
20311
  cutSub(m, [keep], o.sub || 0.06, o.pre);
20205
20312
  c.deform.push(m);
@@ -20207,7 +20314,7 @@ var GameVehiclesFleet = (() => {
20207
20314
  }
20208
20315
  function fGlass(c, EA, st, keep, label, type, o) {
20209
20316
  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);
20317
+ 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
20318
  (o.parent || c.vehicle).add(m);
20212
20319
  cutSub(m, [keep], o.sub || 0.07, o.pre);
20213
20320
  return kit.asGlass(c, m, label, type || "tempered", o.pos ? { pos: o.pos } : {});
@@ -20369,7 +20476,7 @@ var GameVehiclesFleet = (() => {
20369
20476
  return Math.min(boltW(x) - Math.abs(y - bolt(x)), x + 3.2, 2.93 - x, Math.abs(z) - 0.12);
20370
20477
  }),
20371
20478
  black,
20372
- { parent: grp, sub: 0.05, pre: EA.keepT([-3.3, 3, -0.35, 0.2, 0.1]) }
20479
+ { parent: grp, sub: 0.05, k: 1.013, pre: EA.keepT([-3.3, 3, -0.35, 0.2, 0.1]) }
20373
20480
  );
20374
20481
  const doorR = EA.polySdf([
20375
20482
  [1.38, -0.4],
@@ -20416,11 +20523,12 @@ var GameVehiclesFleet = (() => {
20416
20523
  c.roundBox(0.012, 0.012, 0.06, 4e-3, MT.steel, 2.06, 0.62, 0, PG);
20417
20524
  const fl = -0.4, fab = CM("#3c3a35", { roughness: 0.9 });
20418
20525
  c.roundBox(2, 0.025, 0.6, 0.01, MT.carpet, 0.55, fl, 0, PG).castShadow = false;
20419
- kit.seat(c, 0.62, fl, 0, { w: 0.48, h: 0.3, back: 0.55, lean: 0.2, mat: fab, parent: grp, headrest: false });
20420
- kit.seat(c, -0.22, fl + 0.04, 0, { w: 0.5, h: 0.3, back: 0.58, lean: 0.2, mat: fab, parent: grp, headrest: false });
20526
+ kit.seat(c, 0.62, fl, 0, { w: 0.48, h: 0.16, back: 0.55, lean: 0.2, mat: fab, parent: grp, headrest: false, role: "pilot" });
20527
+ kit.seat(c, -0.22, fl + 0.04, 0, { w: 0.5, h: 0.16, back: 0.58, lean: 0.2, mat: fab, parent: grp, headrest: false, role: "crew" });
20528
+ c.addDoor({ id: "canopy_door", widthMetres: 0.7, heightMetres: 0.85 });
20421
20529
  [1.12, 0.3].forEach(function(x) {
20422
- c.rod(new V3(x, fl, 0), new V3(x - 0.05, fl + 0.5, 0), 0.012, MT.plastic, PG);
20423
- c.sphere(0.025, MT.plastic, x - 0.055, fl + 0.52, 0, 1, 1.4, 1, PG);
20530
+ c.rod(new V3(x, fl, 0), new V3(x - 0.05, fl + 0.5, 0), 0.012, MT.plastic, PG).userData.noCabinRay = true;
20531
+ c.sphere(0.025, MT.plastic, x - 0.055, fl + 0.52, 0, 1, 1.4, 1, PG).userData.noCabinRay = true;
20424
20532
  });
20425
20533
  c.roundBox(0.05, 0.22, 0.6, 0.02, CM("#2a2b2d", { roughness: 0.8 }), 1.75, 0.3, 0, PG);
20426
20534
  [-0.2, -0.08, 0.04, 0.16, -0.14].forEach(function(z, i) {
@@ -20434,7 +20542,7 @@ var GameVehiclesFleet = (() => {
20434
20542
  };
20435
20543
  const g = EA.foilGeo(
20436
20544
  [
20437
- { p: [1.46, dh(0), 0], c: 1.6, t: 0.12, cam: 0.025, noCap: true },
20545
+ { p: [1.46, dh(0), s * 2e-3], c: 1.6, t: 0.12, cam: 0.025, noCap: true },
20438
20546
  { p: [1.46, dh(2.6), s * 2.6], c: 1.6, t: 0.12, cam: 0.025 },
20439
20547
  { p: [1.46, dh(4.9), s * 4.9], c: 1.6, t: 0.12, cam: 0.025 },
20440
20548
  { p: [1.43, dh(5.18), s * 5.18], c: 1.5, t: 0.11, cam: 0.02 },
@@ -20491,7 +20599,7 @@ var GameVehiclesFleet = (() => {
20491
20599
  const hs = c.add(
20492
20600
  EA.foilGeo(
20493
20601
  [
20494
- { p: [-2.78, 0.1, 0], c: 0.78, t: 0.07 },
20602
+ { p: [-2.78, 0.1, s * 2e-3], c: 0.78, t: 0.07 },
20495
20603
  { p: [-2.85, 0.1, s * 1.1], c: 0.74, t: 0.07 },
20496
20604
  { p: [-2.95, 0.1, s * 1.36], c: 0.6, t: 0.06 },
20497
20605
  { p: [-3.1, 0.1, s * 1.46], c: 0.32, t: 0.05 }
@@ -20742,7 +20850,7 @@ var GameVehiclesFleet = (() => {
20742
20850
  EA.sideKeepP(ckP, 0.5, s),
20743
20851
  s > 0 ? lbl("right_flight_deck_window") : lbl("left_flight_deck_window"),
20744
20852
  "tempered",
20745
- { pos: new V3(5.4, 2.25, s * 0.8) }
20853
+ { pos: new V3(5.4, 2.25, s * 0.8), k: 1.0085 }
20746
20854
  );
20747
20855
  fGlass(
20748
20856
  c,
@@ -20774,7 +20882,8 @@ var GameVehiclesFleet = (() => {
20774
20882
  const fl = 0.98, fab = CM("#3d4552", { roughness: 0.9 });
20775
20883
  liner(c, ST, -4.6, 5.9, fl, MT.carpet, { h: 0.03 });
20776
20884
  [0.38, -0.38].forEach(function(z) {
20777
- kit.seat(c, 4.95, fl, z, { w: 0.5, h: 0.38, back: 0.7, lean: 0.14, mat: CM("#2a2c30", { roughness: 0.8 }) });
20885
+ kit.seat(c, 4.95, fl, z, { w: 0.5, h: 0.38, back: 0.7, lean: 0.14, mat: CM("#2a2c30", { roughness: 0.8 }), role: "pilot" });
20886
+ if (z < 0) c.addDoor({ id: "cabin_door_left", widthMetres: 0.78, heightMetres: 1.55 });
20778
20887
  kit.yoke(c, 5.5, 1.75, z);
20779
20888
  EA.pedals(c, 5.95, fl, z);
20780
20889
  });
@@ -20796,7 +20905,7 @@ var GameVehiclesFleet = (() => {
20796
20905
  const w = c.add(
20797
20906
  EA.foilGeo(
20798
20907
  [
20799
- { p: [1.52, dh(0), 0], c: 2.38, t: 0.15, cam: 0.02 },
20908
+ { p: [1.52, dh(0), s * 2e-3], c: 2.38, t: 0.15, cam: 0.02 },
20800
20909
  { p: [1.52, dh(0.86), s * 0.86], c: 2.38, t: 0.15, cam: 0.02 },
20801
20910
  { p: [1.42, dh(2.47), s * 2.47], c: 2.25, t: 0.145, cam: 0.02 },
20802
20911
  { p: [0.98, dh(7.42), s * 7.42], c: 1.4, t: 0.12, cam: 0.02 },
@@ -20931,7 +21040,7 @@ var GameVehiclesFleet = (() => {
20931
21040
  const hs = c.add(
20932
21041
  EA.foilGeo(
20933
21042
  [
20934
- { p: [-5.95, 2.3, 0], c: 1.55, t: 0.1 },
21043
+ { p: [-5.95, 2.3, s * 2e-3], c: 1.55, t: 0.1 },
20935
21044
  { p: [-6.62, 2.3 + 3.2 * 0.176, s * 3.2], c: 0.86, t: 0.09 }
20936
21045
  ],
20937
21046
  { up: "y", n: 10 }
@@ -21168,7 +21277,8 @@ var GameVehiclesFleet = (() => {
21168
21277
  const fl = 2.06, fab = CM("#4a4640", { roughness: 0.9 });
21169
21278
  liner(c, ST, -3.2, 2, fl, MT.carpet, { h: 0.03 });
21170
21279
  [0.38, -0.38].forEach(function(z) {
21171
- kit.seat(c, 0.95, fl, z, { w: 0.5, h: 0.38, back: 0.7, lean: 0.14, mat: fab });
21280
+ kit.seat(c, 0.95, fl, z, { w: 0.5, h: 0.38, back: 0.7, lean: 0.14, mat: fab, role: "pilot" });
21281
+ if (z < 0) c.addDoor({ id: "cabin_door_left", widthMetres: 0.78, heightMetres: 1.4 });
21172
21282
  kit.yoke(c, 1.5, 2.85, z);
21173
21283
  EA.pedals(c, 1.95, fl, z);
21174
21284
  });
@@ -21194,7 +21304,7 @@ var GameVehiclesFleet = (() => {
21194
21304
  const w = c.add(
21195
21305
  EA.foilGeo(
21196
21306
  [
21197
- { p: [1.56, dh(0), 0], c: 1.98, t: 0.15, cam: 0.025, noCap: true },
21307
+ { p: [1.56, dh(0), s * 2e-3], c: 1.98, t: 0.15, cam: 0.025, noCap: true },
21198
21308
  { p: [1.56, dh(3.6), s * 3.6], c: 1.98, t: 0.15, cam: 0.025 },
21199
21309
  { p: [1.38, dh(7.7), s * 7.7], c: 1.3, t: 0.12, cam: 0.02 },
21200
21310
  { p: [1.32, dh(7.94), s * 7.94], c: 1.1, t: 0.06, cam: 0.01 }
@@ -21336,7 +21446,7 @@ var GameVehiclesFleet = (() => {
21336
21446
  const hs = c.add(
21337
21447
  EA.foilGeo(
21338
21448
  [
21339
- { p: [-4.8, 3.08, 0], c: 1.55, t: 0.1 },
21449
+ { p: [-4.8, 3.08, s * 2e-3], c: 1.55, t: 0.1 },
21340
21450
  { p: [-5.15, 3.08, s * 3.1], c: 1, t: 0.09 }
21341
21451
  ],
21342
21452
  { up: "y", n: 10 }
@@ -21539,7 +21649,7 @@ var GameVehiclesFleet = (() => {
21539
21649
  EA.sideKeepP(ckP, 0.5, s),
21540
21650
  s > 0 ? lbl("right_flight_deck_side_window") : lbl("left_flight_deck_side_window"),
21541
21651
  "tempered",
21542
- { pos: new V3(3.6, 2, s * 0.78) }
21652
+ { pos: new V3(3.6, 2, s * 0.78), k: 1.0085 }
21543
21653
  );
21544
21654
  fGlass(
21545
21655
  c,
@@ -21567,7 +21677,7 @@ var GameVehiclesFleet = (() => {
21567
21677
  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
21678
  }),
21569
21679
  MT.dark,
21570
- { k: 1.003 }
21680
+ { k: 1.0065 }
21571
21681
  );
21572
21682
  void dF;
21573
21683
  EA.fuseSkin(
@@ -21577,13 +21687,14 @@ var GameVehiclesFleet = (() => {
21577
21687
  return Math.min(0.035 - Math.abs(x - 3.88 - (y - 1.75) * 0.5), y - 1.7, 2.42 - y);
21578
21688
  }),
21579
21689
  blk,
21580
- { k: 1.004 }
21690
+ { k: 1.0065 }
21581
21691
  );
21582
21692
  c.rod(new V3(5, 1.74, 0), new V3(4.05, 2.4, 0), 0.02, blk);
21583
21693
  const fl = 0.8, fab = CM("#c9bda6", { roughness: 0.75 });
21584
21694
  liner(c, ST, -2, 4, fl, MT.carpet, { h: 0.03 });
21585
21695
  [0.36, -0.36].forEach(function(z) {
21586
- kit.seat(c, 3.55, fl, z, { w: 0.48, h: 0.36, back: 0.66, lean: 0.14, mat: CM("#2a2c30") });
21696
+ kit.seat(c, 3.55, fl, z, { w: 0.48, h: 0.36, back: 0.66, lean: 0.14, mat: CM("#2a2c30"), role: "pilot" });
21697
+ if (z < 0) c.addDoor({ id: "cabin_door_left", widthMetres: 0.72, heightMetres: 1.35 });
21587
21698
  kit.yoke(c, 4.05, 1.55, z);
21588
21699
  });
21589
21700
  EA.instPanel(c, 4.3, 1.68, 1.35, {
@@ -21616,7 +21727,7 @@ var GameVehiclesFleet = (() => {
21616
21727
  const w = c.add(
21617
21728
  EA.foilGeo(
21618
21729
  [
21619
- { p: [1, dh(0), 0], c: 2.45, t: 0.14, cam: 0.02 },
21730
+ { p: [1, dh(0), s * 2e-3], c: 2.45, t: 0.14, cam: 0.02 },
21620
21731
  { p: [0.95, dh(0.85), s * 0.85], c: 2.42, t: 0.14, cam: 0.02 },
21621
21732
  { p: [0.55, dh(2.4), s * 2.4], c: 1.9, t: 0.13, cam: 0.02 },
21622
21733
  { p: [-0.32, dh(5.75), s * 5.75], c: 1.08, t: 0.11, cam: 0.02 },
@@ -21698,7 +21809,7 @@ var GameVehiclesFleet = (() => {
21698
21809
  const finB = c.add(
21699
21810
  EA.foilGeo(
21700
21811
  [
21701
- { p: [-3.89, 2.25, 0], c: 2.22, t: 0.115 },
21812
+ { p: [-3.89, 2.253, 0], c: 2.22, t: 0.115 },
21702
21813
  { p: [-5.34, 4.185, 0], c: 1.17, t: 0.105 }
21703
21814
  ],
21704
21815
  { up: "z", n: 10 }
@@ -21721,7 +21832,7 @@ var GameVehiclesFleet = (() => {
21721
21832
  const hs = c.add(
21722
21833
  EA.foilGeo(
21723
21834
  [
21724
- { p: [-5.3, 4.2, 0], c: 1.18, t: 0.1 },
21835
+ { p: [-5.3, 4.2, s * 2e-3], c: 1.18, t: 0.1 },
21725
21836
  { p: [-5.9, 4.24, s * 2.55], c: 0.62, t: 0.09 }
21726
21837
  ],
21727
21838
  { up: "y", n: 10 }
@@ -21951,11 +22062,12 @@ var GameVehiclesFleet = (() => {
21951
22062
  [1.55, 1.24],
21952
22063
  [0.2, 1.46]
21953
22064
  ].forEach(function(q, i) {
21954
- kit.seat(c, q[0], q[1], 0, { w: 0.5, h: 0.32, back: 0.85, lean: 0.24, mat: fab, headrest: false });
22065
+ kit.seat(c, q[0], q[1], 0, { w: 0.5, h: 0.32, back: 0.85, lean: 0.24, mat: fab, headrest: false, role: i === 0 ? "pilot" : "crew" });
21955
22066
  c.roundBox(0.14, 0.3, 0.44, 0.04, CM("#202224"), q[0] - 0.42, q[1] + 1.05, 0, { rot: [0, 0, 0.24] });
21956
22067
  c.rod(new V3(q[0] - 0.38, q[1] + 1.25, -0.06), new V3(q[0] - 0.3, q[1] + 1.4, 0.06), 0.012, MT.yellow);
21957
- c.rod(new V3(q[0] + 0.35, q[1], 0), new V3(q[0] + 0.32, q[1] + 0.45, 0), 0.016, blk);
21958
- c.sphere(0.03, blk, q[0] + 0.31, q[1] + 0.48, 0, 1, 1.5, 1);
22068
+ c.rod(new V3(q[0] + 0.35, q[1], 0), new V3(q[0] + 0.32, q[1] + 0.45, 0), 0.016, blk).userData.noCabinRay = true;
22069
+ c.sphere(0.03, blk, q[0] + 0.31, q[1] + 0.48, 0, 1, 1.5, 1).userData.noCabinRay = true;
22070
+ if (i === 0) c.addDoor({ id: "canopy_door", widthMetres: 0.68, heightMetres: 0.85 });
21959
22071
  const px = q[0] + 0.75;
21960
22072
  c.roundBox(0.16, 0.3, 0.6, 0.04, CM("#232427"), px, q[1] + 0.65, 0, { rot: [0, 0, 0.2] });
21961
22073
  [-0.15, 0.15].forEach(function(z) {
@@ -21983,7 +22095,7 @@ var GameVehiclesFleet = (() => {
21983
22095
  [1, -1].forEach(function(s) {
21984
22096
  const g = EA.foilGeo(
21985
22097
  [
21986
- { p: [1.52, dh(0), 0], c: 2.35, t: 0.15, cam: 0.02 },
22098
+ { p: [1.52, dh(0), s * 2e-3], c: 2.35, t: 0.15, cam: 0.02 },
21987
22099
  { p: [1.5, dh(0.48), s * 0.48], c: 2.32, t: 0.15, cam: 0.02 },
21988
22100
  { p: [0.78, dh(5.4), s * 5.4], c: 1.2, t: 0.12, cam: 0.02 },
21989
22101
  { p: [0.74, dh(5.57), s * 5.57], c: 1.1, t: 0.07, cam: 0.01 }
@@ -22088,7 +22200,7 @@ var GameVehiclesFleet = (() => {
22088
22200
  [1, -1].forEach(function(s) {
22089
22201
  const g = EA.foilGeo(
22090
22202
  [
22091
- { p: [-4.3, 1.72, 0], c: 1.3, t: 0.1 },
22203
+ { p: [-4.3, 1.72, s * 2e-3], c: 1.3, t: 0.1 },
22092
22204
  { p: [-4.72, 1.76, s * 2.2], c: 0.75, t: 0.09 }
22093
22205
  ],
22094
22206
  { up: "y", n: 10 }
@@ -22351,7 +22463,7 @@ var GameVehiclesFleet = (() => {
22351
22463
  const fl = c.roundBox(L, 0.035, 2 * hw, 0.01, LINER, cx, o.floor, 0);
22352
22464
  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
22465
  [1, -1].forEach(function(s) {
22354
- c.roundBox(L, h, 0.025, 0.01, LINER, cx, o.floor + h / 2, s * (hw + 0.012));
22466
+ c.roundBox(L - 8e-3, h, 0.025, 0.01, LINER, cx, o.floor + h / 2, s * (hw + 0.012));
22355
22467
  });
22356
22468
  c.roundBox(0.025, h, 2 * hw, 0.01, LINER, o.x0 + 0.012, o.floor + h / 2, 0);
22357
22469
  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);
@@ -22791,10 +22903,26 @@ var GameVehiclesFleet = (() => {
22791
22903
  roofLining(c, extra);
22792
22904
  if (!c.meta.damage) c.meta.damage = crashDamage;
22793
22905
  }
22906
+ function withCabinPackaging(s) {
22907
+ if (s.interior === false) return s;
22908
+ return Object.assign({}, s, {
22909
+ interior: Object.assign(
22910
+ {
22911
+ floor: s.bottomY + 0.02,
22912
+ roof: s.gh.roof + 0.02,
22913
+ seatH: 0.12,
22914
+ dashD: 0.32,
22915
+ dashH: 0.24,
22916
+ visorUp: true
22917
+ },
22918
+ s.interior || {}
22919
+ )
22920
+ });
22921
+ }
22794
22922
  function suvBuild(c, s, o) {
22795
22923
  o = o || {};
22796
22924
  const n0 = c.deform.length;
22797
- kit.car(c, s);
22925
+ kit.car(c, withCabinPackaging(s));
22798
22926
  const low = c.deform[n0], m = c.meta;
22799
22927
  let extra = [];
22800
22928
  if (o.flares !== false) extra = extra.concat(fenderFlares(c, s.arches, s.W, s.bottomY, o.flare));
@@ -23247,10 +23375,10 @@ var GameVehiclesFleet = (() => {
23247
23375
  pre: function(c2, _m) {
23248
23376
  const gx = fX(s, 0.82) - 0.012, gy = 0.82, gh = 0.46, gw = 1.08, tz = 0.8;
23249
23377
  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 } });
23378
+ c2.roundBox(0.058, gh - 0.1, gw - 0.16, 0.02, GLOSS, gx + 2e-3, gy, 0, { taper: { sz: tz - 0.02 } });
23251
23379
  [0.13, 0.045, -0.04, -0.125].forEach(function(dy) {
23252
23380
  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);
23381
+ c2.roundBox(0.066, 0.022, (gw - 0.2) * (1 + (tz - 1) * k), 8e-3, MT.chrome, gx + 4e-3, gy + dy, 0);
23254
23382
  });
23255
23383
  c2.roundBox(0.04, 0.04, 1.32, 0.015, MT.chrome, fX(s, 1.04) - 0.03, 1.04, 0);
23256
23384
  kit.emblem(c2, fX(s, 0.9) + 0.03, 0.9, 0, 0.06);
@@ -23281,7 +23409,7 @@ var GameVehiclesFleet = (() => {
23281
23409
  );
23282
23410
  function pickupBuild(c, s, o) {
23283
23411
  const n0 = c.deform.length;
23284
- kit.car(c, s);
23412
+ kit.car(c, withCabinPackaging(s));
23285
23413
  const low = c.deform[n0], m = c.meta;
23286
23414
  let extra = [];
23287
23415
  cargoBed(c, { low, x0: m.rear + 0.06, x1: o.bedFront, floor: o.floor, top: s.gh.belt, W: s.W, arches: s.arches });
@@ -23586,9 +23714,9 @@ var GameVehiclesFleet = (() => {
23586
23714
  pre: function(c2, _m) {
23587
23715
  const gx = fX(s, 0.8) - 0.012, gy = 0.8, gw = 1.14, gh = 0.52;
23588
23716
  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 } });
23717
+ 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
23718
  [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);
23719
+ 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
23720
  });
23593
23721
  c2.roundBox(0.04, 0.05, 1.3, 0.02, MT.chrome, fX(s, 1.04) - 0.03, 1.04, 0);
23594
23722
  kit.emblem(c2, gx + 0.035, gy + 0.06, 0, 0.06);
@@ -23677,7 +23805,7 @@ var GameVehiclesFleet = (() => {
23677
23805
  wheels: []
23678
23806
  };
23679
23807
  const n0 = c.deform.length;
23680
- kit.car(c, s);
23808
+ kit.car(c, withCabinPackaging(s));
23681
23809
  const low = c.deform[n0], m = c.meta;
23682
23810
  cargoBed(c, { low, x0: m.rear + 0.06, x1: -0.42, floor: 1.78, top: 2.25, W, arches: [] });
23683
23811
  c.roundBox(0.08, 0.08, W + 0.1, 0.03, MT.chrome, m.front + 0.06, 1.72, 0);
@@ -23754,7 +23882,7 @@ var GameVehiclesFleet = (() => {
23754
23882
  wg.add(bolt);
23755
23883
  }
23756
23884
  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);
23885
+ 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
23886
  hole.rotation.x = PI / 2;
23759
23887
  hole.position.set(Math.cos(sa) * rr * 0.58, Math.sin(sa) * rr * 0.58, fz + zs * 2e-3);
23760
23888
  wg.add(hole);
@@ -23783,7 +23911,7 @@ var GameVehiclesFleet = (() => {
23783
23911
  c.rod(new V3(0.6, 2.8, sd * 0.78), new V3(-0.25, 2.8, sd * 0.78), 0.035, red);
23784
23912
  });
23785
23913
  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);
23914
+ c.rod(new V3(-0.25, 2.8, -0.78), new V3(-0.25, 2.8, 0.78), 0.032, red);
23787
23915
  c.rod(new V3(-0.25, 2.3, -0.8), new V3(-0.25, 2.8, 0.78), 0.03, red);
23788
23916
  const roofItems = [c.roundBox(0.16, 0.05, 1.3, 0.02, MT.trim, 0.42, m.top + 0.08, 0)];
23789
23917
  [-0.48, -0.16, 0.16, 0.48].forEach(function(z) {
@@ -23997,7 +24125,10 @@ var GameVehiclesFleet = (() => {
23997
24125
  xRear: P.cabBack - 0.12,
23998
24126
  xFront: P.cabBack + 0.42,
23999
24127
  seatH: 0.42,
24000
- front: "bench"
24128
+ front: "bench",
24129
+ dashD: 0.32,
24130
+ dashH: 0.24,
24131
+ visorUp: true
24001
24132
  });
24002
24133
  c.roundBox(
24003
24134
  0.04,
@@ -24364,8 +24495,8 @@ var GameVehiclesFleet = (() => {
24364
24495
  );
24365
24496
  const zz = sd * (kit.halfAt(W, m.tumble, 1.75) + 0.012), zt = sd * (kit.halfAt(W, m.tumble, 2.22) + 0.012);
24366
24497
  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] });
24498
+ [0, PI / 3, -PI / 3].forEach(function(a, i) {
24499
+ 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
24500
  });
24370
24501
  });
24371
24502
  if (c2.hood) {
@@ -24717,9 +24848,31 @@ var GameVehiclesFleet = (() => {
24717
24848
  if (o.col) colorize(g, o.col);
24718
24849
  return g;
24719
24850
  }
24851
+ function stretchEnds(st, by) {
24852
+ const out = st.map(function(q) {
24853
+ return q.slice();
24854
+ });
24855
+ const last = out.length - 1;
24856
+ const dir = out[last][0] >= out[0][0] ? 1 : -1;
24857
+ out[0][0] = out[0][0] - dir * by;
24858
+ out[last][0] = out[last][0] + dir * by;
24859
+ return out;
24860
+ }
24861
+ const paneCount = /* @__PURE__ */ new WeakMap();
24862
+ function nextPaneScale(c) {
24863
+ const n = paneCount.get(c) ?? 0;
24864
+ paneCount.set(c, n + 1);
24865
+ return 0.988 - 35e-4 * (n % 4);
24866
+ }
24867
+ const skinCount = /* @__PURE__ */ new WeakMap();
24868
+ function nextSkinScale(c) {
24869
+ const n = skinCount.get(c) ?? 0;
24870
+ skinCount.set(c, n + 1);
24871
+ return 1.004 + 25e-4 * (n % 3);
24872
+ }
24720
24873
  function fuseGlass(c, st, keep, label, type, o) {
24721
24874
  o = o || {};
24722
- const k = o.k || 0.988;
24875
+ const k = o.k || nextPaneScale(c);
24723
24876
  const st2 = st.map(function(s) {
24724
24877
  const cy = (s[1] + s[2]) / 2, hh = (s[2] - s[1]) / 2 * k;
24725
24878
  return [s[0], cy - hh, cy + hh, s[3] * k, s[4], s[5]];
@@ -24732,12 +24885,12 @@ var GameVehiclesFleet = (() => {
24732
24885
  }
24733
24886
  function fuseSkin(c, st, keep, mat, o) {
24734
24887
  o = o || {};
24735
- const k = o.k || 1.004;
24888
+ const k = o.k || nextSkinScale(c);
24736
24889
  const st2 = st.map(function(s) {
24737
24890
  const cy = (s[1] + s[2]) / 2, hh = (s[2] - s[1]) / 2 * k;
24738
24891
  return [s[0], cy - hh, cy + hh, s[3] * k, s[4], s[5]];
24739
24892
  });
24740
- const m = c.add(fuseGeo(st2, { smooth: o.smooth || 48, seg: o.seg || 30 }), mat, 0, 0, 0, o.parent);
24893
+ const m = c.add(fuseGeo(stretchEnds(st2, -3e-3), { smooth: o.smooth || 48, seg: o.seg || 30 }), mat, 0, 0, 0, o.parent);
24741
24894
  m.castShadow = false;
24742
24895
  kit.cutMesh(m, [keep], 40);
24743
24896
  c.deform.push(m);
@@ -25008,13 +25161,13 @@ var GameVehiclesFleet = (() => {
25008
25161
  }
25009
25162
  ;
25010
25163
  (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]);
25164
+ const sc = c.roundBox(0.012, s[2], s[3], 8e-3, MT.screen, x - 0.091, y + s[0], s[1]);
25012
25165
  sc.castShadow = false;
25013
25166
  });
25014
25167
  }
25015
25168
  function cyclic(c, x, fl, z) {
25016
- c.rod(new V3(x, fl, z), new V3(x - 0.04, fl + 0.55, z), 0.014, MT.plastic);
25017
- c.roundBox(0.04, 0.12, 0.04, 0.015, MT.plastic, x - 0.05, fl + 0.6, z);
25169
+ c.rod(new V3(x, fl, z), new V3(x - 0.04, fl + 0.55, z), 0.014, MT.plastic).userData.noCabinRay = true;
25170
+ c.roundBox(0.04, 0.12, 0.04, 0.015, MT.plastic, x - 0.05, fl + 0.6, z).userData.noCabinRay = true;
25018
25171
  }
25019
25172
  function collective(c, x, fl, z) {
25020
25173
  c.rod(new V3(x - 0.35, fl + 0.18, z), new V3(x + 0.05, fl + 0.32, z), 0.016, MT.plastic);
@@ -25048,7 +25201,7 @@ var GameVehiclesFleet = (() => {
25048
25201
  );
25049
25202
  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
25203
  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);
25204
+ c.roundBox(0.36 * k, 0.018, 0.2 * k, 8e-3, low, -0.17 * k, -shaft - 6e-3, 0, P);
25052
25205
  c.cylinder(0.055 * k, 0.05 * k, 0.32 * k, low, -0.2 * k, -shaft - 0.09 * k, 0, "x", P);
25053
25206
  c.roundBox(0.16 * k, 0.12 * k, 0.025, 0.01, low, -0.18 * k, -shaft - 0.17 * k, 0, P);
25054
25207
  const pr = propeller(c, -0.38 * k, -shaft - 0.09 * k, 0, {
@@ -25080,7 +25233,11 @@ var GameVehiclesFleet = (() => {
25080
25233
  function skinOf(c, mesh, keep, mat, o) {
25081
25234
  o = o || {};
25082
25235
  const g = mesh.geometry.clone(), p = g.attributes.position, sz = o.sz || 1.006, dy = o.dy || 0;
25236
+ let reach = 0;
25237
+ for (let i = 0; i < p.count; i++) reach = Math.max(reach, Math.abs(p.getX(i)));
25238
+ const sx = o.ends === false ? 1 : 1 - 3e-3 / (reach || 1);
25083
25239
  for (let i = 0; i < p.count; i++) {
25240
+ p.setX(i, p.getX(i) * sx);
25084
25241
  p.setZ(i, p.getZ(i) * sz);
25085
25242
  p.setY(i, p.getY(i) + dy * Math.sign(p.getY(i)));
25086
25243
  }
@@ -25194,6 +25351,8 @@ var GameVehiclesFleet = (() => {
25194
25351
  foilGeo,
25195
25352
  fuseGeo,
25196
25353
  fuseGlass,
25354
+ nextPaneScale,
25355
+ nextSkinScale,
25197
25356
  fuseSkin,
25198
25357
  bandT,
25199
25358
  cutT,
@@ -25342,7 +25501,7 @@ var GameVehiclesFleet = (() => {
25342
25501
  const tank = c.roundBox(0.48, 0.24, 0.3, 0.06, CM("#a3241c", { roughness: 0.5 }), -2.05, 0.06, -0.38);
25343
25502
  c.rod(new V3(-2, 0.18, -0.38), new V3(-2.3, 0.4, -0.1), 0.01, CM("#1b1b1b"));
25344
25503
  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] });
25504
+ c.roundBox(0.35, 0.03, 0.14, 0.02, MT.wood, 0.45, 4e-3, 0.5, { rot: [0.3, 0, 0] });
25346
25505
  c.rod(new V3(-2.35, 0.42, 0.6), new V3(-2.35, 1.1, 0.6), 0.012, MT.chrome);
25347
25506
  EA.navLight(c, -2.35, 1.13, 0.6, "white", trl("labels.stern_light_mast"), { r: 0.035 });
25348
25507
  EA.navLight(c, 2.3, 0.53, 0.06, "green", trl("labels.starboard_bow_light_green"), { r: 0.03 });
@@ -25519,7 +25678,7 @@ var GameVehiclesFleet = (() => {
25519
25678
  c.roundBox(2.3, 0.22, 0.5, 0.07, vinyl, -2.3, 0.45, s * 0.75);
25520
25679
  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
25680
  });
25522
- c.roundBox(0.5, 0.22, 1.5, 0.07, vinyl, -3.35, 0.45, 0);
25681
+ c.roundBox(0.5, 0.22, 1.5, 0.07, vinyl, -3.35, 0.453, 0);
25523
25682
  c.roundBox(0.12, 0.42, 2.1, 0.05, vinyl, -3.52, 0.74, 0);
25524
25683
  c.seatTops.push(
25525
25684
  { x: -2.3, y: 0.57, z: 0.75, w: 0.5, l: 2.2 },
@@ -25527,8 +25686,8 @@ var GameVehiclesFleet = (() => {
25527
25686
  { x: 2, y: 0.57, z: 0, w: 1.2, l: 0.9 }
25528
25687
  );
25529
25688
  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);
25689
+ c.roundBox(0.85, 0.72, 0.78, 0.12, white, 0.75, cy + 0.362, 0.72);
25690
+ c.roundBox(0.85, 0.72, 0.72, 0.12, white, 0.75, cy + 0.362, -0.74);
25532
25691
  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
25692
  [0.55, 0.72, 0.89].forEach(function(z, i) {
25534
25693
  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 +25698,8 @@ var GameVehiclesFleet = (() => {
25539
25698
  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
25699
  c.rod(new V3(0.55, cy + 0.7, 0.98), new V3(0.42, cy + 0.88, 1), 0.015, MT.chrome);
25541
25700
  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 });
25701
+ 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, open: true, role: "front_passenger" });
25702
+ 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, open: true, id: "driver", role: "driver" });
25544
25703
  [1, -1].forEach(function(s) {
25545
25704
  const pts = [];
25546
25705
  for (let i = 0; i <= 8; i++) {
@@ -25762,7 +25921,7 @@ var GameVehiclesFleet = (() => {
25762
25921
  [1.6, -0.55],
25763
25922
  [1.95, -1]
25764
25923
  ].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]);
25924
+ 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
25925
  });
25767
25926
  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
25927
  const cutF = {
@@ -25851,11 +26010,12 @@ var GameVehiclesFleet = (() => {
25851
26010
  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
26011
  }
25853
26012
  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 });
26013
+ kit.seat(c, hx - 0.12, hy0 + 2e-3, 0, { w: 0.54, h: 0.55, back: 0.45, mat: inner, headrest: false, id: "driver", role: "driver" });
26014
+ c.addDoor({ id: "cabin_door", widthMetres: 0.68, heightMetres: 1.55 });
25855
26015
  c.roundBox(1.8, 0.12, 0.65, 0.04, CM("#7c5a3b"), hx - 0.2, hy0 + 0.5, -0.72);
25856
26016
  c.roundBox(1.7, 0.08, 0.55, 0.04, CM("#6b7c8f", { roughness: 1 }), hx - 0.2, hy0 + 0.6, -0.72);
25857
26017
  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);
26018
+ c.cylinder(0.1, 0.1, 1.2, MT.trim, hx - 0.75, hy0 + hh + 0.596, 0.65);
25859
26019
  c.cylinder(0.13, 0.1, 0.1, MT.trim, hx - 0.75, hy0 + hh + 1.22, 0.65);
25860
26020
  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
26021
  EA.navLight(c, hx + 0.4, hy0 + hh + 1.65, 0, "white", trl("labels.masthead_light"), { r: 0.05 });
@@ -25956,7 +26116,7 @@ var GameVehiclesFleet = (() => {
25956
26116
  const EA = shared.EA, white = "#ecebe6";
25957
26117
  const paintW = c.paint(white);
25958
26118
  const ST = [
25959
- [2.3, 0.98, 1.46, 0.7, 2.4],
26119
+ [2.297, 0.98, 1.46, 0.7, 2.4],
25960
26120
  [2.15, 0.88, 1.55, 0.92, 2.6],
25961
26121
  [1.85, 0.8, 1.61, 1.02, 2.8],
25962
26122
  [1.45, 0.72, 1.65, 1.08, 3],
@@ -26067,11 +26227,13 @@ var GameVehiclesFleet = (() => {
26067
26227
  const fl = 0.74, fab = CM("#4a463f", { roughness: 0.9 });
26068
26228
  c.roundBox(2.2, 0.03, 0.98, 0.01, MT.carpet, 0.2, fl, 0).castShadow = false;
26069
26229
  [0.26, -0.26].forEach(function(z) {
26070
- kit.seat(c, 0.38, fl, z, { w: 0.44, h: 0.34, back: 0.62, lean: 0.18, mat: fab });
26230
+ kit.seat(c, 0.38, fl, z, { w: 0.48, h: 0.24, back: 0.62, lean: 0.18, mat: fab, role: "pilot" });
26071
26231
  EA.pedals(c, 1.18, fl, z);
26072
26232
  kit.yoke(c, 0.98, 1.47, z);
26073
26233
  });
26074
- kit.seat(c, -0.52, fl, 0, { w: 0.96, n: 2, h: 0.34, back: 0.58, lean: 0.2, mat: fab });
26234
+ kit.seat(c, -0.52, fl, 0, { w: 0.96, n: 2, h: 0.24, back: 0.58, lean: 0.2, mat: fab });
26235
+ c.addDoor({ id: "door_front_left", widthMetres: 0.75, heightMetres: 0.95 });
26236
+ c.addDoor({ id: "door_front_right", widthMetres: 0.75, heightMetres: 0.95 });
26075
26237
  EA.instPanel(c, 1.1, 1.52, 1, { gauges: 6, z0: -0.38, screens: [[0, 0.12, 0.14, 0.22]] });
26076
26238
  c.roundBox(0.1, 0.1, 0.1, 0.02, MT.plastic, 1, 1.32, 0);
26077
26239
  c.cylinder(0.018, 0.018, 0.1, MT.chrome, 0.93, 1.34, 0.02, "x");
@@ -26085,7 +26247,7 @@ var GameVehiclesFleet = (() => {
26085
26247
  };
26086
26248
  const g = EA.foilGeo(
26087
26249
  [
26088
- { p: [0.66, dh(0), 0], c: 1.63, t: 0.12, cam: 0.02 },
26250
+ { p: [0.66, dh(0), s * 2e-3], c: 1.63, t: 0.12, cam: 0.02 },
26089
26251
  { p: [0.66, dh(2.6), s * 2.6], c: 1.63, t: 0.12, cam: 0.02 },
26090
26252
  { p: [0.62, dh(5.2), s * 5.2], c: 1.14, t: 0.11, cam: 0.02 },
26091
26253
  { p: [0.58, dh(5.5) + 0.02, s * 5.5], c: 0.98, t: 0.06, cam: 0.01 }
@@ -26124,7 +26286,7 @@ var GameVehiclesFleet = (() => {
26124
26286
  const hs = c.add(
26125
26287
  EA.foilGeo(
26126
26288
  [
26127
- { p: [-4.6, 1.42, 0], c: 1.2, t: 0.09 },
26289
+ { p: [-4.6, 1.42, s * 2e-3], c: 1.2, t: 0.09 },
26128
26290
  { p: [-4.95, 1.42, s * 1.72], c: 0.86, t: 0.08 }
26129
26291
  ],
26130
26292
  { up: "y", n: 10 }
@@ -26346,9 +26508,10 @@ var GameVehiclesFleet = (() => {
26346
26508
  );
26347
26509
  const fl = -0.36;
26348
26510
  c.roundBox(1.3, 0.03, 0.8, 0.01, MT.carpet, -0.4, fl, 0, { parent: grp }).castShadow = false;
26349
- kit.seat(c, -0.55, fl, 0, { w: 0.5, h: 0.32, back: 0.66, lean: 0.12, mat: CM("#3a3530", { roughness: 0.9 }), parent: grp });
26350
- c.rod(new V3(0, fl, 0), new V3(-0.06, fl + 0.55, 0), 0.016, MT.plastic, { parent: grp });
26351
- c.roundBox(0.04, 0.13, 0.05, 0.015, MT.plastic, -0.07, fl + 0.6, 0, { parent: grp });
26511
+ kit.seat(c, -0.55, fl, 0, { w: 0.5, h: 0.18, back: 0.66, lean: 0.12, mat: CM("#3a3530", { roughness: 0.9 }), parent: grp, role: "pilot" });
26512
+ c.addDoor({ id: "canopy_door", widthMetres: 0.7, heightMetres: 0.85 });
26513
+ c.rod(new V3(0, fl, 0), new V3(-0.06, fl + 0.55, 0), 0.016, MT.plastic, { parent: grp }).userData.noCabinRay = true;
26514
+ c.roundBox(0.04, 0.13, 0.05, 0.015, MT.plastic, -0.07, fl + 0.6, 0, { parent: grp }).userData.noCabinRay = true;
26352
26515
  c.roundBox(0.16, 0.3, 0.8, 0.04, CM("#232427"), 0.36, 0.5, 0, { parent: grp, rot: [0, 0, 0.2] });
26353
26516
  [-0.24, -0.12, 0, 0.12, 0.24].forEach(function(z, i) {
26354
26517
  c.cylinder(0.036, 0.036, 0.012, MT.gauge, 0.27, 0.55 - i % 2 * 0.09, z, "x", { seg: 16, parent: grp }).castShadow = false;
@@ -26375,7 +26538,7 @@ var GameVehiclesFleet = (() => {
26375
26538
  const w = c.add(
26376
26539
  EA.foilGeo(
26377
26540
  [
26378
- { p: [1.18, dh(0), 0], c: 1.71, t: 0.15, cam: 0.02 },
26541
+ { p: [1.18, dh(0), s * 2e-3], c: 1.71, t: 0.15, cam: 0.02 },
26379
26542
  { p: [1.18, dh(5.6), s * 5.6], c: 1.71, t: 0.14, cam: 0.02 },
26380
26543
  { p: [1.12, dh(5.84) + 0.02, s * 5.84], c: 1.55, t: 0.07, cam: 0.01 }
26381
26544
  ],
@@ -26409,7 +26572,7 @@ var GameVehiclesFleet = (() => {
26409
26572
  const hs = c.add(
26410
26573
  EA.foilGeo(
26411
26574
  [
26412
- { p: [-2.95, 0.36, 0], c: 0.95, t: 0.09 },
26575
+ { p: [-2.95, 0.36, s * 2e-3], c: 0.95, t: 0.09 },
26413
26576
  { p: [-3.05, 0.36, s * 1.8], c: 0.8, t: 0.08 }
26414
26577
  ],
26415
26578
  { up: "y", n: 10 }
@@ -26441,8 +26604,8 @@ var GameVehiclesFleet = (() => {
26441
26604
  const finB = c.add(
26442
26605
  EA.foilGeo(
26443
26606
  [
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 }
26607
+ { p: [-2.64, 0.424, 0], c: 1.27, t: 0.11 },
26608
+ { p: [-3.24, 1.853, 0], c: 0.74, t: 0.1 }
26446
26609
  ],
26447
26610
  { up: "z", n: 10 }
26448
26611
  ),
@@ -26712,10 +26875,11 @@ var GameVehiclesFleet = (() => {
26712
26875
  EA.sideKeepP(fdP, 0.35, s),
26713
26876
  s > 0 ? lbl("front_right_door_window") : lbl("front_left_door_window"),
26714
26877
  "tempered",
26715
- { pos: new V3(0.4, 1.5, s * 0.64) }
26878
+ { pos: new V3(0.4, 1.5, s * 0.64), k: 0.988 }
26716
26879
  );
26717
26880
  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)
26881
+ pos: new V3(-0.5, 1.5, s * 0.63),
26882
+ k: 0.988
26719
26883
  });
26720
26884
  const df = EA.polySdf([
26721
26885
  [0.78, 0.72],
@@ -26757,10 +26921,12 @@ var GameVehiclesFleet = (() => {
26757
26921
  const fl = 0.72, fab = CM("#3b3a38", { roughness: 0.9 });
26758
26922
  c.roundBox(1.9, 0.03, 1.16, 0.01, MT.carpet, 0.2, fl, 0).castShadow = false;
26759
26923
  [0.3, -0.3].forEach(function(z) {
26760
- kit.seat(c, 0.35, fl, z, { w: 0.48, h: 0.36, back: 0.62, lean: 0.14, mat: fab });
26924
+ kit.seat(c, 0.35, fl, z, { w: 0.48, h: 0.2, back: 0.62, lean: 0.14, mat: fab, role: "pilot" });
26761
26925
  EA.pedals(c, 1.35, fl, z);
26762
26926
  });
26763
- kit.seat(c, -0.55, fl + 0.06, 0, { w: 1.06, n: 2, h: 0.36, back: 0.6, lean: 0.12, mat: fab });
26927
+ kit.seat(c, -0.55, fl + 0.06, 0, { w: 1.06, n: 2, h: 0.2, back: 0.6, lean: 0.12, mat: fab });
26928
+ c.addDoor({ id: "door_front_left", widthMetres: 0.72, heightMetres: 1.05 });
26929
+ c.addDoor({ id: "door_front_right", widthMetres: 0.72, heightMetres: 1.05 });
26764
26930
  c.roundBox(0.42, 0.62, 0.3, 0.06, CM("#232427"), 1.15, fl + 0.32, 0, { rot: [0, 0, 0.35] });
26765
26931
  c.roundBox(0.06, 0.3, 0.3, 0.02, CM("#1a1b1d"), 1.25, fl + 0.65, 0, { rot: [0, 0, 0.6] });
26766
26932
  [-0.07, 0.07].forEach(function(z) {
@@ -26811,7 +26977,7 @@ var GameVehiclesFleet = (() => {
26811
26977
  const hs = c.add(
26812
26978
  EA.foilGeo(
26813
26979
  [
26814
- { p: [-5.25, 1.76, 0], c: 0.45, t: 0.1 },
26980
+ { p: [-5.25, 1.76, s * 2e-3], c: 0.45, t: 0.1 },
26815
26981
  { p: [-5.32, 1.76, s * 0.62], c: 0.34, t: 0.09 }
26816
26982
  ],
26817
26983
  { up: "y", n: 8 }
@@ -27091,6 +27257,8 @@ var GameVehiclesFleet = (() => {
27091
27257
  EA.collective(c, 1.3, fl, -0.72);
27092
27258
  EA.collective(c, 1.3, fl, 0.12);
27093
27259
  kit.seat(c, -0.35, fl + 0.04, 0, { w: 1.56, n: 4, h: 0.38, back: 0.62, lean: 0.1, mat: fab });
27260
+ c.addDoor({ id: "door_front_left", widthMetres: 0.78, heightMetres: 1.15 });
27261
+ c.addDoor({ id: "door_front_right", widthMetres: 0.78, heightMetres: 1.15 });
27094
27262
  EA.instPanel(c, 2.25, 1.55, 1.2, { gauges: 8, z0: -0.45, tilt: 0.3, screens: [[0.05, 0.25, 0.14, 0.2]] });
27095
27263
  c.roundBox(0.5, 0.45, 0.32, 0.06, CM("#232427"), 2.05, fl + 0.24, 0);
27096
27264
  c.roundBox(2.3, 0.02, 1.4, 0.01, MT.headliner, 0.45, 2.24, 0).castShadow = false;
@@ -27139,7 +27307,7 @@ var GameVehiclesFleet = (() => {
27139
27307
  const hs = c.add(
27140
27308
  EA.foilGeo(
27141
27309
  [
27142
- { p: [-5.3, 1.98, 0], c: 0.6, t: 0.11 },
27310
+ { p: [-5.3, 1.98, s * 2e-3], c: 0.6, t: 0.11 },
27143
27311
  { p: [-5.38, 1.98, s * 1], c: 0.52, t: 0.1 }
27144
27312
  ],
27145
27313
  { up: "y", n: 8 }
@@ -27340,7 +27508,10 @@ var GameVehiclesFleet = (() => {
27340
27508
  hasSunroof: (key) => !!options.sunroofs?.includes(key),
27341
27509
  register(spec, build) {
27342
27510
  if (!groups.has(spec.group) || only && !only.has(spec.key) || skip.has(spec.key)) return;
27343
- kit.register({ ...spec, seedKey: legacyVehicleSeeds[spec.key] }, build);
27511
+ kit.register({ ...spec, seedKey: legacyVehicleSeeds[spec.key] }, (context, vehicleKit) => {
27512
+ build(context, vehicleKit);
27513
+ separateSpokes(context);
27514
+ });
27344
27515
  }
27345
27516
  };
27346
27517
  }
@@ -29616,6 +29787,49 @@ var GameVehiclesFleet = (() => {
29616
29787
  }
29617
29788
  };
29618
29789
  }
29790
+
29791
+ // src/cabin-categories.ts
29792
+ var CABIN_OVERRIDES = {
29793
+ school_bus: "bus",
29794
+ city_bus: "bus",
29795
+ light_4x4: "military_light",
29796
+ troop_truck: "truck",
29797
+ apc_6x6: "military_armored",
29798
+ armored_car_6x6: "military_armored",
29799
+ battle_tank: "military_armored",
29800
+ transport_helicopter: "aircraft_enclosed",
29801
+ light_attack_turboprop: "aircraft_enclosed",
29802
+ attack_helicopter: "aircraft_enclosed",
29803
+ fishing_boat: "boat_cabin",
29804
+ patrol_boat: "boat_cabin"
29805
+ };
29806
+ function fleetCabinCategoryOf(id) {
29807
+ const override = CABIN_OVERRIDES[id];
29808
+ if (override !== void 0) return override;
29809
+ const group = fleetGroupOf(id);
29810
+ switch (group) {
29811
+ case "cars":
29812
+ return "passenger_car";
29813
+ case "suvs":
29814
+ case "pickups":
29815
+ return "suv_pickup";
29816
+ case "vans":
29817
+ return "van";
29818
+ case "heavy":
29819
+ return "truck";
29820
+ case "agricultural":
29821
+ return "agricultural";
29822
+ case "air":
29823
+ return "aircraft_enclosed";
29824
+ case "motorcycles":
29825
+ case "water":
29826
+ return "open_vehicle";
29827
+ case "military":
29828
+ return "military_armored";
29829
+ default:
29830
+ return "passenger_car";
29831
+ }
29832
+ }
29619
29833
  return __toCommonJS(index_exports);
29620
29834
  })();
29621
29835
  //# sourceMappingURL=index.global.js.map