diff --git a/src/components/saber-controls.js b/src/components/saber-controls.js index f30c6db..c2263dc 100644 --- a/src/components/saber-controls.js +++ b/src/components/saber-controls.js @@ -62,9 +62,9 @@ AFRAME.registerComponent('saber-controls', { if (distance > data.strokeMinSpeed) { if (!this.startSwinging) { this.startSwinging = true; } this.strokeAngle += ((Math.asin(((distance / 1000000) / 2.0) / 0.9)) / (2 * Math.PI)) * 360; - if (this.strokeAngle > data.strokeMinAngle) { this.swinging = true; } + if (this.strokeAngle > data.strokeMinAngle) { this.swinging = true; } } else { - if (this.swinging) { console.log("ANGLE " + this.strokeAngle); } + // if (this.swinging) { console.log("ANGLE " + this.strokeAngle); } this.swinging = false; this.startSwinging = false; this.strokeAngle = 0; diff --git a/src/templates/gameMenu.html b/src/templates/gameMenu.html index f826c31..65080ac 100644 --- a/src/templates/gameMenu.html +++ b/src/templates/gameMenu.html @@ -14,7 +14,6 @@ -