fixed pause state bug, minor tweaks

This commit is contained in:
Diego F. Goberna
2018-10-04 02:21:16 +02:00
parent ea9874157c
commit 7fe0c06d57
6 changed files with 10 additions and 12 deletions

View File

@@ -49,6 +49,8 @@ AFRAME.registerComponent('beat', {
this.missElLeft = document.querySelector('#missLeft');
this.missElRight = document.querySelector('#missRight');
this.beams = document.getElementById('beams').components['beams'];
this.initBlock();
this.initColliders();
this.initFragments();
@@ -320,6 +322,7 @@ AFRAME.registerComponent('beat', {
this.destroyed = false;
this.el.object3D.visible = true;
this.blockEl.object3D.visible = true;
this.beams.newBeam(this.data.color, this.el.object3D.position);
},
initCuttingClippingPlanes: function () {