From b45181ea9210dcad5ba9e4295aae833b0ae4d4e5 Mon Sep 17 00:00:00 2001 From: Seth Alves Date: Wed, 7 Sep 2016 13:32:26 -0700 Subject: [PATCH] don't back up pick-ray from hand --- scripts/system/controllers/handControllerGrab.js | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/scripts/system/controllers/handControllerGrab.js b/scripts/system/controllers/handControllerGrab.js index cc43a57a68..6f34ec4294 100644 --- a/scripts/system/controllers/handControllerGrab.js +++ b/scripts/system/controllers/handControllerGrab.js @@ -1202,16 +1202,12 @@ function MyController(hand) { var directionNormalized = Vec3.normalize(pickRay.direction); var directionBacked = Vec3.multiply(directionNormalized, PICK_BACKOFF_DISTANCE); - var pickRayBacked = { - origin: Vec3.subtract(pickRay.origin, directionBacked), - direction: pickRay.direction - }; var intersection; if (USE_BLACKLIST === true && blacklist.length !== 0) { - intersection = findRayIntersection(pickRayBacked, true, [], blacklist); + intersection = findRayIntersection(pickRay, true, [], blacklist); } else { - intersection = findRayIntersection(pickRayBacked, true); + intersection = findRayIntersection(pickRay, true); } if (intersection.intersects) {