@adatechnology/game-vehicles-fleet 7.0.0 → 9.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.
- package/README.md +4 -0
- package/dist/index.d.ts +48 -2
- package/dist/index.global.js +1053 -86
- package/dist/index.global.js.map +1 -1
- package/dist/index.js +1053 -86
- package/dist/index.js.map +1 -1
- package/package.json +9 -7
package/dist/index.js
CHANGED
|
@@ -4852,8 +4852,9 @@ function installBoatsExtra(fx) {
|
|
|
4852
4852
|
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);
|
|
4853
4853
|
c.sphere(0.025, MT.plastic, hx + 0.78, ih + 1.12, z - 0.05);
|
|
4854
4854
|
});
|
|
4855
|
-
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 }) });
|
|
4856
|
-
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 }) });
|
|
4855
|
+
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" });
|
|
4856
|
+
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" });
|
|
4857
|
+
c.addDoor({ id: "cabin_door", widthMetres: 0.72, heightMetres: 1.65 });
|
|
4857
4858
|
c.roundBox(0.45, 0.42, 1.9, 0.04, CM("#25282b", { roughness: 0.8 }), hx - 1.35, ih + 0.21, 0.1);
|
|
4858
4859
|
c.seatTops.push({ x: hx - 1.35, y: ih + 0.44, z: 0.1, w: 1.8, l: 0.4 });
|
|
4859
4860
|
c.roundBox(3, 0.02, 2, 0.01, CM("#3a3f44", { roughness: 0.9 }), hx, hy0 + hh - 0.06, 0).castShadow = false;
|
|
@@ -5798,8 +5799,9 @@ function installCarsExtra(fx) {
|
|
|
5798
5799
|
m.tumble = T;
|
|
5799
5800
|
m.frontQuad = qf;
|
|
5800
5801
|
if (intr && s.shelf) {
|
|
5801
|
-
const sx0 = gh.rb + 0.03, sx1 = gh.rb + s.shelf;
|
|
5802
|
-
|
|
5802
|
+
const sx0 = gh.rb + 0.03, sx1 = Math.min(gh.rb + s.shelf, gh.rb + 0.26);
|
|
5803
|
+
if (sx1 > sx0 + 0.04)
|
|
5804
|
+
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;
|
|
5803
5805
|
}
|
|
5804
5806
|
if (intr)
|
|
5805
5807
|
kit.interior(
|
|
@@ -5810,11 +5812,17 @@ function installCarsExtra(fx) {
|
|
|
5810
5812
|
ft: gh.ft,
|
|
5811
5813
|
rb: gh.rb,
|
|
5812
5814
|
rt: gh.rt,
|
|
5813
|
-
roof:
|
|
5815
|
+
roof: gh.roof + 0.02,
|
|
5814
5816
|
belt: gh.belt,
|
|
5815
|
-
floor: s.bottomY + 0.
|
|
5817
|
+
floor: s.bottomY + 0.02,
|
|
5818
|
+
seatH: 0.12,
|
|
5819
|
+
dashD: 0.32,
|
|
5820
|
+
dashH: 0.24,
|
|
5821
|
+
visorUp: true,
|
|
5816
5822
|
zIn: gh.Wg / 2 - 0.09,
|
|
5817
5823
|
zRoof: halfAt(gh.Wg, T, gh.roof) - 0.12,
|
|
5824
|
+
xFront: s.shelf ? gh.fb - 0.86 : void 0,
|
|
5825
|
+
rowPitch: s.shelf ? 0.72 : void 0,
|
|
5818
5826
|
xRear: gh.rb + 0.06
|
|
5819
5827
|
},
|
|
5820
5828
|
intr
|
|
@@ -6362,7 +6370,7 @@ function installCarsExtra(fx) {
|
|
|
6362
6370
|
]);
|
|
6363
6371
|
c2.roundBox(0.03, 0.05, 0.16, 0.012, MT.trim, I.S.endX(-1, 0.84) - 0.01, 0.84, 0);
|
|
6364
6372
|
},
|
|
6365
|
-
interior: { rows: 2, col: "#4a4c52", trim: "#26272a" },
|
|
6373
|
+
interior: { rows: 2, col: "#4a4c52", trim: "#26272a", rowPitch: 0.72 },
|
|
6366
6374
|
hood: { motor: "gasoline" },
|
|
6367
6375
|
wheels: [
|
|
6368
6376
|
[1.17, 0.2875, 0.175, wheelOpts("hubcap")],
|
|
@@ -7862,7 +7870,7 @@ function installCarsExtra(fx) {
|
|
|
7862
7870
|
const lip = K.grid(-1, 0, { z1: 0.7, y0: 0.88, y1: 0.97, du: 0.03, dv: 0.02 });
|
|
7863
7871
|
K.skin(lip, GLOSS, { u0: 0.05, u1: 0.95, yb: 0.925, yt: 0.955, off: 0.016, thick: 0.02, nv: 2 });
|
|
7864
7872
|
},
|
|
7865
|
-
interior: { rows: 2, col: "#1c1d20", trim: "#121316" },
|
|
7873
|
+
interior: { rows: 2, col: "#1c1d20", trim: "#121316", xFront: -0.46, rowPitch: 0.62 },
|
|
7866
7874
|
hood: { motor: "v8_na" },
|
|
7867
7875
|
wheels: [
|
|
7868
7876
|
[1.35, 0.3435, 0.255, { rim: ALLOYD, spokeMat: ALLOY, spokes: 10, rimR: 0.72 }],
|
|
@@ -8125,16 +8133,20 @@ function installHeavy(fx) {
|
|
|
8125
8133
|
x: xd - 0.07,
|
|
8126
8134
|
y: belt + 0.02,
|
|
8127
8135
|
w: zi * 2,
|
|
8128
|
-
d: 0.
|
|
8129
|
-
h: Math.min(0.
|
|
8136
|
+
d: 0.34,
|
|
8137
|
+
h: Math.min(0.28, belt - fl - 0.16),
|
|
8130
8138
|
drv: -zi * 0.52,
|
|
8131
8139
|
mat: trim,
|
|
8132
8140
|
top: fab
|
|
8133
8141
|
});
|
|
8134
8142
|
kit.steeringWheel(c, xd - 0.66, belt + 0.06, -zi * 0.52, { r: 0.22, tilt: 1.12, col: 0.5, mat: trim });
|
|
8135
8143
|
const sx = Math.max(f - len + 0.62, xd - 1.08);
|
|
8136
|
-
kit.seat(c, sx, fl, -zi * 0.52, { w: 0.
|
|
8137
|
-
kit.seat(c, sx, fl, zi * 0.42, { w: zi * 0.98, n: 2, mat: fab, h: 0.
|
|
8144
|
+
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" });
|
|
8145
|
+
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" });
|
|
8146
|
+
const doorW = Math.max(0.75, f - 0.1 - (xr - 0.06));
|
|
8147
|
+
const doorH = Math.max(1.05, ry - fl - 0.1);
|
|
8148
|
+
c.addDoor({ id: "door_front_left", widthMetres: Math.round(doorW * 1e3) / 1e3, heightMetres: Math.round(doorH * 1e3) / 1e3 });
|
|
8149
|
+
c.addDoor({ id: "door_front_right", widthMetres: Math.round(doorW * 1e3) / 1e3, heightMetres: Math.round(doorH * 1e3) / 1e3 });
|
|
8138
8150
|
c.rod(new V3(sx + 0.55, fl, -0.05), new V3(sx + 0.5, fl + 0.48, -0.08), 0.014, MT.chrome);
|
|
8139
8151
|
c.sphere(0.035, MT.plastic, sx + 0.5, fl + 0.5, -0.08);
|
|
8140
8152
|
c.roundBox(0.03, ry - fl - 0.12, zi * 2, 0.01, trim, f - len + 0.07, (ry + fl) / 2, 0);
|
|
@@ -8911,7 +8923,8 @@ function installHeavy(fx) {
|
|
|
8911
8923
|
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 });
|
|
8912
8924
|
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") });
|
|
8913
8925
|
kit.steeringWheel(c, f - 0.6, 1.48, -0.7, { r: 0.25, tilt: 1.1, col: 0.45 });
|
|
8914
|
-
kit.seat(c, f - 1.05, fl, -0.7, { w: 0.5, mat: CM("#2c2d30", { roughness: 0.85 }), h: 0.45 });
|
|
8926
|
+
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" });
|
|
8927
|
+
c.addDoor({ id: "door_front_right", widthMetres: 0.85, heightMetres: 1.95 });
|
|
8915
8928
|
c.roundBox(0.9, 0.38, 0.5, 0.08, CM("#2a2b2d"), f - 0.6, fl + 0.19, -0.05);
|
|
8916
8929
|
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);
|
|
8917
8930
|
c.roundBox(L - 0.5, 0.02, zi * 2, 0.01, MT.headliner, 0, 2.98, 0).castShadow = false;
|
|
@@ -9245,9 +9258,11 @@ function installHeavy(fx) {
|
|
|
9245
9258
|
[1, 1.5, -2.2].forEach(function(x) {
|
|
9246
9259
|
c.rod(new V3(x, fl, 0), new V3(x, 2.95, 0), 0.018, pole);
|
|
9247
9260
|
});
|
|
9248
|
-
kit.dashboard(c, { x: fx2(1.3) - 0.08, y: 1.3, w: 1.2, d: 0.
|
|
9261
|
+
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") });
|
|
9249
9262
|
kit.steeringWheel(c, f - 0.62, 1.38, -0.68, { r: 0.25, tilt: 1.15, col: 0.4 });
|
|
9250
|
-
kit.seat(c, f - 1.15, 0.6, -0.68, { w: 0.5, mat: CM("#2c2d30", { roughness: 0.85 }), h: 0.46 });
|
|
9263
|
+
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" });
|
|
9264
|
+
c.addDoor({ id: "door_front_right", widthMetres: 1, heightMetres: 2.05 });
|
|
9265
|
+
c.addDoor({ id: "door_rear_right", widthMetres: 1, heightMetres: 2.05 });
|
|
9251
9266
|
c.roundBox(0.4, 0.95, 0.32, 0.05, CM("#9aa0a4", { metalness: 0.5 }), 3.95, fl + 0.48, -0.55);
|
|
9252
9267
|
[0, 2.09, 4.19].forEach(function(a) {
|
|
9253
9268
|
c.rod(
|
|
@@ -9585,7 +9600,9 @@ function installHeavy(fx) {
|
|
|
9585
9600
|
c.cylinder(0.05, 0.05, 0.012, MT.gauge, -0.165, 1.6, 0.1, "x");
|
|
9586
9601
|
kit.steeringWheel(c, -0.38, 1.66, 0, { r: 0.2, tilt: 1, col: 0.42, mat: MT.trim });
|
|
9587
9602
|
c.roundBox(1, 0.05, 0.94, 0.02, CM("#5c5f62", { metalness: 0.5 }), -0.7, 1.12, 0);
|
|
9588
|
-
kit.seat(c, -1, 1.35, 0, { w: 0.
|
|
9603
|
+
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" });
|
|
9604
|
+
c.addDoor({ id: "cab_entry_left", widthMetres: 0.85, heightMetres: 1.15 });
|
|
9605
|
+
c.addDoor({ id: "cab_entry_right", widthMetres: 0.85, heightMetres: 1.15 });
|
|
9589
9606
|
c.roundBox(0.3, 0.2, 0.3, 0.04, dgray, -1, 1.28, 0);
|
|
9590
9607
|
[
|
|
9591
9608
|
[0.25, 1],
|
|
@@ -9937,7 +9954,11 @@ function installHelicoptersExtra(fx) {
|
|
|
9937
9954
|
const fl = 0.6, fab = CM("#2f3136", { roughness: 0.9 });
|
|
9938
9955
|
GH.liner(c, ST, -0.3, 1, fl, MT.carpet, { h: 0.03, maxW: 0.98 });
|
|
9939
9956
|
[0.26, -0.26].forEach(function(z) {
|
|
9940
|
-
kit.seat(c, 0.05, fl, z, { w: 0.
|
|
9957
|
+
kit.seat(c, 0.05, fl, z, { w: 0.48, h: 0.12, back: 0.6, lean: 0.12, mat: fab, role: "pilot" });
|
|
9958
|
+
if (z < 0) {
|
|
9959
|
+
c.addDoor({ id: "door_front_left", widthMetres: 0.68, heightMetres: 0.95 });
|
|
9960
|
+
c.addDoor({ id: "door_front_right", widthMetres: 0.68, heightMetres: 0.95 });
|
|
9961
|
+
}
|
|
9941
9962
|
EA.pedals(c, 1.15, fl, z);
|
|
9942
9963
|
});
|
|
9943
9964
|
c.roundBox(0.35, 0.5, 0.24, 0.05, CM("#232427"), 0.95, fl + 0.28, 0, { rot: [0, 0, 0.35] });
|
|
@@ -10305,7 +10326,11 @@ function installHelicoptersExtra(fx) {
|
|
|
10305
10326
|
const fl = 0.68, fab = CM("#4b4339", { roughness: 0.9 });
|
|
10306
10327
|
GH.liner(c, ST, -0.6, 1.8, fl, MT.carpet, { h: 0.03, maxW: 1.15 });
|
|
10307
10328
|
[0.3, -0.3].forEach(function(z) {
|
|
10308
|
-
kit.seat(c, 1.05, fl, z, { w: 0.48, h: 0.
|
|
10329
|
+
kit.seat(c, 1.05, fl, z, { w: 0.48, h: 0.28, back: 0.64, lean: 0.12, mat: fab, role: "pilot" });
|
|
10330
|
+
if (z < 0) {
|
|
10331
|
+
c.addDoor({ id: "door_front_left", widthMetres: 0.75, heightMetres: 1.05 });
|
|
10332
|
+
c.addDoor({ id: "door_front_right", widthMetres: 0.75, heightMetres: 1.05 });
|
|
10333
|
+
}
|
|
10309
10334
|
EA.cyclic(c, 1.4, fl, z);
|
|
10310
10335
|
EA.pedals(c, 2.1, fl, z);
|
|
10311
10336
|
});
|
|
@@ -10709,7 +10734,11 @@ function installHelicoptersExtra(fx) {
|
|
|
10709
10734
|
const fl = 0.7, fab = CM("#2c3540", { roughness: 0.9 });
|
|
10710
10735
|
GH.liner(c, ST, -2.9, 2.5, fl, MT.carpet, { h: 0.03, maxW: 1.5 });
|
|
10711
10736
|
[0.42, -0.42].forEach(function(z) {
|
|
10712
|
-
kit.seat(c, 1.55, fl, z, { w: 0.5, h: 0.4, back: 0.7, lean: 0.12, mat: fab });
|
|
10737
|
+
kit.seat(c, 1.55, fl, z, { w: 0.5, h: 0.4, back: 0.7, lean: 0.12, mat: fab, role: "pilot" });
|
|
10738
|
+
if (z < 0) {
|
|
10739
|
+
c.addDoor({ id: "door_front_left", widthMetres: 0.78, heightMetres: 1.15 });
|
|
10740
|
+
c.addDoor({ id: "door_front_right", widthMetres: 0.78, heightMetres: 1.15 });
|
|
10741
|
+
}
|
|
10713
10742
|
EA.cyclic(c, 1.95, fl, z);
|
|
10714
10743
|
EA.pedals(c, 2.75, fl, z);
|
|
10715
10744
|
});
|
|
@@ -11142,10 +11171,12 @@ function installHelicoptersExtra(fx) {
|
|
|
11142
11171
|
kit.cutMesh(fus, [EA.sideCutP(tdP, 0.5)], 40, { sub: 0.12 });
|
|
11143
11172
|
EA.colorize(fus.geometry, col);
|
|
11144
11173
|
const fab = CM("#2e3328", { roughness: 0.85 });
|
|
11145
|
-
kit.seat(c, 4.75, 1.55, 0, { w: 0.5, h: 0.
|
|
11174
|
+
kit.seat(c, 4.75, 1.55, 0, { w: 0.5, h: 0.1, back: 0.7, lean: 0.15, mat: fab, role: "pilot" });
|
|
11146
11175
|
c.roundBox(0.2, 0.3, 0.6, 0.04, CM("#232427"), 5.35, 1.98, 0, { rot: [0, 0, 0.3] });
|
|
11147
11176
|
c.roundBox(0.2, 0.2, 0.15, 0.03, MT.plastic, 5.25, 2.15, 0);
|
|
11148
|
-
kit.seat(c, 3.2, 2.12, 0, { w: 0.5, h: 0.
|
|
11177
|
+
kit.seat(c, 3.2, 2.12, 0, { w: 0.5, h: 0.1, back: 0.72, lean: 0.15, mat: fab, role: "pilot" });
|
|
11178
|
+
c.addDoor({ id: "canopy_left", widthMetres: 0.72, heightMetres: 0.95 });
|
|
11179
|
+
c.addDoor({ id: "door_cargo_left", widthMetres: 0.9, heightMetres: 1.15 });
|
|
11149
11180
|
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]] });
|
|
11150
11181
|
EA.cyclic(c, 3.55, 2.12, 0);
|
|
11151
11182
|
EA.collective(c, 3.3, 2.12, -0.38);
|
|
@@ -11957,6 +11988,10 @@ function installMilitary(fx) {
|
|
|
11957
11988
|
mirrorCol: "#22231d",
|
|
11958
11989
|
wheels: []
|
|
11959
11990
|
};
|
|
11991
|
+
s.interior = Object.assign(
|
|
11992
|
+
{ floor: s.bottomY + 0.02, roof: s.gh.roof + 0.02, seatH: 0.14, dashD: 0.32, dashH: 0.24, visorUp: true },
|
|
11993
|
+
s.interior || {}
|
|
11994
|
+
);
|
|
11960
11995
|
kit.car(c, s);
|
|
11961
11996
|
[xf, xr].forEach(function(x) {
|
|
11962
11997
|
;
|
|
@@ -12221,8 +12256,8 @@ function installMilitary(fx) {
|
|
|
12221
12256
|
x: xd - 0.07,
|
|
12222
12257
|
y: belt + 0.02,
|
|
12223
12258
|
w: zi * 2,
|
|
12224
|
-
d: 0.
|
|
12225
|
-
h: Math.min(0.
|
|
12259
|
+
d: 0.34,
|
|
12260
|
+
h: Math.min(0.28, belt - fl - 0.16),
|
|
12226
12261
|
drv: -zi * 0.52,
|
|
12227
12262
|
mat: trim,
|
|
12228
12263
|
top: fab,
|
|
@@ -12230,8 +12265,12 @@ function installMilitary(fx) {
|
|
|
12230
12265
|
});
|
|
12231
12266
|
kit.steeringWheel(c, xd - 0.66, belt + 0.06, -zi * 0.52, { r: 0.23, tilt: 1.12, col: 0.5, mat: trim });
|
|
12232
12267
|
const sx = Math.max(f - len + 0.62, xd - 1.08);
|
|
12233
|
-
kit.seat(c, sx, fl, -zi * 0.52, { w: 0.
|
|
12234
|
-
kit.seat(c, sx, fl, zi * 0.42, { w: zi * 0.98, n: 2, mat: fab, h: 0.
|
|
12268
|
+
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" });
|
|
12269
|
+
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" });
|
|
12270
|
+
const mDoorW = Math.max(0.75, f - 0.1 - (xr - 0.06));
|
|
12271
|
+
const mDoorH = Math.max(1.05, ry - fl - 0.1);
|
|
12272
|
+
c.addDoor({ id: "door_front_left", widthMetres: Math.round(mDoorW * 1e3) / 1e3, heightMetres: Math.round(mDoorH * 1e3) / 1e3 });
|
|
12273
|
+
c.addDoor({ id: "door_front_right", widthMetres: Math.round(mDoorW * 1e3) / 1e3, heightMetres: Math.round(mDoorH * 1e3) / 1e3 });
|
|
12235
12274
|
c.rod(new V3(sx + 0.55, fl, -0.05), new V3(sx + 0.5, fl + 0.48, -0.08), 0.014, OLIVE_STEEL);
|
|
12236
12275
|
c.sphere(0.035, BLACK, sx + 0.5, fl + 0.5, -0.08);
|
|
12237
12276
|
c.roundBox(0.25, 0.16, 0.34, 0.02, CM("#3b402d", { roughness: 0.7 }), xd - 0.35, belt + 0.12, 0.1);
|
|
@@ -12773,7 +12812,9 @@ function installMilitary(fx) {
|
|
|
12773
12812
|
[-0.9, -2.2].forEach(function(x) {
|
|
12774
12813
|
c.roundBox(0.3, 0.04, 0.1, 0.02, RED_LIGHT, x, roofY - 0.1, 0).castShadow = false;
|
|
12775
12814
|
});
|
|
12776
|
-
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 }) });
|
|
12815
|
+
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" });
|
|
12816
|
+
c.addDoor({ id: "hatch_driver", widthMetres: 0.58, heightMetres: 0.6 });
|
|
12817
|
+
c.addDoor({ id: "ramp_rear", widthMetres: 1.4, heightMetres: 1.35 });
|
|
12777
12818
|
kit.steeringWheel(c, 1.5, 1.42, -0.62, { r: 0.2, tilt: 0.9, col: 0.35 });
|
|
12778
12819
|
c.roundBox(0.35, 0.3, 0.7, 0.04, CM("#25261f"), 1.85, 1.45, -0.6);
|
|
12779
12820
|
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 }) });
|
|
@@ -13142,7 +13183,9 @@ function installMilitary(fx) {
|
|
|
13142
13183
|
});
|
|
13143
13184
|
const fl = 0.72, fab = CM("#2f3226", { roughness: 0.9 });
|
|
13144
13185
|
c.roundBox(3, 0.04, 1.6, 0.01, MT.carpet, 0.2, fl, 0);
|
|
13145
|
-
kit.seat(c, 1, fl
|
|
13186
|
+
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" });
|
|
13187
|
+
c.addDoor({ id: "hatch_driver", widthMetres: 0.54, heightMetres: 0.58 });
|
|
13188
|
+
c.addDoor({ id: "hatch_commander", widthMetres: 0.6, heightMetres: 0.6 });
|
|
13146
13189
|
kit.steeringWheel(c, 1.5, 1.38, -0.55, { r: 0.18, tilt: 0.9, col: 0.3 });
|
|
13147
13190
|
c.roundBox(0.3, 0.26, 0.6, 0.04, CM("#25261f"), 1.75, 1.35, -0.5);
|
|
13148
13191
|
const nT = c.vehicle.children.length;
|
|
@@ -13190,8 +13233,8 @@ function installMilitary(fx) {
|
|
|
13190
13233
|
for (let k = 0; k < 4; k++)
|
|
13191
13234
|
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);
|
|
13192
13235
|
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);
|
|
13193
|
-
kit.seat(c, tx - 0.4, fl + 0.
|
|
13194
|
-
kit.seat(c, tx - 0.4, fl + 0.
|
|
13236
|
+
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" });
|
|
13237
|
+
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" });
|
|
13195
13238
|
c.roundBox(0.8, 0.3, 0.3, 0.05, BARREL, tx + 0.1, ty + 0.1, 0);
|
|
13196
13239
|
c.roundBox(1.6, 0.02, 1.2, 0.01, MT.headliner, tx - 0.2, ty + 0.66, 0).castShadow = false;
|
|
13197
13240
|
rigid(c, c.vehicle.children.slice(nT));
|
|
@@ -13384,7 +13427,18 @@ function installMilitary(fx) {
|
|
|
13384
13427
|
{ rot: [0, 0, -0.18] }
|
|
13385
13428
|
);
|
|
13386
13429
|
hatch(c, 2.05, roofY - 0.1, -0.78, 0.28, 0, OLIVE_STEEL, { yaw: 0 });
|
|
13387
|
-
kit.seat(c, 1.
|
|
13430
|
+
kit.seat(c, 1.65, 0.3, -0.76, {
|
|
13431
|
+
w: 0.46,
|
|
13432
|
+
h: 0.14,
|
|
13433
|
+
back: 0.5,
|
|
13434
|
+
lean: 0.5,
|
|
13435
|
+
mat: CM("#2f3226", { roughness: 0.9 }),
|
|
13436
|
+
id: "driver",
|
|
13437
|
+
role: "driver",
|
|
13438
|
+
headroomMetres: 0.9
|
|
13439
|
+
});
|
|
13440
|
+
c.addDoor({ id: "hatch_driver", widthMetres: 0.56, heightMetres: 0.58 });
|
|
13441
|
+
c.addDoor({ id: "hatch_commander", widthMetres: 0.68, heightMetres: 0.68 });
|
|
13388
13442
|
[-0.95, -0.78, -0.61].forEach(function(z, i) {
|
|
13389
13443
|
periscope(c, 2.3, roofY - 0.08, z, 0.14, i === 1 ? lbl("driver_periscope") : null);
|
|
13390
13444
|
});
|
|
@@ -13461,9 +13515,9 @@ function installMilitary(fx) {
|
|
|
13461
13515
|
});
|
|
13462
13516
|
c.roundBox(0.25, 0.3, 1.6, 0.06, CANVAS2, bx + 0.12, ty + 0.4, 0);
|
|
13463
13517
|
c.part("cargo", trl("labels.luggage_basket"), null, new V3(bx + 0.1, ty + 0.5, 0), 1);
|
|
13464
|
-
kit.seat(c, tx - 0.55, ty - 0.45, 0.6, { w: 0.
|
|
13465
|
-
kit.seat(c, tx + 0.2, ty - 0.55, 0.62, { w: 0.
|
|
13466
|
-
kit.seat(c, tx - 0.3, ty - 0.55, -0.62, { w: 0.
|
|
13518
|
+
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" });
|
|
13519
|
+
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" });
|
|
13520
|
+
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" });
|
|
13467
13521
|
c.roundBox(1.1, 0.35, 0.4, 0.05, BARREL, tx + 0.6, ty + 0.35, 0.05);
|
|
13468
13522
|
c.roundBox(2.2, 0.02, 1.6, 0.01, MT.headliner, tx - 0.3, tTop - 0.08, 0).castShadow = false;
|
|
13469
13523
|
c.cylinder(0.05, 0.05, 0.03, RED_LIGHT, tx - 0.4, tTop - 0.1, 0.2);
|
|
@@ -13704,10 +13758,12 @@ function installMilitary(fx) {
|
|
|
13704
13758
|
const fl = 0.86, fab = CM("#2f3226", { roughness: 0.9 });
|
|
13705
13759
|
c.roundBox(5.6, 0.04, 2.05, 0.01, MT.carpet, -0.4, fl, 0).castShadow = false;
|
|
13706
13760
|
[0.5, -0.5].forEach(function(z) {
|
|
13707
|
-
kit.seat(c, 1.55, fl, z, { w: 0.5, h: 0.42, back: 0.72, lean: 0.12, mat: fab });
|
|
13708
|
-
c.rod(new V3(2, fl, z), new V3(1.95, fl + 0.55, z), 0.016, BLACK);
|
|
13709
|
-
c.sphere(0.035, BLACK, 1.95, fl + 0.57, z);
|
|
13761
|
+
kit.seat(c, 1.55, fl, z, { w: 0.5, h: 0.42, back: 0.72, lean: 0.12, mat: fab, role: "pilot" });
|
|
13762
|
+
c.rod(new V3(2, fl, z), new V3(1.95, fl + 0.55, z), 0.016, BLACK).userData.noCabinRay = true;
|
|
13763
|
+
c.sphere(0.035, BLACK, 1.95, fl + 0.57, z).userData.noCabinRay = true;
|
|
13710
13764
|
});
|
|
13765
|
+
c.addDoor({ id: "door_front_left", widthMetres: 0.75, heightMetres: 1.15 });
|
|
13766
|
+
c.addDoor({ id: "door_front_right", widthMetres: 0.75, heightMetres: 1.15 });
|
|
13711
13767
|
c.roundBox(0.25, 0.45, 1.9, 0.05, CM("#232427"), 2.45, fl + 0.55, 0);
|
|
13712
13768
|
c.roundBox(0.4, 0.05, 1.95, 0.02, CM("#1a1b1d"), 2.4, fl + 0.8, 0, { rot: [0, 0, 0.25] });
|
|
13713
13769
|
[-0.75, -0.45, -0.15, 0.15, 0.45, 0.75].forEach(function(z) {
|
|
@@ -14844,9 +14900,13 @@ function installMotorcyclesCars(fx) {
|
|
|
14844
14900
|
ft: gh.ft,
|
|
14845
14901
|
rb: gh.rb,
|
|
14846
14902
|
rt: gh.rt,
|
|
14847
|
-
roof:
|
|
14903
|
+
roof: gh.roof + 0.02,
|
|
14848
14904
|
belt: gh.belt,
|
|
14849
|
-
floor: s.bottomY + 0.
|
|
14905
|
+
floor: s.bottomY + 0.02,
|
|
14906
|
+
seatH: 0.12,
|
|
14907
|
+
dashD: 0.32,
|
|
14908
|
+
dashH: 0.24,
|
|
14909
|
+
visorUp: true,
|
|
14850
14910
|
zIn: gh.Wg / 2 - 0.09,
|
|
14851
14911
|
zRoof: halfAt(gh.Wg, T, gh.roof) - 0.12,
|
|
14852
14912
|
xRear: gh.rb + 0.06
|
|
@@ -18319,7 +18379,7 @@ function installMotorcyclesCars(fx) {
|
|
|
18319
18379
|
c.cylinder(0.025, 0.025, 0.2, EXH, -1.98, 0.3, z, "x");
|
|
18320
18380
|
});
|
|
18321
18381
|
c.part("engine", trl("labels.air_cooled_engine_rear"), null, new V3(-1.6, 0.55, 0), 1);
|
|
18322
|
-
const fab = CM("#4b3a2e", { roughness: 0.85 }), fl = 0.
|
|
18382
|
+
const fab = CM("#4b3a2e", { roughness: 0.85 }), fl = 0.31;
|
|
18323
18383
|
c.roundBox(1.7, 0.03, 0.62, 0.01, MT.carpet, -0.15, fl, 0).castShadow = false;
|
|
18324
18384
|
c.roundBox(0.2, 0.24, 1.14, 0.04, col, 0.66, 0.92, 0);
|
|
18325
18385
|
c.roundBox(0.16, 0.05, 1.12, 0.02, CM("#1b1c1e"), 0.6, 1.03, 0);
|
|
@@ -18330,9 +18390,18 @@ function installMotorcyclesCars(fx) {
|
|
|
18330
18390
|
c.rod(new V3(0.12, fl, 0), new V3(0.02, fl + 0.42, 0), 0.01, MT.chrome);
|
|
18331
18391
|
c.sphere(0.025, MT.plastic, 0.02, fl + 0.44, 0);
|
|
18332
18392
|
[-1, 1].forEach(function(sd) {
|
|
18333
|
-
kit.seat(c, -0.
|
|
18393
|
+
kit.seat(c, -0.08, fl, sd * 0.27, {
|
|
18394
|
+
w: 0.44,
|
|
18395
|
+
mat: fab,
|
|
18396
|
+
back: 0.58,
|
|
18397
|
+
lean: 0.2,
|
|
18398
|
+
h: 0.14,
|
|
18399
|
+
headrest: false,
|
|
18400
|
+
id: sd < 0 ? "driver" : "front_right",
|
|
18401
|
+
role: sd < 0 ? "driver" : "front_passenger"
|
|
18402
|
+
});
|
|
18334
18403
|
});
|
|
18335
|
-
kit.seat(c, -0.
|
|
18404
|
+
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" });
|
|
18336
18405
|
[1, -1].forEach(function(sd) {
|
|
18337
18406
|
for (let yk = 0.56; yk < 0.95; yk += 0.075) {
|
|
18338
18407
|
const zf = Math.min(loftHalf(stS, -0.3, yk - 0.04), loftHalf(stS, 0.5, yk - 0.04)) - 0.045;
|
|
@@ -20393,11 +20462,12 @@ function installPlanesExtra(fx) {
|
|
|
20393
20462
|
c.roundBox(0.012, 0.012, 0.06, 4e-3, MT.steel, 2.06, 0.62, 0, PG);
|
|
20394
20463
|
const fl = -0.4, fab = CM("#3c3a35", { roughness: 0.9 });
|
|
20395
20464
|
c.roundBox(2, 0.025, 0.6, 0.01, MT.carpet, 0.55, fl, 0, PG).castShadow = false;
|
|
20396
|
-
kit.seat(c, 0.62, fl, 0, { w: 0.48, h: 0.
|
|
20397
|
-
kit.seat(c, -0.22, fl + 0.04, 0, { w: 0.5, h: 0.
|
|
20465
|
+
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" });
|
|
20466
|
+
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" });
|
|
20467
|
+
c.addDoor({ id: "canopy_door", widthMetres: 0.7, heightMetres: 0.85 });
|
|
20398
20468
|
[1.12, 0.3].forEach(function(x) {
|
|
20399
|
-
c.rod(new V3(x, fl, 0), new V3(x - 0.05, fl + 0.5, 0), 0.012, MT.plastic, PG);
|
|
20400
|
-
c.sphere(0.025, MT.plastic, x - 0.055, fl + 0.52, 0, 1, 1.4, 1, PG);
|
|
20469
|
+
c.rod(new V3(x, fl, 0), new V3(x - 0.05, fl + 0.5, 0), 0.012, MT.plastic, PG).userData.noCabinRay = true;
|
|
20470
|
+
c.sphere(0.025, MT.plastic, x - 0.055, fl + 0.52, 0, 1, 1.4, 1, PG).userData.noCabinRay = true;
|
|
20401
20471
|
});
|
|
20402
20472
|
c.roundBox(0.05, 0.22, 0.6, 0.02, CM("#2a2b2d", { roughness: 0.8 }), 1.75, 0.3, 0, PG);
|
|
20403
20473
|
[-0.2, -0.08, 0.04, 0.16, -0.14].forEach(function(z, i) {
|
|
@@ -20751,7 +20821,8 @@ function installPlanesExtra(fx) {
|
|
|
20751
20821
|
const fl = 0.98, fab = CM("#3d4552", { roughness: 0.9 });
|
|
20752
20822
|
liner(c, ST, -4.6, 5.9, fl, MT.carpet, { h: 0.03 });
|
|
20753
20823
|
[0.38, -0.38].forEach(function(z) {
|
|
20754
|
-
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 }) });
|
|
20824
|
+
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" });
|
|
20825
|
+
if (z < 0) c.addDoor({ id: "cabin_door_left", widthMetres: 0.78, heightMetres: 1.55 });
|
|
20755
20826
|
kit.yoke(c, 5.5, 1.75, z);
|
|
20756
20827
|
EA.pedals(c, 5.95, fl, z);
|
|
20757
20828
|
});
|
|
@@ -21145,7 +21216,8 @@ function installPlanesExtra(fx) {
|
|
|
21145
21216
|
const fl = 2.06, fab = CM("#4a4640", { roughness: 0.9 });
|
|
21146
21217
|
liner(c, ST, -3.2, 2, fl, MT.carpet, { h: 0.03 });
|
|
21147
21218
|
[0.38, -0.38].forEach(function(z) {
|
|
21148
|
-
kit.seat(c, 0.95, fl, z, { w: 0.5, h: 0.38, back: 0.7, lean: 0.14, mat: fab });
|
|
21219
|
+
kit.seat(c, 0.95, fl, z, { w: 0.5, h: 0.38, back: 0.7, lean: 0.14, mat: fab, role: "pilot" });
|
|
21220
|
+
if (z < 0) c.addDoor({ id: "cabin_door_left", widthMetres: 0.78, heightMetres: 1.4 });
|
|
21149
21221
|
kit.yoke(c, 1.5, 2.85, z);
|
|
21150
21222
|
EA.pedals(c, 1.95, fl, z);
|
|
21151
21223
|
});
|
|
@@ -21560,7 +21632,8 @@ function installPlanesExtra(fx) {
|
|
|
21560
21632
|
const fl = 0.8, fab = CM("#c9bda6", { roughness: 0.75 });
|
|
21561
21633
|
liner(c, ST, -2, 4, fl, MT.carpet, { h: 0.03 });
|
|
21562
21634
|
[0.36, -0.36].forEach(function(z) {
|
|
21563
|
-
kit.seat(c, 3.55, fl, z, { w: 0.48, h: 0.36, back: 0.66, lean: 0.14, mat: CM("#2a2c30") });
|
|
21635
|
+
kit.seat(c, 3.55, fl, z, { w: 0.48, h: 0.36, back: 0.66, lean: 0.14, mat: CM("#2a2c30"), role: "pilot" });
|
|
21636
|
+
if (z < 0) c.addDoor({ id: "cabin_door_left", widthMetres: 0.72, heightMetres: 1.35 });
|
|
21564
21637
|
kit.yoke(c, 4.05, 1.55, z);
|
|
21565
21638
|
});
|
|
21566
21639
|
EA.instPanel(c, 4.3, 1.68, 1.35, {
|
|
@@ -21928,11 +22001,12 @@ function installPlanesExtra(fx) {
|
|
|
21928
22001
|
[1.55, 1.24],
|
|
21929
22002
|
[0.2, 1.46]
|
|
21930
22003
|
].forEach(function(q, i) {
|
|
21931
|
-
kit.seat(c, q[0], q[1], 0, { w: 0.5, h: 0.32, back: 0.85, lean: 0.24, mat: fab, headrest: false });
|
|
22004
|
+
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" });
|
|
21932
22005
|
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] });
|
|
21933
22006
|
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);
|
|
21934
|
-
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);
|
|
21935
|
-
c.sphere(0.03, blk, q[0] + 0.31, q[1] + 0.48, 0, 1, 1.5, 1);
|
|
22007
|
+
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;
|
|
22008
|
+
c.sphere(0.03, blk, q[0] + 0.31, q[1] + 0.48, 0, 1, 1.5, 1).userData.noCabinRay = true;
|
|
22009
|
+
if (i === 0) c.addDoor({ id: "canopy_door", widthMetres: 0.68, heightMetres: 0.85 });
|
|
21936
22010
|
const px = q[0] + 0.75;
|
|
21937
22011
|
c.roundBox(0.16, 0.3, 0.6, 0.04, CM("#232427"), px, q[1] + 0.65, 0, { rot: [0, 0, 0.2] });
|
|
21938
22012
|
[-0.15, 0.15].forEach(function(z) {
|
|
@@ -22768,10 +22842,26 @@ function installSuvPickupVan(fx) {
|
|
|
22768
22842
|
roofLining(c, extra);
|
|
22769
22843
|
if (!c.meta.damage) c.meta.damage = crashDamage;
|
|
22770
22844
|
}
|
|
22845
|
+
function withCabinPackaging(s) {
|
|
22846
|
+
if (s.interior === false) return s;
|
|
22847
|
+
return Object.assign({}, s, {
|
|
22848
|
+
interior: Object.assign(
|
|
22849
|
+
{
|
|
22850
|
+
floor: s.bottomY + 0.02,
|
|
22851
|
+
roof: s.gh.roof + 0.02,
|
|
22852
|
+
seatH: 0.12,
|
|
22853
|
+
dashD: 0.32,
|
|
22854
|
+
dashH: 0.24,
|
|
22855
|
+
visorUp: true
|
|
22856
|
+
},
|
|
22857
|
+
s.interior || {}
|
|
22858
|
+
)
|
|
22859
|
+
});
|
|
22860
|
+
}
|
|
22771
22861
|
function suvBuild(c, s, o) {
|
|
22772
22862
|
o = o || {};
|
|
22773
22863
|
const n0 = c.deform.length;
|
|
22774
|
-
kit.car(c, s);
|
|
22864
|
+
kit.car(c, withCabinPackaging(s));
|
|
22775
22865
|
const low = c.deform[n0], m = c.meta;
|
|
22776
22866
|
let extra = [];
|
|
22777
22867
|
if (o.flares !== false) extra = extra.concat(fenderFlares(c, s.arches, s.W, s.bottomY, o.flare));
|
|
@@ -23258,7 +23348,7 @@ function installSuvPickupVan(fx) {
|
|
|
23258
23348
|
);
|
|
23259
23349
|
function pickupBuild(c, s, o) {
|
|
23260
23350
|
const n0 = c.deform.length;
|
|
23261
|
-
kit.car(c, s);
|
|
23351
|
+
kit.car(c, withCabinPackaging(s));
|
|
23262
23352
|
const low = c.deform[n0], m = c.meta;
|
|
23263
23353
|
let extra = [];
|
|
23264
23354
|
cargoBed(c, { low, x0: m.rear + 0.06, x1: o.bedFront, floor: o.floor, top: s.gh.belt, W: s.W, arches: s.arches });
|
|
@@ -23654,7 +23744,7 @@ function installSuvPickupVan(fx) {
|
|
|
23654
23744
|
wheels: []
|
|
23655
23745
|
};
|
|
23656
23746
|
const n0 = c.deform.length;
|
|
23657
|
-
kit.car(c, s);
|
|
23747
|
+
kit.car(c, withCabinPackaging(s));
|
|
23658
23748
|
const low = c.deform[n0], m = c.meta;
|
|
23659
23749
|
cargoBed(c, { low, x0: m.rear + 0.06, x1: -0.42, floor: 1.78, top: 2.25, W, arches: [] });
|
|
23660
23750
|
c.roundBox(0.08, 0.08, W + 0.1, 0.03, MT.chrome, m.front + 0.06, 1.72, 0);
|
|
@@ -23974,7 +24064,10 @@ function installSuvPickupVan(fx) {
|
|
|
23974
24064
|
xRear: P.cabBack - 0.12,
|
|
23975
24065
|
xFront: P.cabBack + 0.42,
|
|
23976
24066
|
seatH: 0.42,
|
|
23977
|
-
front: "bench"
|
|
24067
|
+
front: "bench",
|
|
24068
|
+
dashD: 0.32,
|
|
24069
|
+
dashH: 0.24,
|
|
24070
|
+
visorUp: true
|
|
23978
24071
|
});
|
|
23979
24072
|
c.roundBox(
|
|
23980
24073
|
0.04,
|
|
@@ -25012,8 +25105,8 @@ function createWaterAirKit(kit) {
|
|
|
25012
25105
|
});
|
|
25013
25106
|
}
|
|
25014
25107
|
function cyclic(c, x, fl, z) {
|
|
25015
|
-
c.rod(new V3(x, fl, z), new V3(x - 0.04, fl + 0.55, z), 0.014, MT.plastic);
|
|
25016
|
-
c.roundBox(0.04, 0.12, 0.04, 0.015, MT.plastic, x - 0.05, fl + 0.6, z);
|
|
25108
|
+
c.rod(new V3(x, fl, z), new V3(x - 0.04, fl + 0.55, z), 0.014, MT.plastic).userData.noCabinRay = true;
|
|
25109
|
+
c.roundBox(0.04, 0.12, 0.04, 0.015, MT.plastic, x - 0.05, fl + 0.6, z).userData.noCabinRay = true;
|
|
25017
25110
|
}
|
|
25018
25111
|
function collective(c, x, fl, z) {
|
|
25019
25112
|
c.rod(new V3(x - 0.35, fl + 0.18, z), new V3(x + 0.05, fl + 0.32, z), 0.016, MT.plastic);
|
|
@@ -25544,8 +25637,8 @@ function installWaterAir(fx) {
|
|
|
25544
25637
|
c.rod(new V3(0.62, cy + 0.72, 0.62), new V3(0.55, cy + 0.82, 0.62), 0.02, MT.chrome);
|
|
25545
25638
|
c.rod(new V3(0.55, cy + 0.7, 0.98), new V3(0.42, cy + 0.88, 1), 0.015, MT.chrome);
|
|
25546
25639
|
c.sphere(0.035, MT.plastic, 0.42, cy + 0.9, 1);
|
|
25547
|
-
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 });
|
|
25548
|
-
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 });
|
|
25640
|
+
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" });
|
|
25641
|
+
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" });
|
|
25549
25642
|
[1, -1].forEach(function(s) {
|
|
25550
25643
|
const pts = [];
|
|
25551
25644
|
for (let i = 0; i <= 8; i++) {
|
|
@@ -25856,7 +25949,8 @@ function installWaterAir(fx) {
|
|
|
25856
25949
|
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 });
|
|
25857
25950
|
}
|
|
25858
25951
|
c.cylinder(0.05, 0.05, 0.14, MT.wood, 0.06, 0, 0, "x", { parent: whl });
|
|
25859
|
-
kit.seat(c, hx - 0.
|
|
25952
|
+
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" });
|
|
25953
|
+
c.addDoor({ id: "cabin_door", widthMetres: 0.68, heightMetres: 1.55 });
|
|
25860
25954
|
c.roundBox(1.8, 0.12, 0.65, 0.04, CM("#7c5a3b"), hx - 0.2, hy0 + 0.5, -0.72);
|
|
25861
25955
|
c.roundBox(1.7, 0.08, 0.55, 0.04, CM("#6b7c8f", { roughness: 1 }), hx - 0.2, hy0 + 0.6, -0.72);
|
|
25862
25956
|
c.roundBox(1.9, 0.02, 2.1, 0.01, inner, hx, hy0 + hh - 0.06, 0).castShadow = false;
|
|
@@ -26072,11 +26166,13 @@ function installWaterAir(fx) {
|
|
|
26072
26166
|
const fl = 0.74, fab = CM("#4a463f", { roughness: 0.9 });
|
|
26073
26167
|
c.roundBox(2.2, 0.03, 0.98, 0.01, MT.carpet, 0.2, fl, 0).castShadow = false;
|
|
26074
26168
|
[0.26, -0.26].forEach(function(z) {
|
|
26075
|
-
kit.seat(c, 0.38, fl, z, { w: 0.
|
|
26169
|
+
kit.seat(c, 0.38, fl, z, { w: 0.48, h: 0.24, back: 0.62, lean: 0.18, mat: fab, role: "pilot" });
|
|
26076
26170
|
EA.pedals(c, 1.18, fl, z);
|
|
26077
26171
|
kit.yoke(c, 0.98, 1.47, z);
|
|
26078
26172
|
});
|
|
26079
|
-
kit.seat(c, -0.52, fl, 0, { w: 0.96, n: 2, h: 0.
|
|
26173
|
+
kit.seat(c, -0.52, fl, 0, { w: 0.96, n: 2, h: 0.24, back: 0.58, lean: 0.2, mat: fab });
|
|
26174
|
+
c.addDoor({ id: "door_front_left", widthMetres: 0.75, heightMetres: 0.95 });
|
|
26175
|
+
c.addDoor({ id: "door_front_right", widthMetres: 0.75, heightMetres: 0.95 });
|
|
26080
26176
|
EA.instPanel(c, 1.1, 1.52, 1, { gauges: 6, z0: -0.38, screens: [[0, 0.12, 0.14, 0.22]] });
|
|
26081
26177
|
c.roundBox(0.1, 0.1, 0.1, 0.02, MT.plastic, 1, 1.32, 0);
|
|
26082
26178
|
c.cylinder(0.018, 0.018, 0.1, MT.chrome, 0.93, 1.34, 0.02, "x");
|
|
@@ -26351,9 +26447,10 @@ function installWaterAir(fx) {
|
|
|
26351
26447
|
);
|
|
26352
26448
|
const fl = -0.36;
|
|
26353
26449
|
c.roundBox(1.3, 0.03, 0.8, 0.01, MT.carpet, -0.4, fl, 0, { parent: grp }).castShadow = false;
|
|
26354
|
-
kit.seat(c, -0.55, fl, 0, { w: 0.5, h: 0.
|
|
26355
|
-
c.
|
|
26356
|
-
c.
|
|
26450
|
+
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" });
|
|
26451
|
+
c.addDoor({ id: "canopy_door", widthMetres: 0.7, heightMetres: 0.85 });
|
|
26452
|
+
c.rod(new V3(0, fl, 0), new V3(-0.06, fl + 0.55, 0), 0.016, MT.plastic, { parent: grp }).userData.noCabinRay = true;
|
|
26453
|
+
c.roundBox(0.04, 0.13, 0.05, 0.015, MT.plastic, -0.07, fl + 0.6, 0, { parent: grp }).userData.noCabinRay = true;
|
|
26357
26454
|
c.roundBox(0.16, 0.3, 0.8, 0.04, CM("#232427"), 0.36, 0.5, 0, { parent: grp, rot: [0, 0, 0.2] });
|
|
26358
26455
|
[-0.24, -0.12, 0, 0.12, 0.24].forEach(function(z, i) {
|
|
26359
26456
|
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;
|
|
@@ -26763,10 +26860,12 @@ function installWaterAir(fx) {
|
|
|
26763
26860
|
const fl = 0.72, fab = CM("#3b3a38", { roughness: 0.9 });
|
|
26764
26861
|
c.roundBox(1.9, 0.03, 1.16, 0.01, MT.carpet, 0.2, fl, 0).castShadow = false;
|
|
26765
26862
|
[0.3, -0.3].forEach(function(z) {
|
|
26766
|
-
kit.seat(c, 0.35, fl, z, { w: 0.48, h: 0.
|
|
26863
|
+
kit.seat(c, 0.35, fl, z, { w: 0.48, h: 0.2, back: 0.62, lean: 0.14, mat: fab, role: "pilot" });
|
|
26767
26864
|
EA.pedals(c, 1.35, fl, z);
|
|
26768
26865
|
});
|
|
26769
|
-
kit.seat(c, -0.55, fl + 0.06, 0, { w: 1.06, n: 2, h: 0.
|
|
26866
|
+
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 });
|
|
26867
|
+
c.addDoor({ id: "door_front_left", widthMetres: 0.72, heightMetres: 1.05 });
|
|
26868
|
+
c.addDoor({ id: "door_front_right", widthMetres: 0.72, heightMetres: 1.05 });
|
|
26770
26869
|
c.roundBox(0.42, 0.62, 0.3, 0.06, CM("#232427"), 1.15, fl + 0.32, 0, { rot: [0, 0, 0.35] });
|
|
26771
26870
|
c.roundBox(0.06, 0.3, 0.3, 0.02, CM("#1a1b1d"), 1.25, fl + 0.65, 0, { rot: [0, 0, 0.6] });
|
|
26772
26871
|
[-0.07, 0.07].forEach(function(z) {
|
|
@@ -27097,6 +27196,8 @@ function installWaterAir(fx) {
|
|
|
27097
27196
|
EA.collective(c, 1.3, fl, -0.72);
|
|
27098
27197
|
EA.collective(c, 1.3, fl, 0.12);
|
|
27099
27198
|
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 });
|
|
27199
|
+
c.addDoor({ id: "door_front_left", widthMetres: 0.78, heightMetres: 1.15 });
|
|
27200
|
+
c.addDoor({ id: "door_front_right", widthMetres: 0.78, heightMetres: 1.15 });
|
|
27100
27201
|
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]] });
|
|
27101
27202
|
c.roundBox(0.5, 0.45, 0.32, 0.06, CM("#232427"), 2.05, fl + 0.24, 0);
|
|
27102
27203
|
c.roundBox(2.3, 0.02, 1.4, 0.01, MT.headliner, 0.45, 2.24, 0).castShadow = false;
|
|
@@ -27745,6 +27846,793 @@ var table = dims_default;
|
|
|
27745
27846
|
var fleetDims = (id) => table[id];
|
|
27746
27847
|
var allFleetDims = () => table;
|
|
27747
27848
|
|
|
27849
|
+
// src/data/wheel-layouts.json
|
|
27850
|
+
var wheel_layouts_default = {
|
|
27851
|
+
compact_hatch: {
|
|
27852
|
+
axles: [
|
|
27853
|
+
{
|
|
27854
|
+
x: 1.18,
|
|
27855
|
+
track: 1.49,
|
|
27856
|
+
radius: 0.31,
|
|
27857
|
+
wheels: 2
|
|
27858
|
+
},
|
|
27859
|
+
{
|
|
27860
|
+
x: -1.4,
|
|
27861
|
+
track: 1.49,
|
|
27862
|
+
radius: 0.31,
|
|
27863
|
+
wheels: 2
|
|
27864
|
+
}
|
|
27865
|
+
]
|
|
27866
|
+
},
|
|
27867
|
+
taxi: {
|
|
27868
|
+
axles: [
|
|
27869
|
+
{
|
|
27870
|
+
x: 1.18,
|
|
27871
|
+
track: 1.49,
|
|
27872
|
+
radius: 0.31,
|
|
27873
|
+
wheels: 2
|
|
27874
|
+
},
|
|
27875
|
+
{
|
|
27876
|
+
x: -1.4,
|
|
27877
|
+
track: 1.49,
|
|
27878
|
+
radius: 0.31,
|
|
27879
|
+
wheels: 2
|
|
27880
|
+
}
|
|
27881
|
+
]
|
|
27882
|
+
},
|
|
27883
|
+
entry_hatch: {
|
|
27884
|
+
axles: [
|
|
27885
|
+
{
|
|
27886
|
+
x: 1,
|
|
27887
|
+
track: 1.35,
|
|
27888
|
+
radius: 0.29,
|
|
27889
|
+
wheels: 2
|
|
27890
|
+
},
|
|
27891
|
+
{
|
|
27892
|
+
x: -1.42,
|
|
27893
|
+
track: 1.35,
|
|
27894
|
+
radius: 0.29,
|
|
27895
|
+
wheels: 2
|
|
27896
|
+
}
|
|
27897
|
+
]
|
|
27898
|
+
},
|
|
27899
|
+
electric_hatch: {
|
|
27900
|
+
axles: [
|
|
27901
|
+
{
|
|
27902
|
+
x: 1.3,
|
|
27903
|
+
track: 1.5,
|
|
27904
|
+
radius: 0.32,
|
|
27905
|
+
wheels: 2
|
|
27906
|
+
},
|
|
27907
|
+
{
|
|
27908
|
+
x: -1.4,
|
|
27909
|
+
track: 1.5,
|
|
27910
|
+
radius: 0.32,
|
|
27911
|
+
wheels: 2
|
|
27912
|
+
}
|
|
27913
|
+
]
|
|
27914
|
+
},
|
|
27915
|
+
midsize_sedan: {
|
|
27916
|
+
axles: [
|
|
27917
|
+
{
|
|
27918
|
+
x: 1.3,
|
|
27919
|
+
track: 1.53,
|
|
27920
|
+
radius: 0.32,
|
|
27921
|
+
wheels: 2
|
|
27922
|
+
},
|
|
27923
|
+
{
|
|
27924
|
+
x: -1.4,
|
|
27925
|
+
track: 1.53,
|
|
27926
|
+
radius: 0.32,
|
|
27927
|
+
wheels: 2
|
|
27928
|
+
}
|
|
27929
|
+
]
|
|
27930
|
+
},
|
|
27931
|
+
police_sedan: {
|
|
27932
|
+
axles: [
|
|
27933
|
+
{
|
|
27934
|
+
x: 1.3,
|
|
27935
|
+
track: 1.55,
|
|
27936
|
+
radius: 0.32,
|
|
27937
|
+
wheels: 2
|
|
27938
|
+
},
|
|
27939
|
+
{
|
|
27940
|
+
x: -1.4,
|
|
27941
|
+
track: 1.55,
|
|
27942
|
+
radius: 0.32,
|
|
27943
|
+
wheels: 2
|
|
27944
|
+
}
|
|
27945
|
+
]
|
|
27946
|
+
},
|
|
27947
|
+
highway_police_sedan: {
|
|
27948
|
+
axles: [
|
|
27949
|
+
{
|
|
27950
|
+
x: 1.3,
|
|
27951
|
+
track: 1.55,
|
|
27952
|
+
radius: 0.32,
|
|
27953
|
+
wheels: 2
|
|
27954
|
+
},
|
|
27955
|
+
{
|
|
27956
|
+
x: -1.4,
|
|
27957
|
+
track: 1.55,
|
|
27958
|
+
radius: 0.32,
|
|
27959
|
+
wheels: 2
|
|
27960
|
+
}
|
|
27961
|
+
]
|
|
27962
|
+
},
|
|
27963
|
+
bicycle: {
|
|
27964
|
+
axles: [
|
|
27965
|
+
{
|
|
27966
|
+
x: 0.56,
|
|
27967
|
+
track: 0,
|
|
27968
|
+
radius: 0.34,
|
|
27969
|
+
wheels: 1
|
|
27970
|
+
},
|
|
27971
|
+
{
|
|
27972
|
+
x: -0.53,
|
|
27973
|
+
track: 0,
|
|
27974
|
+
radius: 0.34,
|
|
27975
|
+
wheels: 1
|
|
27976
|
+
}
|
|
27977
|
+
]
|
|
27978
|
+
},
|
|
27979
|
+
scooter: {
|
|
27980
|
+
axles: [
|
|
27981
|
+
{
|
|
27982
|
+
x: 0.66,
|
|
27983
|
+
track: 0,
|
|
27984
|
+
radius: 0.26,
|
|
27985
|
+
wheels: 1
|
|
27986
|
+
},
|
|
27987
|
+
{
|
|
27988
|
+
x: -0.65,
|
|
27989
|
+
track: 0,
|
|
27990
|
+
radius: 0.26,
|
|
27991
|
+
wheels: 1
|
|
27992
|
+
}
|
|
27993
|
+
]
|
|
27994
|
+
},
|
|
27995
|
+
commuter_motorcycle: {
|
|
27996
|
+
axles: [
|
|
27997
|
+
{
|
|
27998
|
+
x: 0.66,
|
|
27999
|
+
track: 0,
|
|
28000
|
+
radius: 0.31,
|
|
28001
|
+
wheels: 1
|
|
28002
|
+
},
|
|
28003
|
+
{
|
|
28004
|
+
x: -0.66,
|
|
28005
|
+
track: 0,
|
|
28006
|
+
radius: 0.31,
|
|
28007
|
+
wheels: 1
|
|
28008
|
+
}
|
|
28009
|
+
]
|
|
28010
|
+
},
|
|
28011
|
+
trail_bike: {
|
|
28012
|
+
axles: [
|
|
28013
|
+
{
|
|
28014
|
+
x: 0.72,
|
|
28015
|
+
track: 0,
|
|
28016
|
+
radius: 0.32,
|
|
28017
|
+
wheels: 1
|
|
28018
|
+
},
|
|
28019
|
+
{
|
|
28020
|
+
x: -0.66,
|
|
28021
|
+
track: 0,
|
|
28022
|
+
radius: 0.32,
|
|
28023
|
+
wheels: 1
|
|
28024
|
+
}
|
|
28025
|
+
]
|
|
28026
|
+
},
|
|
28027
|
+
adventure_bike: {
|
|
28028
|
+
axles: [
|
|
28029
|
+
{
|
|
28030
|
+
x: 0.78,
|
|
28031
|
+
track: 0,
|
|
28032
|
+
radius: 0.33,
|
|
28033
|
+
wheels: 1
|
|
28034
|
+
},
|
|
28035
|
+
{
|
|
28036
|
+
x: -0.72,
|
|
28037
|
+
track: 0,
|
|
28038
|
+
radius: 0.32,
|
|
28039
|
+
wheels: 1
|
|
28040
|
+
}
|
|
28041
|
+
]
|
|
28042
|
+
},
|
|
28043
|
+
highway_police_bike: {
|
|
28044
|
+
axles: [
|
|
28045
|
+
{
|
|
28046
|
+
x: 0.78,
|
|
28047
|
+
track: 0,
|
|
28048
|
+
radius: 0.33,
|
|
28049
|
+
wheels: 1
|
|
28050
|
+
},
|
|
28051
|
+
{
|
|
28052
|
+
x: -0.72,
|
|
28053
|
+
track: 0,
|
|
28054
|
+
radius: 0.32,
|
|
28055
|
+
wheels: 1
|
|
28056
|
+
}
|
|
28057
|
+
]
|
|
28058
|
+
},
|
|
28059
|
+
quad_bike: {
|
|
28060
|
+
axles: [
|
|
28061
|
+
{
|
|
28062
|
+
x: 0.62,
|
|
28063
|
+
track: 1,
|
|
28064
|
+
radius: 0.33,
|
|
28065
|
+
wheels: 2
|
|
28066
|
+
},
|
|
28067
|
+
{
|
|
28068
|
+
x: -0.63,
|
|
28069
|
+
track: 0.98,
|
|
28070
|
+
radius: 0.33,
|
|
28071
|
+
wheels: 2
|
|
28072
|
+
}
|
|
28073
|
+
]
|
|
28074
|
+
},
|
|
28075
|
+
beetle: {
|
|
28076
|
+
axles: [
|
|
28077
|
+
{
|
|
28078
|
+
x: 1.15,
|
|
28079
|
+
track: 1.31,
|
|
28080
|
+
radius: 0.33,
|
|
28081
|
+
wheels: 2
|
|
28082
|
+
},
|
|
28083
|
+
{
|
|
28084
|
+
x: -1.25,
|
|
28085
|
+
track: 1.29,
|
|
28086
|
+
radius: 0.33,
|
|
28087
|
+
wheels: 2
|
|
28088
|
+
}
|
|
28089
|
+
]
|
|
28090
|
+
},
|
|
28091
|
+
compact_suv: {
|
|
28092
|
+
axles: [
|
|
28093
|
+
{
|
|
28094
|
+
x: 1.33,
|
|
28095
|
+
track: 1.52,
|
|
28096
|
+
radius: 0.33,
|
|
28097
|
+
wheels: 2
|
|
28098
|
+
},
|
|
28099
|
+
{
|
|
28100
|
+
x: -1.33,
|
|
28101
|
+
track: 1.51,
|
|
28102
|
+
radius: 0.33,
|
|
28103
|
+
wheels: 2
|
|
28104
|
+
}
|
|
28105
|
+
]
|
|
28106
|
+
},
|
|
28107
|
+
hybrid_suv: {
|
|
28108
|
+
axles: [
|
|
28109
|
+
{
|
|
28110
|
+
x: 1.32,
|
|
28111
|
+
track: 1.56,
|
|
28112
|
+
radius: 0.34,
|
|
28113
|
+
wheels: 2
|
|
28114
|
+
},
|
|
28115
|
+
{
|
|
28116
|
+
x: -1.32,
|
|
28117
|
+
track: 1.57,
|
|
28118
|
+
radius: 0.34,
|
|
28119
|
+
wheels: 2
|
|
28120
|
+
}
|
|
28121
|
+
]
|
|
28122
|
+
},
|
|
28123
|
+
midsize_suv: {
|
|
28124
|
+
axles: [
|
|
28125
|
+
{
|
|
28126
|
+
x: 1.32,
|
|
28127
|
+
track: 1.57,
|
|
28128
|
+
radius: 0.35,
|
|
28129
|
+
wheels: 2
|
|
28130
|
+
},
|
|
28131
|
+
{
|
|
28132
|
+
x: -1.32,
|
|
28133
|
+
track: 1.57,
|
|
28134
|
+
radius: 0.35,
|
|
28135
|
+
wheels: 2
|
|
28136
|
+
}
|
|
28137
|
+
]
|
|
28138
|
+
},
|
|
28139
|
+
large_suv: {
|
|
28140
|
+
axles: [
|
|
28141
|
+
{
|
|
28142
|
+
x: 1.37,
|
|
28143
|
+
track: 1.54,
|
|
28144
|
+
radius: 0.39,
|
|
28145
|
+
wheels: 2
|
|
28146
|
+
},
|
|
28147
|
+
{
|
|
28148
|
+
x: -1.37,
|
|
28149
|
+
track: 1.55,
|
|
28150
|
+
radius: 0.39,
|
|
28151
|
+
wheels: 2
|
|
28152
|
+
}
|
|
28153
|
+
]
|
|
28154
|
+
},
|
|
28155
|
+
compact_pickup: {
|
|
28156
|
+
axles: [
|
|
28157
|
+
{
|
|
28158
|
+
x: 1.37,
|
|
28159
|
+
track: 1.49,
|
|
28160
|
+
radius: 0.33,
|
|
28161
|
+
wheels: 2
|
|
28162
|
+
},
|
|
28163
|
+
{
|
|
28164
|
+
x: -1.37,
|
|
28165
|
+
track: 1.5,
|
|
28166
|
+
radius: 0.33,
|
|
28167
|
+
wheels: 2
|
|
28168
|
+
}
|
|
28169
|
+
]
|
|
28170
|
+
},
|
|
28171
|
+
crossover_pickup: {
|
|
28172
|
+
axles: [
|
|
28173
|
+
{
|
|
28174
|
+
x: 1.5,
|
|
28175
|
+
track: 1.55,
|
|
28176
|
+
radius: 0.36,
|
|
28177
|
+
wheels: 2
|
|
28178
|
+
},
|
|
28179
|
+
{
|
|
28180
|
+
x: -1.49,
|
|
28181
|
+
track: 1.58,
|
|
28182
|
+
radius: 0.36,
|
|
28183
|
+
wheels: 2
|
|
28184
|
+
}
|
|
28185
|
+
]
|
|
28186
|
+
},
|
|
28187
|
+
midsize_pickup: {
|
|
28188
|
+
axles: [
|
|
28189
|
+
{
|
|
28190
|
+
x: 1.54,
|
|
28191
|
+
track: 1.54,
|
|
28192
|
+
radius: 0.39,
|
|
28193
|
+
wheels: 2
|
|
28194
|
+
},
|
|
28195
|
+
{
|
|
28196
|
+
x: -1.54,
|
|
28197
|
+
track: 1.55,
|
|
28198
|
+
radius: 0.39,
|
|
28199
|
+
wheels: 2
|
|
28200
|
+
}
|
|
28201
|
+
]
|
|
28202
|
+
},
|
|
28203
|
+
monster_truck: {
|
|
28204
|
+
axles: [
|
|
28205
|
+
{
|
|
28206
|
+
x: 1.55,
|
|
28207
|
+
track: 2.76,
|
|
28208
|
+
radius: 0.79,
|
|
28209
|
+
wheels: 2
|
|
28210
|
+
},
|
|
28211
|
+
{
|
|
28212
|
+
x: -1.55,
|
|
28213
|
+
track: 2.76,
|
|
28214
|
+
radius: 0.79,
|
|
28215
|
+
wheels: 2
|
|
28216
|
+
}
|
|
28217
|
+
]
|
|
28218
|
+
},
|
|
28219
|
+
cargo_van: {
|
|
28220
|
+
axles: [
|
|
28221
|
+
{
|
|
28222
|
+
x: 1.83,
|
|
28223
|
+
track: 1.72,
|
|
28224
|
+
radius: 0.37,
|
|
28225
|
+
wheels: 2
|
|
28226
|
+
},
|
|
28227
|
+
{
|
|
28228
|
+
x: -1.83,
|
|
28229
|
+
track: 1.72,
|
|
28230
|
+
radius: 0.37,
|
|
28231
|
+
wheels: 2
|
|
28232
|
+
}
|
|
28233
|
+
]
|
|
28234
|
+
},
|
|
28235
|
+
ambulance: {
|
|
28236
|
+
axles: [
|
|
28237
|
+
{
|
|
28238
|
+
x: 1.73,
|
|
28239
|
+
track: 1.8,
|
|
28240
|
+
radius: 0.34,
|
|
28241
|
+
wheels: 2
|
|
28242
|
+
},
|
|
28243
|
+
{
|
|
28244
|
+
x: -1.72,
|
|
28245
|
+
track: 1.8,
|
|
28246
|
+
radius: 0.34,
|
|
28247
|
+
wheels: 2
|
|
28248
|
+
}
|
|
28249
|
+
]
|
|
28250
|
+
},
|
|
28251
|
+
box_truck: {
|
|
28252
|
+
axles: [
|
|
28253
|
+
{
|
|
28254
|
+
x: 2.65,
|
|
28255
|
+
track: 1.88,
|
|
28256
|
+
radius: 0.39,
|
|
28257
|
+
wheels: 2
|
|
28258
|
+
},
|
|
28259
|
+
{
|
|
28260
|
+
x: -1.65,
|
|
28261
|
+
track: 2,
|
|
28262
|
+
radius: 0.39,
|
|
28263
|
+
wheels: 4
|
|
28264
|
+
}
|
|
28265
|
+
]
|
|
28266
|
+
},
|
|
28267
|
+
tanker_truck: {
|
|
28268
|
+
axles: [
|
|
28269
|
+
{
|
|
28270
|
+
x: 3.3,
|
|
28271
|
+
track: 2.1,
|
|
28272
|
+
radius: 0.51,
|
|
28273
|
+
wheels: 2
|
|
28274
|
+
},
|
|
28275
|
+
{
|
|
28276
|
+
x: -1.5,
|
|
28277
|
+
track: 2.12,
|
|
28278
|
+
radius: 0.51,
|
|
28279
|
+
wheels: 4
|
|
28280
|
+
},
|
|
28281
|
+
{
|
|
28282
|
+
x: -2.72,
|
|
28283
|
+
track: 2.12,
|
|
28284
|
+
radius: 0.51,
|
|
28285
|
+
wheels: 4
|
|
28286
|
+
}
|
|
28287
|
+
]
|
|
28288
|
+
},
|
|
28289
|
+
school_bus: {
|
|
28290
|
+
axles: [
|
|
28291
|
+
{
|
|
28292
|
+
x: 3.1,
|
|
28293
|
+
track: 2.05,
|
|
28294
|
+
radius: 0.51,
|
|
28295
|
+
wheels: 2
|
|
28296
|
+
},
|
|
28297
|
+
{
|
|
28298
|
+
x: -1.5,
|
|
28299
|
+
track: 2.24,
|
|
28300
|
+
radius: 0.51,
|
|
28301
|
+
wheels: 4
|
|
28302
|
+
}
|
|
28303
|
+
]
|
|
28304
|
+
},
|
|
28305
|
+
city_bus: {
|
|
28306
|
+
axles: [
|
|
28307
|
+
{
|
|
28308
|
+
x: 3.55,
|
|
28309
|
+
track: 2.1,
|
|
28310
|
+
radius: 0.5,
|
|
28311
|
+
wheels: 2
|
|
28312
|
+
},
|
|
28313
|
+
{
|
|
28314
|
+
x: -2.85,
|
|
28315
|
+
track: 2.26,
|
|
28316
|
+
radius: 0.5,
|
|
28317
|
+
wheels: 4
|
|
28318
|
+
}
|
|
28319
|
+
]
|
|
28320
|
+
},
|
|
28321
|
+
armored_truck: {
|
|
28322
|
+
axles: [
|
|
28323
|
+
{
|
|
28324
|
+
x: 2.5,
|
|
28325
|
+
track: 1.94,
|
|
28326
|
+
radius: 0.51,
|
|
28327
|
+
wheels: 2
|
|
28328
|
+
},
|
|
28329
|
+
{
|
|
28330
|
+
x: -1.7,
|
|
28331
|
+
track: 1.96,
|
|
28332
|
+
radius: 0.51,
|
|
28333
|
+
wheels: 4
|
|
28334
|
+
}
|
|
28335
|
+
]
|
|
28336
|
+
},
|
|
28337
|
+
tractor: {
|
|
28338
|
+
axles: [
|
|
28339
|
+
{
|
|
28340
|
+
x: 1.12,
|
|
28341
|
+
track: 1.48,
|
|
28342
|
+
radius: 0.4,
|
|
28343
|
+
wheels: 2
|
|
28344
|
+
},
|
|
28345
|
+
{
|
|
28346
|
+
x: -0.95,
|
|
28347
|
+
track: 1.5,
|
|
28348
|
+
radius: 0.79,
|
|
28349
|
+
wheels: 2
|
|
28350
|
+
}
|
|
28351
|
+
]
|
|
28352
|
+
},
|
|
28353
|
+
light_4x4: {
|
|
28354
|
+
axles: [
|
|
28355
|
+
{
|
|
28356
|
+
x: 1.15,
|
|
28357
|
+
track: 1.54,
|
|
28358
|
+
radius: 0.37,
|
|
28359
|
+
wheels: 2
|
|
28360
|
+
},
|
|
28361
|
+
{
|
|
28362
|
+
x: -1.15,
|
|
28363
|
+
track: 1.54,
|
|
28364
|
+
radius: 0.37,
|
|
28365
|
+
wheels: 2
|
|
28366
|
+
}
|
|
28367
|
+
]
|
|
28368
|
+
},
|
|
28369
|
+
troop_truck: {
|
|
28370
|
+
axles: [
|
|
28371
|
+
{
|
|
28372
|
+
x: 2.45,
|
|
28373
|
+
track: 1.96,
|
|
28374
|
+
radius: 0.56,
|
|
28375
|
+
wheels: 2
|
|
28376
|
+
},
|
|
28377
|
+
{
|
|
28378
|
+
x: -1.65,
|
|
28379
|
+
track: 1.96,
|
|
28380
|
+
radius: 0.56,
|
|
28381
|
+
wheels: 2
|
|
28382
|
+
}
|
|
28383
|
+
]
|
|
28384
|
+
},
|
|
28385
|
+
apc_6x6: {
|
|
28386
|
+
axles: [
|
|
28387
|
+
{
|
|
28388
|
+
x: 2,
|
|
28389
|
+
track: 2.26,
|
|
28390
|
+
radius: 0.58,
|
|
28391
|
+
wheels: 2
|
|
28392
|
+
},
|
|
28393
|
+
{
|
|
28394
|
+
x: 0.2,
|
|
28395
|
+
track: 2.26,
|
|
28396
|
+
radius: 0.58,
|
|
28397
|
+
wheels: 2
|
|
28398
|
+
},
|
|
28399
|
+
{
|
|
28400
|
+
x: -1.3,
|
|
28401
|
+
track: 2.26,
|
|
28402
|
+
radius: 0.58,
|
|
28403
|
+
wheels: 2
|
|
28404
|
+
}
|
|
28405
|
+
]
|
|
28406
|
+
},
|
|
28407
|
+
armored_car_6x6: {
|
|
28408
|
+
axles: [
|
|
28409
|
+
{
|
|
28410
|
+
x: 1.6,
|
|
28411
|
+
track: 2.27,
|
|
28412
|
+
radius: 0.5,
|
|
28413
|
+
wheels: 2
|
|
28414
|
+
},
|
|
28415
|
+
{
|
|
28416
|
+
x: -0.8,
|
|
28417
|
+
track: 2.27,
|
|
28418
|
+
radius: 0.5,
|
|
28419
|
+
wheels: 2
|
|
28420
|
+
},
|
|
28421
|
+
{
|
|
28422
|
+
x: -2.1,
|
|
28423
|
+
track: 2.27,
|
|
28424
|
+
radius: 0.5,
|
|
28425
|
+
wheels: 2
|
|
28426
|
+
}
|
|
28427
|
+
]
|
|
28428
|
+
},
|
|
28429
|
+
battle_tank: {
|
|
28430
|
+
tracks: {
|
|
28431
|
+
gauge: 2.65,
|
|
28432
|
+
rearX: -2.67,
|
|
28433
|
+
frontX: 2.55,
|
|
28434
|
+
roadWheels: 7,
|
|
28435
|
+
radius: 0.35
|
|
28436
|
+
}
|
|
28437
|
+
},
|
|
28438
|
+
step_through_scooter: {
|
|
28439
|
+
axles: [
|
|
28440
|
+
{
|
|
28441
|
+
x: 0.63,
|
|
28442
|
+
track: 0,
|
|
28443
|
+
radius: 0.28,
|
|
28444
|
+
wheels: 1
|
|
28445
|
+
},
|
|
28446
|
+
{
|
|
28447
|
+
x: -0.63,
|
|
28448
|
+
track: 0,
|
|
28449
|
+
radius: 0.26,
|
|
28450
|
+
wheels: 1
|
|
28451
|
+
}
|
|
28452
|
+
]
|
|
28453
|
+
},
|
|
28454
|
+
naked_bike: {
|
|
28455
|
+
axles: [
|
|
28456
|
+
{
|
|
28457
|
+
x: 0.69,
|
|
28458
|
+
track: 0,
|
|
28459
|
+
radius: 0.3,
|
|
28460
|
+
wheels: 1
|
|
28461
|
+
},
|
|
28462
|
+
{
|
|
28463
|
+
x: -0.68,
|
|
28464
|
+
track: 0,
|
|
28465
|
+
radius: 0.31,
|
|
28466
|
+
wheels: 1
|
|
28467
|
+
}
|
|
28468
|
+
]
|
|
28469
|
+
},
|
|
28470
|
+
sport_bike: {
|
|
28471
|
+
axles: [
|
|
28472
|
+
{
|
|
28473
|
+
x: 0.69,
|
|
28474
|
+
track: 0,
|
|
28475
|
+
radius: 0.29,
|
|
28476
|
+
wheels: 1
|
|
28477
|
+
},
|
|
28478
|
+
{
|
|
28479
|
+
x: -0.68,
|
|
28480
|
+
track: 0,
|
|
28481
|
+
radius: 0.32,
|
|
28482
|
+
wheels: 1
|
|
28483
|
+
}
|
|
28484
|
+
]
|
|
28485
|
+
},
|
|
28486
|
+
cruiser: {
|
|
28487
|
+
axles: [
|
|
28488
|
+
{
|
|
28489
|
+
x: 0.83,
|
|
28490
|
+
track: 0,
|
|
28491
|
+
radius: 0.32,
|
|
28492
|
+
wheels: 1
|
|
28493
|
+
},
|
|
28494
|
+
{
|
|
28495
|
+
x: -0.83,
|
|
28496
|
+
track: 0,
|
|
28497
|
+
radius: 0.32,
|
|
28498
|
+
wheels: 1
|
|
28499
|
+
}
|
|
28500
|
+
]
|
|
28501
|
+
},
|
|
28502
|
+
delivery_bike: {
|
|
28503
|
+
axles: [
|
|
28504
|
+
{
|
|
28505
|
+
x: 0.66,
|
|
28506
|
+
track: 0,
|
|
28507
|
+
radius: 0.31,
|
|
28508
|
+
wheels: 1
|
|
28509
|
+
},
|
|
28510
|
+
{
|
|
28511
|
+
x: -0.66,
|
|
28512
|
+
track: 0,
|
|
28513
|
+
radius: 0.31,
|
|
28514
|
+
wheels: 1
|
|
28515
|
+
}
|
|
28516
|
+
]
|
|
28517
|
+
},
|
|
28518
|
+
boxy_hatch: {
|
|
28519
|
+
axles: [
|
|
28520
|
+
{
|
|
28521
|
+
x: 1.17,
|
|
28522
|
+
track: 1.34,
|
|
28523
|
+
radius: 0.29,
|
|
28524
|
+
wheels: 2
|
|
28525
|
+
},
|
|
28526
|
+
{
|
|
28527
|
+
x: -1.19,
|
|
28528
|
+
track: 1.36,
|
|
28529
|
+
radius: 0.29,
|
|
28530
|
+
wheels: 2
|
|
28531
|
+
}
|
|
28532
|
+
]
|
|
28533
|
+
},
|
|
28534
|
+
family_hatch: {
|
|
28535
|
+
axles: [
|
|
28536
|
+
{
|
|
28537
|
+
x: 1.2,
|
|
28538
|
+
track: 1.46,
|
|
28539
|
+
radius: 0.3,
|
|
28540
|
+
wheels: 2
|
|
28541
|
+
},
|
|
28542
|
+
{
|
|
28543
|
+
x: -1.26,
|
|
28544
|
+
track: 1.46,
|
|
28545
|
+
radius: 0.3,
|
|
28546
|
+
wheels: 2
|
|
28547
|
+
}
|
|
28548
|
+
]
|
|
28549
|
+
},
|
|
28550
|
+
rideshare_hatch: {
|
|
28551
|
+
axles: [
|
|
28552
|
+
{
|
|
28553
|
+
x: 1.21,
|
|
28554
|
+
track: 1.5,
|
|
28555
|
+
radius: 0.3,
|
|
28556
|
+
wheels: 2
|
|
28557
|
+
},
|
|
28558
|
+
{
|
|
28559
|
+
x: -1.32,
|
|
28560
|
+
track: 1.5,
|
|
28561
|
+
radius: 0.3,
|
|
28562
|
+
wheels: 2
|
|
28563
|
+
}
|
|
28564
|
+
]
|
|
28565
|
+
},
|
|
28566
|
+
turbo_hatch: {
|
|
28567
|
+
axles: [
|
|
28568
|
+
{
|
|
28569
|
+
x: 1.25,
|
|
28570
|
+
track: 1.54,
|
|
28571
|
+
radius: 0.31,
|
|
28572
|
+
wheels: 2
|
|
28573
|
+
},
|
|
28574
|
+
{
|
|
28575
|
+
x: -1.32,
|
|
28576
|
+
track: 1.54,
|
|
28577
|
+
radius: 0.31,
|
|
28578
|
+
wheels: 2
|
|
28579
|
+
}
|
|
28580
|
+
]
|
|
28581
|
+
},
|
|
28582
|
+
fastback_sedan: {
|
|
28583
|
+
axles: [
|
|
28584
|
+
{
|
|
28585
|
+
x: 1.35,
|
|
28586
|
+
track: 1.57,
|
|
28587
|
+
radius: 0.32,
|
|
28588
|
+
wheels: 2
|
|
28589
|
+
},
|
|
28590
|
+
{
|
|
28591
|
+
x: -1.35,
|
|
28592
|
+
track: 1.57,
|
|
28593
|
+
radius: 0.32,
|
|
28594
|
+
wheels: 2
|
|
28595
|
+
}
|
|
28596
|
+
]
|
|
28597
|
+
},
|
|
28598
|
+
classic_six_sedan: {
|
|
28599
|
+
axles: [
|
|
28600
|
+
{
|
|
28601
|
+
x: 1.3,
|
|
28602
|
+
track: 1.43,
|
|
28603
|
+
radius: 0.31,
|
|
28604
|
+
wheels: 2
|
|
28605
|
+
},
|
|
28606
|
+
{
|
|
28607
|
+
x: -1.37,
|
|
28608
|
+
track: 1.41,
|
|
28609
|
+
radius: 0.31,
|
|
28610
|
+
wheels: 2
|
|
28611
|
+
}
|
|
28612
|
+
]
|
|
28613
|
+
},
|
|
28614
|
+
v8_coupe: {
|
|
28615
|
+
axles: [
|
|
28616
|
+
{
|
|
28617
|
+
x: 1.35,
|
|
28618
|
+
track: 1.59,
|
|
28619
|
+
radius: 0.34,
|
|
28620
|
+
wheels: 2
|
|
28621
|
+
},
|
|
28622
|
+
{
|
|
28623
|
+
x: -1.37,
|
|
28624
|
+
track: 1.64,
|
|
28625
|
+
radius: 0.35,
|
|
28626
|
+
wheels: 2
|
|
28627
|
+
}
|
|
28628
|
+
]
|
|
28629
|
+
}
|
|
28630
|
+
};
|
|
28631
|
+
|
|
28632
|
+
// src/wheel-layouts.ts
|
|
28633
|
+
var table2 = wheel_layouts_default;
|
|
28634
|
+
var fleetWheelLayout = (id) => table2[id];
|
|
28635
|
+
|
|
27748
28636
|
// src/data/paint.json
|
|
27749
28637
|
var paint_default = {
|
|
27750
28638
|
civil: [
|
|
@@ -28907,7 +29795,7 @@ var cards_pt_BR_default = {
|
|
|
28907
29795
|
var stats_default = {
|
|
28908
29796
|
compact_hatch: {
|
|
28909
29797
|
speed: 8,
|
|
28910
|
-
acceleration:
|
|
29798
|
+
acceleration: 3,
|
|
28911
29799
|
handling: 7,
|
|
28912
29800
|
toughness: 5,
|
|
28913
29801
|
load: 4,
|
|
@@ -28917,7 +29805,7 @@ var stats_default = {
|
|
|
28917
29805
|
},
|
|
28918
29806
|
taxi: {
|
|
28919
29807
|
speed: 8,
|
|
28920
|
-
acceleration:
|
|
29808
|
+
acceleration: 3,
|
|
28921
29809
|
handling: 7,
|
|
28922
29810
|
toughness: 5,
|
|
28923
29811
|
load: 4,
|
|
@@ -28927,7 +29815,7 @@ var stats_default = {
|
|
|
28927
29815
|
},
|
|
28928
29816
|
entry_hatch: {
|
|
28929
29817
|
speed: 7,
|
|
28930
|
-
acceleration:
|
|
29818
|
+
acceleration: 1,
|
|
28931
29819
|
handling: 7,
|
|
28932
29820
|
toughness: 5,
|
|
28933
29821
|
load: 4,
|
|
@@ -28937,7 +29825,7 @@ var stats_default = {
|
|
|
28937
29825
|
},
|
|
28938
29826
|
electric_hatch: {
|
|
28939
29827
|
speed: 7,
|
|
28940
|
-
acceleration:
|
|
29828
|
+
acceleration: 4,
|
|
28941
29829
|
handling: 6,
|
|
28942
29830
|
toughness: 6,
|
|
28943
29831
|
load: 4,
|
|
@@ -28947,7 +29835,7 @@ var stats_default = {
|
|
|
28947
29835
|
},
|
|
28948
29836
|
midsize_sedan: {
|
|
28949
29837
|
speed: 9,
|
|
28950
|
-
acceleration:
|
|
29838
|
+
acceleration: 6,
|
|
28951
29839
|
handling: 6,
|
|
28952
29840
|
toughness: 6,
|
|
28953
29841
|
load: 4,
|
|
@@ -28957,7 +29845,7 @@ var stats_default = {
|
|
|
28957
29845
|
},
|
|
28958
29846
|
police_sedan: {
|
|
28959
29847
|
speed: 9,
|
|
28960
|
-
acceleration:
|
|
29848
|
+
acceleration: 6,
|
|
28961
29849
|
handling: 6,
|
|
28962
29850
|
toughness: 6,
|
|
28963
29851
|
load: 4,
|
|
@@ -28967,7 +29855,7 @@ var stats_default = {
|
|
|
28967
29855
|
},
|
|
28968
29856
|
highway_police_sedan: {
|
|
28969
29857
|
speed: 9,
|
|
28970
|
-
acceleration:
|
|
29858
|
+
acceleration: 6,
|
|
28971
29859
|
handling: 6,
|
|
28972
29860
|
toughness: 6,
|
|
28973
29861
|
load: 4,
|
|
@@ -29047,7 +29935,7 @@ var stats_default = {
|
|
|
29047
29935
|
},
|
|
29048
29936
|
beetle: {
|
|
29049
29937
|
speed: 5,
|
|
29050
|
-
acceleration:
|
|
29938
|
+
acceleration: 1,
|
|
29051
29939
|
handling: 7,
|
|
29052
29940
|
toughness: 5,
|
|
29053
29941
|
load: 4,
|
|
@@ -29057,7 +29945,7 @@ var stats_default = {
|
|
|
29057
29945
|
},
|
|
29058
29946
|
compact_suv: {
|
|
29059
29947
|
speed: 8,
|
|
29060
|
-
acceleration:
|
|
29948
|
+
acceleration: 5,
|
|
29061
29949
|
handling: 6,
|
|
29062
29950
|
toughness: 6,
|
|
29063
29951
|
load: 4,
|
|
@@ -29067,7 +29955,7 @@ var stats_default = {
|
|
|
29067
29955
|
},
|
|
29068
29956
|
hybrid_suv: {
|
|
29069
29957
|
speed: 8,
|
|
29070
|
-
acceleration:
|
|
29958
|
+
acceleration: 2,
|
|
29071
29959
|
handling: 6,
|
|
29072
29960
|
toughness: 6,
|
|
29073
29961
|
load: 4,
|
|
@@ -29397,7 +30285,7 @@ var stats_default = {
|
|
|
29397
30285
|
},
|
|
29398
30286
|
boxy_hatch: {
|
|
29399
30287
|
speed: 6,
|
|
29400
|
-
acceleration:
|
|
30288
|
+
acceleration: 2,
|
|
29401
30289
|
handling: 7,
|
|
29402
30290
|
toughness: 4,
|
|
29403
30291
|
load: 3,
|
|
@@ -29407,7 +30295,7 @@ var stats_default = {
|
|
|
29407
30295
|
},
|
|
29408
30296
|
family_hatch: {
|
|
29409
30297
|
speed: 7,
|
|
29410
|
-
acceleration:
|
|
30298
|
+
acceleration: 4,
|
|
29411
30299
|
handling: 7,
|
|
29412
30300
|
toughness: 5,
|
|
29413
30301
|
load: 4,
|
|
@@ -29417,7 +30305,7 @@ var stats_default = {
|
|
|
29417
30305
|
},
|
|
29418
30306
|
rideshare_hatch: {
|
|
29419
30307
|
speed: 7,
|
|
29420
|
-
acceleration:
|
|
30308
|
+
acceleration: 2,
|
|
29421
30309
|
handling: 7,
|
|
29422
30310
|
toughness: 5,
|
|
29423
30311
|
load: 4,
|
|
@@ -29427,7 +30315,7 @@ var stats_default = {
|
|
|
29427
30315
|
},
|
|
29428
30316
|
turbo_hatch: {
|
|
29429
30317
|
speed: 8,
|
|
29430
|
-
acceleration:
|
|
30318
|
+
acceleration: 6,
|
|
29431
30319
|
handling: 7,
|
|
29432
30320
|
toughness: 5,
|
|
29433
30321
|
load: 4,
|
|
@@ -29447,7 +30335,7 @@ var stats_default = {
|
|
|
29447
30335
|
},
|
|
29448
30336
|
classic_six_sedan: {
|
|
29449
30337
|
speed: 7,
|
|
29450
|
-
acceleration:
|
|
30338
|
+
acceleration: 4,
|
|
29451
30339
|
handling: 5,
|
|
29452
30340
|
toughness: 6,
|
|
29453
30341
|
load: 5,
|
|
@@ -29457,7 +30345,7 @@ var stats_default = {
|
|
|
29457
30345
|
},
|
|
29458
30346
|
v8_coupe: {
|
|
29459
30347
|
speed: 10,
|
|
29460
|
-
acceleration:
|
|
30348
|
+
acceleration: 10,
|
|
29461
30349
|
handling: 5,
|
|
29462
30350
|
toughness: 6,
|
|
29463
30351
|
load: 3,
|
|
@@ -29605,6 +30493,11 @@ var fleetCard = (id) => cards[id];
|
|
|
29605
30493
|
|
|
29606
30494
|
// src/proving.ts
|
|
29607
30495
|
var FLEET_FOUR_WHEEL_DRIVE = ["light_4x4", "troop_truck", "apc_6x6", "armored_car_6x6", "battle_tank", "monster_truck", "midsize_pickup", "large_suv", "tractor", "quad_bike"];
|
|
30496
|
+
var domainIsLand = (group) => group !== "water" && group !== "air";
|
|
30497
|
+
var FLEET_VEHICLE_TYPES = { bicycle: "bicycle", tractor: "tractor", battle_tank: "tracked", quad_bike: "car" };
|
|
30498
|
+
var GROUP_VEHICLE_TYPES = { motorcycles: "motorcycle", heavy: "truck" };
|
|
30499
|
+
var MILITARY_TRUCKS = ["troop_truck", "apc_6x6", "armored_car_6x6"];
|
|
30500
|
+
var fleetVehicleTypeOf = (id) => FLEET_VEHICLE_TYPES[id] ?? (MILITARY_TRUCKS.includes(id) ? "truck" : GROUP_VEHICLE_TYPES[fleetGroupOf(id) ?? ""] ?? "car");
|
|
29608
30501
|
var fleetGroupOf = (id) => Object.entries(fleetGroups).find(([, ids]) => ids.includes(id))?.[0];
|
|
29609
30502
|
function fleetProvingSubject(id, options = {}) {
|
|
29610
30503
|
const stats2 = fleetStats(id);
|
|
@@ -29612,6 +30505,9 @@ function fleetProvingSubject(id, options = {}) {
|
|
|
29612
30505
|
if (!stats2 || !dims) return null;
|
|
29613
30506
|
const group = fleetGroupOf(id) ?? "cars";
|
|
29614
30507
|
const density = { motorcycles: 90, cars: 88, suvs: 90, pickups: 95, vans: 80, heavy: 120, agricultural: 150, military: 260, water: 60, air: 40 };
|
|
30508
|
+
const layout = fleetWheelLayout(id);
|
|
30509
|
+
const axles = layout?.axles?.map((axle) => ({ x: axle.x, track: axle.track, radius: axle.radius }));
|
|
30510
|
+
const modelWheelbase = axles ? Math.round((axles[0].x - axles[axles.length - 1].x) * 100) / 100 : void 0;
|
|
29615
30511
|
return {
|
|
29616
30512
|
id,
|
|
29617
30513
|
domain: group === "water" ? "water" : group === "air" ? "air" : "land",
|
|
@@ -29619,13 +30515,81 @@ function fleetProvingSubject(id, options = {}) {
|
|
|
29619
30515
|
stats: { acceleration: stats2.acceleration, handling: stats2.handling, maxSpeedKmh: stats2.maxSpeedKmh },
|
|
29620
30516
|
body: {
|
|
29621
30517
|
mass: options.mass ?? Math.round((density[group] ?? 90) * dims.length * dims.width * dims.height),
|
|
29622
|
-
wheelbase: options.wheelbase ?? Math.round(dims.length * 0.6 * 100) / 100,
|
|
29623
|
-
track: options.track ?? Math.round(dims.width * 0.82 * 100) / 100,
|
|
29624
|
-
fourWheelDrive: options.fourWheelDrive ?? FLEET_FOUR_WHEEL_DRIVE.includes(id)
|
|
30518
|
+
wheelbase: options.wheelbase ?? modelWheelbase ?? (layout?.tracks ? Math.round((layout.tracks.frontX - layout.tracks.rearX) * 100) / 100 : Math.round(dims.length * 0.6 * 100) / 100),
|
|
30519
|
+
track: options.track ?? axles?.[0]?.track ?? layout?.tracks?.gauge ?? Math.round(dims.width * 0.82 * 100) / 100,
|
|
30520
|
+
fourWheelDrive: options.fourWheelDrive ?? FLEET_FOUR_WHEEL_DRIVE.includes(id),
|
|
30521
|
+
...domainIsLand(group) ? { type: fleetVehicleTypeOf(id), ...axles && !options.wheelbase ? { axles } : {}, ...layout?.tracks ? { tracks: layout.tracks } : {} } : {}
|
|
29625
30522
|
}
|
|
29626
30523
|
};
|
|
29627
30524
|
}
|
|
30525
|
+
|
|
30526
|
+
// src/acceleration-sources.ts
|
|
30527
|
+
var FLEET_ACCELERATION_SOURCES = {
|
|
30528
|
+
compact_hatch: { seconds: 13.3, source: "Chevrolet Onix 1.0 naturally aspirated: 13.3 s ethanol / 13.7 s petrol (GM, via https://www.webmotors.com.br/wm1/testes/teste-chevrolet-onix-1-0/ e https://www.fichacompleta.com.br/carros/chevrolet/onix-1-0-2025)" },
|
|
30529
|
+
taxi: { seconds: 13.3, source: "Chevrolet Onix Plus LT 1.0 naturally aspirated: 13.3 s (https://garagem360.com.br/?p=216236)" },
|
|
30530
|
+
entry_hatch: { seconds: 15.5, source: "Renault Kwid 1.0: 15.5 s, Renault figure (https://www.icarros.com.br/noticias/testes-e-comparativos/como-anda-o-renault-kwid-intense,-de-r$-39.990-/23022.html); 14.9 s measured by Quatro Rodas" },
|
|
30531
|
+
electric_hatch: { seconds: 12.3, source: "BYD Dolphin 95 hp: 12.3 s (spec sheets; https://www.motor.es/byd/dolphin/comfort-27792.html); a Colombian test measured 10.9 s (https://www.elcarrocolombiano.com/pruebas/byd-dolphin-primer-carro-electrico-colombia-prueba-test-drive-video/)" },
|
|
30532
|
+
midsize_sedan: { seconds: 9.9, source: "Toyota Corolla GLi 2.0: 9.9 s, Motor Show measurement (https://motorshow.com.br/blog-sobre-rodas-avaliacao-toyota-corolla-gli-e-o-melhor-carro-que-voce-pode-comprar-hoje-com-r-110-mil)" },
|
|
30533
|
+
police_sedan: { seconds: 9, source: "Chevrolet Cruze 1.4 turbo: 9.0 s, Motor Show (https://motorshow.com.br/segunda-geracao-coloca-o-chevrolet-cruze-em-patamar-superior); 8.8 s at Autopapo" },
|
|
30534
|
+
highway_police_sedan: { seconds: 9, source: "Chevrolet Cruze 1.4 turbo: 9.0 s, Motor Show (https://motorshow.com.br/segunda-geracao-coloca-o-chevrolet-cruze-em-patamar-superior)" },
|
|
30535
|
+
beetle: { seconds: 30.9, source: "Volkswagen Fusca 1300 (1971 on): 30.9 s, spec database (https://www.fichacompleta.com.br/en/carros/volkswagen/fusca-1300-1975); sources range from 24 to 45 s, all above the cars band: rating 1" },
|
|
30536
|
+
boxy_hatch: { seconds: 14.7, source: "Fiat Uno Mille Economy/Celebration (Fire flex, 2009-2013): 14.7 s (https://carro.blog.br/usados/avaliacao-do-fiat-uno-mille-economy-1-0-4p-2013-o-ultimo-ano-do-uno-quadrado.html)" },
|
|
30537
|
+
family_hatch: { seconds: 12.3, source: "Volkswagen Gol G5 1.0 flex on ethanol: 12.3 s, Webmotors (https://www.webmotors.com.br/wm1/?p=675225)" },
|
|
30538
|
+
rideshare_hatch: { seconds: 14.5, source: "Hyundai HB20 1.0 naturally aspirated: 14.5 s ethanol / 15.4 s petrol, Hyundai catalogue (https://www.hyundai.com.br/content/dam/hmb/cars/hb20/2023/catalogos/Catalogo_DIgital_Novo_HB20_Sense%20Plus_2024.pdf)" },
|
|
30539
|
+
turbo_hatch: { seconds: 9.9, source: "Volkswagen Polo 200 TSI: 9.9 s petrol / 9.6 s ethanol (https://autoentusiastas.com.br/2017/09/andando-com-o-novo-polo-com-video/); Motor Show 10.1 / 9.6 s" },
|
|
30540
|
+
fastback_sedan: { seconds: 8.2, source: "Honda Civic 1.5 turbo (10th generation): 8.2 s, maker spec sheets; 8.43 s measured (https://www.headlightmag.com/preview-accelaration-fuel-consumption-honda-civic-el-plus/)" },
|
|
30541
|
+
classic_six_sedan: { seconds: 12.2, source: "Chevrolet Opala Comodoro 4.1 (1990): 12.2 s, spec database (https://www.fichacompleta.com.br/en/carros/comparativo/opala-ss-4-1-1971-vs-opala-comodoro-4-1-1990)" },
|
|
30542
|
+
v8_coupe: { seconds: 4.8, source: "Ford Mustang GT 5.0: 4.8 s, Ford figure (https://media.ford.com/content/fordmedia/feu/en/news/2015/04/27/all-new-mustang-sprints-0-100-km-h-in-under-5-seconds--2-200-ord.html)" },
|
|
30543
|
+
compact_suv: { seconds: 10, source: "Volkswagen T-Cross 200 TSI: 10.0 s petrol, VW spec sheet (https://garagem360.com.br/?p=249858)" },
|
|
30544
|
+
hybrid_suv: { seconds: 11.8, source: "Toyota Corolla Cross Hybrid (Brazil): 11.8 s measured by Motor Show (https://motorshow.com.br/avaliacao-corolla-cross-hibrido-2-0-tem-197-cv-e-humilha-o-brasileiro-com-freio-eletronico-teto-e-muito-mais)" },
|
|
30545
|
+
midsize_suv: { seconds: null, source: "no source: Jeep Compass Longitude, only figures for other engines and markets (10.3 s at 130 hp, 9.2 s at 150 hp, 10.7 s at altitude)" },
|
|
30546
|
+
large_suv: { seconds: null, source: "no source: the current Toyota SW4 2.8 has no published 0-100 (the only figure found is the old SW4, 25.5 s)" }
|
|
30547
|
+
};
|
|
30548
|
+
|
|
30549
|
+
// src/cabin-categories.ts
|
|
30550
|
+
var CABIN_OVERRIDES = {
|
|
30551
|
+
school_bus: "bus",
|
|
30552
|
+
city_bus: "bus",
|
|
30553
|
+
light_4x4: "military_light",
|
|
30554
|
+
troop_truck: "truck",
|
|
30555
|
+
apc_6x6: "military_armored",
|
|
30556
|
+
armored_car_6x6: "military_armored",
|
|
30557
|
+
battle_tank: "military_armored",
|
|
30558
|
+
transport_helicopter: "aircraft_enclosed",
|
|
30559
|
+
light_attack_turboprop: "aircraft_enclosed",
|
|
30560
|
+
attack_helicopter: "aircraft_enclosed",
|
|
30561
|
+
fishing_boat: "boat_cabin",
|
|
30562
|
+
patrol_boat: "boat_cabin"
|
|
30563
|
+
};
|
|
30564
|
+
function fleetCabinCategoryOf(id) {
|
|
30565
|
+
const override = CABIN_OVERRIDES[id];
|
|
30566
|
+
if (override !== void 0) return override;
|
|
30567
|
+
const group = fleetGroupOf(id);
|
|
30568
|
+
switch (group) {
|
|
30569
|
+
case "cars":
|
|
30570
|
+
return "passenger_car";
|
|
30571
|
+
case "suvs":
|
|
30572
|
+
case "pickups":
|
|
30573
|
+
return "suv_pickup";
|
|
30574
|
+
case "vans":
|
|
30575
|
+
return "van";
|
|
30576
|
+
case "heavy":
|
|
30577
|
+
return "truck";
|
|
30578
|
+
case "agricultural":
|
|
30579
|
+
return "agricultural";
|
|
30580
|
+
case "air":
|
|
30581
|
+
return "aircraft_enclosed";
|
|
30582
|
+
case "motorcycles":
|
|
30583
|
+
case "water":
|
|
30584
|
+
return "open_vehicle";
|
|
30585
|
+
case "military":
|
|
30586
|
+
return "military_armored";
|
|
30587
|
+
default:
|
|
30588
|
+
return "passenger_car";
|
|
30589
|
+
}
|
|
30590
|
+
}
|
|
29628
30591
|
export {
|
|
30592
|
+
FLEET_ACCELERATION_SOURCES,
|
|
29629
30593
|
FLEET_FOUR_WHEEL_DRIVE,
|
|
29630
30594
|
agricultural,
|
|
29631
30595
|
air,
|
|
@@ -29635,6 +30599,7 @@ export {
|
|
|
29635
30599
|
createFleetPack,
|
|
29636
30600
|
createScenarios,
|
|
29637
30601
|
en_default as enLocale,
|
|
30602
|
+
fleetCabinCategoryOf,
|
|
29638
30603
|
fleetCard,
|
|
29639
30604
|
fleetDims,
|
|
29640
30605
|
fleetGroupIds,
|
|
@@ -29644,6 +30609,8 @@ export {
|
|
|
29644
30609
|
fleetProvingSubject,
|
|
29645
30610
|
fleetStats,
|
|
29646
30611
|
fleetVehicleIds,
|
|
30612
|
+
fleetVehicleTypeOf,
|
|
30613
|
+
fleetWheelLayout,
|
|
29647
30614
|
heavy,
|
|
29648
30615
|
installFleet,
|
|
29649
30616
|
legacyGlassLabels,
|