@adatechnology/game-vehicles-three 0.14.0 → 0.14.2
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/{chunk-EBA33DWN.js → chunk-JLZI4QVH.js} +5 -7
- package/dist/chunk-JLZI4QVH.js.map +1 -0
- package/dist/index.global.js +18 -5
- package/dist/index.global.js.map +1 -1
- package/dist/index.js +1 -1
- package/dist/testing.js +1 -1
- package/package.json +9 -9
- package/dist/chunk-EBA33DWN.js.map +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// src/test-area/module.ts
|
|
2
|
-
import { DEFERRED_PRIORITY, DEFERRED_QUEUE_ID as DEFERRED_QUEUE_ID2, footprintBlocker } from "@adatechnology/game-contracts";
|
|
2
|
+
import { DEFERRED_PRIORITY, DEFERRED_QUEUE_ID as DEFERRED_QUEUE_ID2, footprintBlocker, footprintSolid } from "@adatechnology/game-contracts";
|
|
3
3
|
import { discardObject3D } from "@adatechnology/game-shapes-three";
|
|
4
4
|
import { buildVehicleItem, crackedGlassMaterial, createCreaseQueue, createVehicleDestructible as createVehicleDestructible2, createVehicleKit } from "@adatechnology/game-vehicles";
|
|
5
5
|
import { isRenderPools } from "@adatechnology/game-render-three";
|
|
@@ -2929,10 +2929,8 @@ function createVehiclesTestModule(options = {}) {
|
|
|
2929
2929
|
}
|
|
2930
2930
|
helpersShown = boxKey();
|
|
2931
2931
|
};
|
|
2932
|
-
const
|
|
2933
|
-
|
|
2934
|
-
() => lane ? { minX: -lane.car.width / 2, maxX: lane.car.width / 2, minZ: -lane.car.length / 2, maxZ: lane.car.length / 2 } : null
|
|
2935
|
-
);
|
|
2932
|
+
const laneFootprint = () => lane ? { minX: -lane.car.width / 2, maxX: lane.car.width / 2, minZ: -lane.car.length / 2, maxZ: lane.car.length / 2 } : null;
|
|
2933
|
+
const laneBlocked = footprintBlocker(() => lane?.group, laneFootprint);
|
|
2936
2934
|
const blocked = (x, z, radius) => {
|
|
2937
2935
|
for (const entry of placed.values()) if (entry.footprint && footprintBlocker(entry.root, entry.footprint)(x, z, radius)) return true;
|
|
2938
2936
|
return laneBlocked(x, z, radius);
|
|
@@ -3216,7 +3214,7 @@ function createVehiclesTestModule(options = {}) {
|
|
|
3216
3214
|
three = lent.THREE;
|
|
3217
3215
|
const stopChange = lent.bench?.onChange(onChange);
|
|
3218
3216
|
const stopFrame = lent.onFrame(frame);
|
|
3219
|
-
const stopBlocker = lent.addBlocker?.(blocked);
|
|
3217
|
+
const stopBlocker = lent.addBlocker?.(blocked, () => lane ? footprintSolid(lane.group, laneFootprint, lane.car.height) : []);
|
|
3220
3218
|
const stopCrease = lent.defer?.(creaseQueue.deferredQueue(), DEFERRED_PRIORITY[DEFERRED_QUEUE_ID2.VEHICLE_CREASE]);
|
|
3221
3219
|
const stopLodBatch = lent.defer?.(lodQueue.deferredQueue(), DEFERRED_PRIORITY[DEFERRED_QUEUE_ID2.VEHICLE_LOD_BATCH]);
|
|
3222
3220
|
if (isRenderPools(lent.pools)) lent.pools.materials.register("vehicles.cracked-glass", () => crackedGlassMaterial(three, new three.DataTexture(new Uint8Array(4), 1, 1)));
|
|
@@ -5365,4 +5363,4 @@ export {
|
|
|
5365
5363
|
createProvingModule,
|
|
5366
5364
|
loadProvingModule
|
|
5367
5365
|
};
|
|
5368
|
-
//# sourceMappingURL=chunk-
|
|
5366
|
+
//# sourceMappingURL=chunk-JLZI4QVH.js.map
|