hide laser when menu hidden

This commit is contained in:
Kevin Ngo
2018-10-12 00:43:11 -07:00
parent c7feccf133
commit 7f459109ca

View File

@@ -151,7 +151,7 @@
trail="color: {{ bladeColor }}; hand: {{ hand }}">
<a-entity
id="{{ hand }}Laser"
bind__visible="activeHand === '{{ hand }}'"
bind__visible="menu.active && activeHand === '{{ hand }}'"
cursor-laser="hand: {{ hand }}"
sub-object="from: #cursorLaser; name: beam"
material="color: {{ beamColor }}; shader: flat; transparent: true; opacity: 0.04"></a-entity>
@@ -197,6 +197,7 @@
<a-entity
id="{{ hand }}CursorMesh"
mixin="cursorMesh"
bind__visible="menu.active"
cursor-mesh="cursorEl: #{{ hand }}Hand"
material="color: {{ beamColor }}"
scale="1.3 1.3 1.3"></a-entity>