refactor saber-particles, attach the component to sabers. update particle position on intersection move. saber collide particles

This commit is contained in:
Kevin Ngo
2018-12-02 17:58:24 -08:00
parent 58d24a75e8
commit e79e7bd781
9 changed files with 98 additions and 74 deletions

View File

@@ -126,10 +126,11 @@
<a-entity
id="floor"
data-saber-particles
geometry="primitive: plane; width: 3; height: 3"
material="shader: floorShader; src: #floorImg; normalMap: #floorNormalsImg; envMap: #floorEnvImg"
rotation="-90 0 0"
bind__saber-intersection="active: isPlaying"
raycastable-game
stepback></a-entity>
<a-entity