Skip to content

Commit

Permalink
Merge branch 'creator-usability-epic-v1' into new-street-parser-struc…
Browse files Browse the repository at this point in the history
…ture
  • Loading branch information
kfarr authored Nov 6, 2023
2 parents 3b3e9e8 + d5103e7 commit 013584c
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
10 changes: 9 additions & 1 deletion src/aframe-streetmix-parsers.js
Original file line number Diff line number Diff line change
Expand Up @@ -388,6 +388,7 @@ function createDriveLaneElement (variantList, segmentWidthInMeters, streetLength
let [lineVariant, direction, carType] = variantList;
if (variantList.length === 2) {
carType = direction;
direction = lineVariant;
}

const rotationVariants = {
Expand Down Expand Up @@ -438,6 +439,13 @@ function createDriveLaneElement (variantList, segmentWidthInMeters, streetLength
wheelDiameter: 1.05,
length: 6.95,
width: 2.5
},
// autonomous vehicle
av: {
mixin: 'self-driving-cruise-car-rig',
wheelDiameter: 0.76,
length: 5.17,
width: 2
}
};

Expand Down Expand Up @@ -489,7 +497,7 @@ function createDriveLaneElement (variantList, segmentWidthInMeters, streetLength
}
});
} else {
createCar();
createCar(undefined, carType);
}

return driveLaneParentEl;
Expand Down
1 change: 1 addition & 0 deletions src/assets.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ function buildAssetHTML (assetUrl, categories) {
<a-mixin shadow id="box-truck-rig" gltf-model="url(${assetUrl}sets/vehicles-rig/gltf-exports/draco/isuzu-truck-rig.glb)"></a-mixin>
<a-mixin shadow id="food-trailer-rig" gltf-model="url(${assetUrl}sets/vehicles-rig/gltf-exports/draco/food-trailer-rig.glb)"></a-mixin>
<a-mixin shadow id="fire-truck-rig" gltf-model="url(${assetUrl}sets/vehicles-rig/gltf-exports/draco/fire-truck-pumper-rig.glb)"></a-mixin>
<a-mixin id="self-driving-cruise-car-rig" gltf-model="url(${assetUrl}sets/vehicles-rig/gltf-exports/draco/self-driving-cruise-car-rig.glb)"></a-mixin>
`,
buildings: `
<!-- blocks -->
Expand Down

0 comments on commit 013584c

Please sign in to comment.