Skip to content

Commit

Permalink
intersection children not clickable
Browse files Browse the repository at this point in the history
  • Loading branch information
kfarr committed Dec 9, 2024
1 parent 8de7d73 commit 2f4f66c
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/components/intersection.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ AFRAME.registerComponent('intersection', {
);
sd.setAttribute('data-layer-name', 'Sidewalk • ' + displayName);
sd.setAttribute('data-no-transform', '');
sd.setAttribute('data-ignore-raycaster', '');
el.appendChild(sd);
}

Expand Down Expand Up @@ -239,6 +240,7 @@ AFRAME.registerComponent('intersection', {
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;
}

Expand Down Expand Up @@ -334,6 +336,7 @@ AFRAME.registerComponent('intersection', {
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',
Expand All @@ -358,6 +361,7 @@ AFRAME.registerComponent('intersection', {
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);
}
Expand All @@ -369,6 +373,7 @@ AFRAME.registerComponent('intersection', {
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);
}
Expand All @@ -380,6 +385,7 @@ AFRAME.registerComponent('intersection', {
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);
}
Expand All @@ -388,6 +394,7 @@ AFRAME.registerComponent('intersection', {
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');
Expand Down

0 comments on commit 2f4f66c

Please sign in to comment.