diff --git a/src/components/saber-controls.js b/src/components/saber-controls.js index 72cae35..69b480f 100644 --- a/src/components/saber-controls.js +++ b/src/components/saber-controls.js @@ -18,6 +18,7 @@ AFRAME.registerComponent('saber-controls', { this.controllerType = ''; this.bladeEl = el.querySelector('.blade'); this.bladeTipPosition = new THREE.Vector3(); + this.bladeTipPreviousPosition = new THREE.Vector3(); this.swinging = false; this.strokeCount = 0;