@adatechnology/game-vehicles 0.6.19 → 0.6.21
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/dist/index.d.ts +5 -0
- package/dist/index.global.js +1 -1
- package/dist/index.global.js.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +4 -4
package/dist/index.d.ts
CHANGED
|
@@ -2242,6 +2242,11 @@ interface VehicleDestructibleOptions {
|
|
|
2242
2242
|
hitch?: boolean;
|
|
2243
2243
|
/** Do not create or move any mesh (logic only, for servers and tests that need no scene). */
|
|
2244
2244
|
headless?: boolean;
|
|
2245
|
+
/**
|
|
2246
|
+
* Draw a puddle of its own under each leak (default true). A host whose fluid world lays what leaks (the `leak` event carries the part, the fluid, the hole
|
|
2247
|
+
* and the rate) passes false, so the liquid shows once, as much as came out, instead of a drawing of a fixed size on top of it.
|
|
2248
|
+
*/
|
|
2249
|
+
puddles?: boolean;
|
|
2245
2250
|
/** Extra seed for the choices that are random in the real world (which way a broken steering pulls). */
|
|
2246
2251
|
seed?: number;
|
|
2247
2252
|
/** How full the fuel tank starts, 0 to 1 (default 1). A nearly empty tank leaks little and lights easily (see `ignition`). */
|
package/dist/index.global.js
CHANGED
|
@@ -15962,7 +15962,7 @@ var GameVehicles = (() => {
|
|
|
15962
15962
|
if (vis) {
|
|
15963
15963
|
const pos = new V3(d.box.center[0], Math.max(0.2, (c.meta.clearance ?? 0.3) * 0.8), d.box.center[2]);
|
|
15964
15964
|
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 });
|
|
15965
|
-
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);
|
|
15965
|
+
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);
|
|
15966
15966
|
}
|
|
15967
15967
|
}
|
|
15968
15968
|
const out3 = dirToWorld(new V3(dirLocal.x * 0.5, dirLocal.y * 0.5 - 0.6, dirLocal.z * 0.5));
|