diff --git a/src/components/duck.js b/src/components/duck.js index 0b9a1c4721b51b8da2ff488fcd188c9fb9f87069..69ac41313db5db4c495a0feecf5f59c3d0daaff4 100644 --- a/src/components/duck.js +++ b/src/components/duck.js @@ -8,8 +8,8 @@ AFRAME.registerComponent("duck", { init: function() { this.system = this.el.sceneEl.systems.physics; this.hasBody = false; - this.position = new CANNON.Vec3(); - this.force = new CANNON.Vec3(0, this.data.initialForce, 0); + this.position = new THREE.Vector3(); + this.force = new THREE.Vector3(0, this.data.initialForce, 0); this.initialScale = this.el.object3D.scale.x; this.maxScale = this.data.maxScale * this.initialScale; diff --git a/src/components/haptic-feedback.js b/src/components/haptic-feedback.js index d7db51d5e8c8f7235d89510d1245dfb5a9587d1a..9a0a2337de1ef895bdbd3bb699259f3063187cf2 100644 --- a/src/components/haptic-feedback.js +++ b/src/components/haptic-feedback.js @@ -45,7 +45,6 @@ AFRAME.registerComponent("haptic-feedback", { handlePulse: function(event) { const { intensity } = event.detail; - let strength; if (strengthForIntensity[intensity]) { this.pulse(strengthForIntensity[intensity]);