improved animations in miss&wrong beats

This commit is contained in:
Diego F. Goberna
2018-10-04 00:04:50 +02:00
parent 8509555a9c
commit dc97bdb1aa
2 changed files with 8 additions and 9 deletions

View File

@@ -193,10 +193,9 @@ AFRAME.registerComponent('beat', {
var wrongEl = hand === 'left' ? this.wrongElLeft : this.wrongElRight;
if (!wrongEl) { return; }
wrongEl.object3D.position.copy(this.el.object3D.position);
wrongEl.object3D.position.y += 0.5;
wrongEl.object3D.position.y += 0.2;
wrongEl.object3D.position.z -= 0.5;
wrongEl.object3D.visible = true;
wrongEl.object3D.material.opacity = 1;
wrongEl.emit('beatwrong');
this.destroyed = true;
},