diff --git a/src/components/intersection.js b/src/components/intersection.js index eab87c89..566af60c 100644 --- a/src/components/intersection.js +++ b/src/components/intersection.js @@ -81,6 +81,8 @@ AFRAME.registerComponent('intersection', { `repeat: ${repeatCountInter[0]} ${repeatCountInter[1]}` ); sd.setAttribute('data-layer-name', 'Sidewalk • ' + displayName); + sd.setAttribute('data-no-transform', ''); + sd.setAttribute('data-ignore-raycaster', ''); el.appendChild(sd); } @@ -237,6 +239,8 @@ AFRAME.registerComponent('intersection', { stopSignEl.setAttribute('mixin', 'stop_sign'); stopSignEl.classList.add('autocreated'); stopSignEl.setAttribute('data-layer-name', 'Traffic Control • Stop Sign'); + stopSignEl.setAttribute('data-no-transform'); + stopSignEl.setAttribute('data-ignore-raycaster'); return stopSignEl; } @@ -331,6 +335,8 @@ AFRAME.registerComponent('intersection', { trafficSignalEl.setAttribute('position', params[side].position); trafficSignalEl.setAttribute('rotation', params[side].rotation); trafficSignalEl.setAttribute('mixin', `signal_${side}`); + trafficSignalEl.setAttribute('data-no-transform', ''); + trafficSignalEl.setAttribute('data-ignore-raycaster', ''); trafficSignalEl.classList.add('autocreated'); trafficSignalEl.setAttribute( 'data-layer-name', @@ -354,6 +360,8 @@ AFRAME.registerComponent('intersection', { cw1.setAttribute('scale', { y: intersectDepth / 12 }); cw1.setAttribute('mixin', 'markings crosswalk-zebra'); cw1.setAttribute('data-layer-name', 'Crosswalk • West'); + cw1.setAttribute('data-no-transform', ''); + cw1.setAttribute('data-ignore-raycaster', ''); cw1.classList.add('autocreated'); el.appendChild(cw1); } @@ -364,6 +372,8 @@ AFRAME.registerComponent('intersection', { cw2.setAttribute('scale', { y: intersectDepth / 12 }); cw2.setAttribute('mixin', 'markings crosswalk-zebra'); cw2.setAttribute('data-layer-name', 'Crosswalk • East'); + cw2.setAttribute('data-no-transform', ''); + cw2.setAttribute('data-ignore-raycaster', ''); cw2.classList.add('autocreated'); el.appendChild(cw2); } @@ -374,6 +384,8 @@ AFRAME.registerComponent('intersection', { cw3.setAttribute('scale', { y: intersectWidth / 12 }); cw3.setAttribute('mixin', 'markings crosswalk-zebra'); cw3.setAttribute('data-layer-name', 'Crosswalk • North'); + cw3.setAttribute('data-no-transform', ''); + cw3.setAttribute('data-ignore-raycaster', ''); cw3.classList.add('autocreated'); el.appendChild(cw3); } @@ -381,6 +393,8 @@ AFRAME.registerComponent('intersection', { const cw4 = document.createElement('a-entity'); cw4.setAttribute('position', { y: -intersectDepth / 2 + 2, z: 0.11 }); cw4.setAttribute('data-layer-name', 'Crosswalk • South'); + cw4.setAttribute('data-no-transform', ''); + cw4.setAttribute('data-ignore-raycaster', ''); cw4.setAttribute('rotation', { x: 0, y: 0, z: 90 }); cw4.setAttribute('scale', { y: intersectWidth / 12 }); cw4.setAttribute('mixin', 'markings crosswalk-zebra');