Skip to content

Commit

Permalink
use standard and cable car rail gauges
Browse files Browse the repository at this point in the history
  • Loading branch information
kfarr committed Sep 27, 2023
1 parent c85691f commit b371f4a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/aframe-streetmix-parsers.js
Original file line number Diff line number Diff line change
Expand Up @@ -175,8 +175,8 @@ function createTracksParentElement (positionX, length, objectMixinId) {
placedObjectEl.setAttribute('position', positionX + ' -0.2 0'); // position="1.043 0.100 -3.463"
// add rails
const railsWidth = {
"tram": 0.93,
"trolley": 0.5
"tram": 0.7175, // standard gauge 1,435 mm
"trolley": 0.5335 // sf cable car rail gauge 1,067 mm
}
const railsPosX = railsWidth[objectMixinId];
placedObjectEl.append(createRailsElement(length, railsPosX));
Expand Down

0 comments on commit b371f4a

Please sign in to comment.