add blade tip previous pos vector

This commit is contained in:
Kevin Ngo
2018-10-15 23:48:23 -07:00
parent ac3c6503b3
commit d69e23391d

View File

@@ -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;