@adatechnology/game-urban-three 0.5.12 → 0.5.13

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.
@@ -5146,6 +5146,11 @@ var GameUrbanThree = (() => {
5146
5146
  var engine = defaultFloorplan();
5147
5147
 
5148
5148
  // ../game-vehicles/dist/index.js
5149
+ var CABIN_PARTS = {
5150
+ seat: { id: "seats", material: "fabric" },
5151
+ trim: { id: "dashboard", material: "plastic" }
5152
+ };
5153
+ var CABIN_PART_IDS = new Set(Object.values(CABIN_PARTS).map((p) => p.id));
5149
5154
  var SHUT_LINE_RADIUS = 2e-3;
5150
5155
  var SHUT_LINE_LIFT = 8e-4;
5151
5156
  var SHUT_LINE_STEPS = 36;
@@ -5301,6 +5306,7 @@ var GameUrbanThree = (() => {
5301
5306
  };
5302
5307
  var CAUSE_OF_EMITTER = { white: SmokeCause.STEAM, oil: SmokeCause.OIL, black: SmokeCause.FIRE };
5303
5308
  var LIFT = { [SmokeCause.STEAM]: 0.5, [SmokeCause.OIL]: 0.45, [SmokeCause.FIRE]: 0.6 };
5309
+ var DROP_GATE_OPEN = Math.PI / 2;
5304
5310
  var LID_OUTWARD = [-Math.SQRT1_2, Math.SQRT1_2, 0];
5305
5311
  var cabin_default = {
5306
5312
  source: "Spec 012 (R6, T0.2) \u2014 SAE J1100 interior packaging & ISO 7250-1 / NASA-STD-3000 adult anthropometry (1.80 m seated height = 0.936 m, buttock-knee = 0.612 m, shoulder = 0.468 m)",
@@ -11015,6 +11021,7 @@ var GameUrbanThree = (() => {
11015
11021
  return pl;
11016
11022
  };
11017
11023
  K.lid = function(pts0) {
11024
+ c.meta.lidSeam = pts0;
11018
11025
  const pts = [];
11019
11026
  pts0.forEach(function(q, i) {
11020
11027
  const n = pts0[i + 1];
@@ -20206,6 +20213,7 @@ var GameUrbanThree = (() => {
20206
20213
  return pl;
20207
20214
  };
20208
20215
  K.lid = function(pts) {
20216
+ c.meta.lidSeam = pts;
20209
20217
  const P = pts.map(function(q) {
20210
20218
  const h = q.top ? S.hit(new V3(q.x, 3, q.z), new V3(0, -1, 0), "R") : S.hit(new V3(S.endX(-1, q.y) - 1, q.y, q.z), new V3(1, 0, 0), "R");
20211
20219
  return h ? h.p.addScaledVector(h.n, 3e-3) : null;