remove old saber-intersection code in wall.js tock

This commit is contained in:
Kevin Ngo
2018-12-02 20:39:57 -08:00
parent 1b965d741f
commit f6c9eb9d48

View File

@@ -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) {