@adatechnology/game-urban-three 0.3.1 → 0.3.3

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.
@@ -37,6 +37,7 @@ var GameUrbanThree = (() => {
37
37
  });
38
38
 
39
39
  // ../game-contracts/dist/index.js
40
+ var DEFAULT_BLAST_IMPULSE = { bodyArea: 0.7, lift: 0.15, minSpeed: 0.3, tntPerJoule: 0.24 / 2e5 };
40
41
  var DEFAULT_COST_ALLOCATION_BYTES = 1024 * 1024;
41
42
  var DEFERRED_QUEUE_ID = {
42
43
  DESTRUCTION_EVENTS: "destruction.events",
@@ -17476,7 +17477,9 @@ gl_Position = projectionMatrix * mvPosition;
17476
17477
  function fogLamp(c, s, r) {
17477
17478
  onSurf(c.cylinder(r * 1.4, r * 1.4, 0.014, LH, 0, 0, 0), s, 6e-3).castShadow = false;
17478
17479
  onSurf(c.cylinder(r, r, 0.012, REFL, 0, 0, 0), s, 0.012).castShadow = false;
17479
- onSurf(c.sphere(r * 0.45, MT.head, 0, 0, 0, 1, 0.5, 1), s, 0.016).castShadow = false;
17480
+ const bulb = onSurf(c.sphere(r * 0.45, MT.head, 0, 0, 0, 1, 0.5, 1), s, 0.016);
17481
+ bulb.castShadow = false;
17482
+ (c.fogBulbs ?? (c.fogBulbs = [])).push(bulb);
17480
17483
  }
17481
17484
  function crease(c, I, sd, pts, o) {
17482
17485
  o = o || {};
@@ -26478,7 +26481,9 @@ gl_Position = projectionMatrix * mvPosition;
26478
26481
  function fogLamp(c, s, r) {
26479
26482
  onSurf(c.cylinder(r * 1.4, r * 1.4, 0.014, LH, 0, 0, 0), s, 6e-3).castShadow = false;
26480
26483
  onSurf(c.cylinder(r, r, 0.012, REFL, 0, 0, 0), s, 0.012).castShadow = false;
26481
- onSurf(c.sphere(r * 0.45, MT.head, 0, 0, 0, 1, 0.5, 1), s, 0.016).castShadow = false;
26484
+ const bulb = onSurf(c.sphere(r * 0.45, MT.head, 0, 0, 0, 1, 0.5, 1), s, 0.016);
26485
+ bulb.castShadow = false;
26486
+ (c.fogBulbs ?? (c.fogBulbs = [])).push(bulb);
26482
26487
  }
26483
26488
  function crease(c, I, sd, pts, o) {
26484
26489
  o = o || {};
@@ -33687,7 +33692,7 @@ gl_Position = projectionMatrix * mvPosition;
33687
33692
  const x = kit.profX(s.lower, s.bottomY + 0.14, true) + 0.09;
33688
33693
  [1, -1].forEach(function(sd) {
33689
33694
  c.roundBox(0.04, r * 2.6, r * 3.2, 0.015, MT.housing, x, y, sd * z);
33690
- kit.headlight(c, {
33695
+ const lamp = kit.headlight(c, {
33691
33696
  style: "round",
33692
33697
  x: x + 0.01,
33693
33698
  y,
@@ -33699,6 +33704,7 @@ gl_Position = projectionMatrix * mvPosition;
33699
33704
  label: sd > 0 ? trl("labels.right_fog_light") : trl("labels.left_fog_light"),
33700
33705
  reach: 0.5
33701
33706
  });
33707
+ lamp.fog = true;
33702
33708
  });
33703
33709
  }
33704
33710
  function roofBars(c, z, h, r) {