@adatechnology/game-vehicles-three 0.9.11 → 0.9.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.
@@ -44246,7 +44246,7 @@ var GameVehiclesThree = (() => {
44246
44246
  if (vis) {
44247
44247
  const pos = new V3(d.box.center[0], Math.max(0.2, (c.meta.clearance ?? 0.3) * 0.8), d.box.center[2]);
44248
44248
  if (fluid === "coolant") kit.addEmitter(c, new V3(d.box.center[0], d.box.center[1] + 0.2, d.box.center[2]), "white", { rate: 5, s: 0.8 });
44249
- if ((c.meta.kind ?? "car") !== "boat") l.pud = I.puddle(c, fluidKind(fluid), pos, fluid === "oil" ? 0.8 : fluid === "brake_fluid" ? 0.4 : 1.1);
44249
+ if ((c.meta.kind ?? "car") !== "boat" && options.puddles !== false) l.pud = I.puddle(c, fluidKind(fluid), pos, fluid === "oil" ? 0.8 : fluid === "brake_fluid" ? 0.4 : 1.1);
44250
44250
  }
44251
44251
  }
44252
44252
  const out3 = dirToWorld(new V3(dirLocal.x * 0.5, dirLocal.y * 0.5 - 0.6, dirLocal.z * 0.5));
@@ -49966,7 +49966,7 @@ var GameVehiclesThree = (() => {
49966
49966
  impl: (root, id) => {
49967
49967
  const r = root;
49968
49968
  const kit = r.userData.kit;
49969
- const d = createVehicleDestructible(kit, r.userData.vehicle, { id, frame: root, name: text.items[itemKey] ?? key, creaseQueue });
49969
+ const d = createVehicleDestructible(kit, r.userData.vehicle, { id, frame: root, name: text.items[itemKey] ?? key, creaseQueue, puddles: false });
49970
49970
  tapEffects(d);
49971
49971
  const colliders = createVehicleColliders(kit.THREE, d, root, { budget: COLLIDER_BUDGET });
49972
49972
  d.colliders = colliders.pieces;