Add saber trail

This commit is contained in:
Diego Marcos
2018-10-01 11:22:40 -07:00
parent b614fde540
commit 0ccb2e5ef9
2 changed files with 335 additions and 1 deletions

View File

@@ -77,7 +77,8 @@
bind__raycaster="enabled: {{ hand }}RaycasterActive"
bind__saber-controls="bladeEnabled: !menu.active"
haptics="events: mouseenter; dur: 35; force: 0.075"
saber-controls="hand: {{ hand }}">
saber-controls="hand: {{ hand }}"
trail="color: {{ bladeColor }}">
<a-entity
id="{{ hand }}Laser"