Skip to content

Commit

Permalink
hijacking the bus lane segment for POC
Browse files Browse the repository at this point in the history
  • Loading branch information
kfarr committed Jan 16, 2024
1 parent d2900a9 commit 80dc9cf
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/aframe-streetmix-parsers.js
Original file line number Diff line number Diff line change
Expand Up @@ -912,17 +912,17 @@ function processSegments (segments, showStriping, length, globalAnimated, showVe
let reusableObjectStencilsParentEl;

reusableObjectStencilsParentEl = createStencilsParentElement({ y: elevationPosY + 0.015 });
cloneMixinAsChildren({ objectMixinId: 'stencils word-bus', parentEl: reusableObjectStencilsParentEl, rotation: '-90 ' + rotationY + ' 0', step: 50, radius: clonedObjectRadius });
cloneMixinAsChildren({ objectMixinId: 'stencils hash-left', parentEl: reusableObjectStencilsParentEl, rotation: '-90 ' + rotationY + ' 0', step: 50, radius: clonedObjectRadius });
// add this stencil stuff to the segment parent
segmentParentEl.append(reusableObjectStencilsParentEl);

reusableObjectStencilsParentEl = createStencilsParentElement({ y: elevationPosY + 0.015, z: 10 });
cloneMixinAsChildren({ objectMixinId: 'stencils word-taxi', parentEl: reusableObjectStencilsParentEl, rotation: '-90 ' + rotationY + ' 0', step: 50, radius: clonedObjectRadius });
cloneMixinAsChildren({ objectMixinId: 'stencils hash-right', parentEl: reusableObjectStencilsParentEl, rotation: '-90 ' + rotationY + ' 0', step: 50, radius: clonedObjectRadius });
// add this stencil stuff to the segment parent
segmentParentEl.append(reusableObjectStencilsParentEl);

reusableObjectStencilsParentEl = createStencilsParentElement({ y: elevationPosY + 0.015, z: 20 });
cloneMixinAsChildren({ objectMixinId: 'stencils word-only', parentEl: reusableObjectStencilsParentEl, rotation: '-90 ' + rotationY + ' 0', step: 50, radius: clonedObjectRadius });
cloneMixinAsChildren({ objectMixinId: 'stencils hash-chevron', parentEl: reusableObjectStencilsParentEl, rotation: '-90 ' + rotationY + ' 0', step: 50, radius: clonedObjectRadius });
// add this stencil stuff to the segment parent
segmentParentEl.append(reusableObjectStencilsParentEl);
} else if (segments[i].type === 'drive-lane') {
Expand Down
3 changes: 3 additions & 0 deletions src/assets.js
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,9 @@ function buildAssetHTML (assetUrl, categories) {
<a-mixin id="perpendicular-stalls" atlas-uvs="totalRows: 4; totalColumns: 8; column: 5; row: 4" scale="5 10 5"></a-mixin>
<a-mixin id="parking-t" atlas-uvs="totalRows: 8; totalColumns: 16; column: 4; row: 7" scale="1.5 2 2"></a-mixin>
<a-mixin id="painted-safety-zone" atlas-uvs="totalRows: 4; totalColumns: 4; column: 4; row: 4" scale="8 8 8"></a-mixin>
<a-mixin id="hash-left" atlas-uvs="totalRows: 4; totalColumns: 8; column: 7; row: 2" scale="3 6 3"></a-mixin>
<a-mixin id="hash-right" atlas-uvs="totalRows: 4; totalColumns: 8; column: 8; row: 2" scale="3 6 3"></a-mixin>
<a-mixin id="hash-chevron" atlas-uvs="totalRows: 4; totalColumns: 4; column: 4; row: 2" scale="3 3 3"></a-mixin>
`,
'vehicles-transit': `
<!-- vehicles-transit -->
Expand Down

0 comments on commit 80dc9cf

Please sign in to comment.