From 9f669748f43bae51201f21faa08b83f89dc578c2 Mon Sep 17 00:00:00 2001 From: Mike Moody Date: Sun, 4 Jun 2017 21:34:56 -0700 Subject: [PATCH] header and cleanup. --- unpublishedScripts/marketplace/laser/laserPointerApp.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/unpublishedScripts/marketplace/laser/laserPointerApp.js b/unpublishedScripts/marketplace/laser/laserPointerApp.js index 1180278103..7c8e606658 100644 --- a/unpublishedScripts/marketplace/laser/laserPointerApp.js +++ b/unpublishedScripts/marketplace/laser/laserPointerApp.js @@ -1,3 +1,7 @@ +// +// Created by Alan-Michael Moody on 6/4/2017 +// + 'use strict'; (function () { @@ -34,7 +38,6 @@ var rayExclusionList = []; - function laser(hand) { var PICK_MAX_DISTANCE = 500; @@ -53,7 +56,6 @@ length: PICK_MAX_DISTANCE }; - var ray = Entities.findRayIntersection(pickRay, true, [], rayExclusionList, true); var avatarRay = AvatarManager.findRayIntersection(pickRay, true, [], rayExclusionList, true); @@ -109,7 +111,6 @@ linePoints: [Vec3.ZERO, {x: 0, y: dist, z: 0}] }; - laserEntities[hand].beam = Entities.addEntity(beam,true); rayExclusionList.push(laserEntities[hand].beam);