From f6c9eb9d4858037ff1c6b904238404c0553a0864 Mon Sep 17 00:00:00 2001 From: Kevin Ngo Date: Sun, 2 Dec 2018 20:39:57 -0800 Subject: [PATCH] remove old saber-intersection code in wall.js tock --- src/components/wall.js | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/src/components/wall.js b/src/components/wall.js index 83259c6..1722a84 100644 --- a/src/components/wall.js +++ b/src/components/wall.js @@ -52,17 +52,6 @@ AFRAME.registerComponent('wall', { tock: function (time, timeDelta) { const data = this.data; const position = this.el.object3D.position; - if (this.intersecting) { - var int; - if (this.saberHit['rightHand'].active) { - int = this.saberHit['rightHand'].raycaster.getIntersection(this.el); - if (int) { this.material.uniforms.hitRight.value = int.point; } - } - if (this.saberHit['leftHand'].active) { - int = this.saberHit['leftHand'].raycaster.getIntersection(this.el); - if (int) { this.material.uniforms.hitLeft.value = int.point; } - } - } // Move. if (position.z < data.anticipationPosition) {