Skip to content

Commit

Permalink
Merge pull request #392 from 3DStreet/self-driving-segment
Browse files Browse the repository at this point in the history
add self-driving car variant
  • Loading branch information
kfarr authored Nov 6, 2023
2 parents 243ba8e + 3b1f82d commit d5103e7
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
9 changes: 8 additions & 1 deletion src/aframe-streetmix-parsers.js
Original file line number Diff line number Diff line change
Expand Up @@ -442,6 +442,13 @@ function createDriveLaneElement (variantList, positionX, segmentWidthInMeters, s
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 @@ -493,7 +500,7 @@ function createDriveLaneElement (variantList, positionX, segmentWidthInMeters, s
}
});
} 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 d5103e7

Please sign in to comment.