diff --git a/src/aframe-streetmix-parsers.js b/src/aframe-streetmix-parsers.js index e6ebd4695..b2dfc3560 100644 --- a/src/aframe-streetmix-parsers.js +++ b/src/aframe-streetmix-parsers.js @@ -418,7 +418,6 @@ function createDriveLaneElement (variantList, segmentWidthInMeters, streetLength if (!carParams[carType]) { carType = 'car'; } - function createCar (positionZ = undefined, carType = 'car') { const params = carParams[carType]; @@ -957,7 +956,7 @@ function processSegments (segments, showStriping, length, globalAnimated, showVe } else if (segments[i].type === 'drive-lane') { const isAnimated = (variantList[2] === 'animated') || globalAnimated; const count = getRandomIntInclusive(2, 3); - const carStep = 7; + const carStep = 7.3; segmentParentEl.append(createDriveLaneElement(variantList, segmentWidthInMeters, length, isAnimated, showVehicles, count, carStep)); } else if (segments[i].type === 'food-truck') { groundMixinId = 'drive-lane'; diff --git a/src/segments-variants.json b/src/segments-variants.json index d9a32d70e..77719d505 100644 --- a/src/segments-variants.json +++ b/src/segments-variants.json @@ -1,7 +1,7 @@ { "sidewalk": ["empty", "sparse", "normal", "dense"], "bus-lane": ["inbound|colored|typical", "outbound|colored|typical", "inbound|regular|typical", "outbound|regular|typical"], - "drive-lane": ["inbound|car","outbound|car", "outbound|av", "inbound|av", "outbound|pedestrian", "inbound|pedestrian"], + "drive-lane": ["inbound|car","outbound|car", "inbound|truck","outbound|truck", "outbound|av", "inbound|av", "outbound|pedestrian", "inbound|pedestrian"], "light-rail": ["inbound|regular", "inbound|colored", "inbound|grass", "outbound|regular", "outbound|colored", "outbound|grass"], "streetcar": ["inbound|regular", "inbound|colored", "inbound|grass", "outbound|regular", "outbound|colored", "outbound|grass"], "turn-lane": ["inbound|left", "inbound|right", "inbound|left-right-straight", "inbound|shared", "inbound|both", "inbound|left-straight", "inbound|right-straight", "inbound|straight", "outbound|left", "outbound|right", "outbound|left-right-straight", "outbound|shared", "outbound|both", "outbound|left-straight", "outbound|right-straight", "outbound|straight"],