From 7767dfb2138f99ba30e5ae36e47542dcf4e048ec Mon Sep 17 00:00:00 2001 From: "James B. Pollack" Date: Sat, 30 Jan 2016 19:59:56 -0800 Subject: [PATCH 1/2] remove high freq messages --- examples/controllers/handControllerGrab.js | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/examples/controllers/handControllerGrab.js b/examples/controllers/handControllerGrab.js index d6fd4bce27..33c67d40e4 100644 --- a/examples/controllers/handControllerGrab.js +++ b/examples/controllers/handControllerGrab.js @@ -817,8 +817,6 @@ function MyController(hand) { direction: pickRay.direction }; - Messages.sendMessage('Hifi-Light-Overlay-Ray-Check', JSON.stringify(pickRayBacked)); - var intersection; if (USE_BLACKLIST === true && blacklist.length !== 0) { @@ -1341,12 +1339,6 @@ function MyController(hand) { Entities.callEntityMethod(this.grabbedEntity, "continueEquip"); } - //// jbp::: SEND UPDATE MESSAGE TO WEARABLES MANAGER - Messages.sendMessage('Hifi-Wearables-Manager', JSON.stringify({ - action: 'update', - grabbedEntity: this.grabbedEntity - })) - if (this.actionID && this.actionTimeout - now < ACTION_TTL_REFRESH * MSEC_PER_SEC) { // if less than a 5 seconds left, refresh the actions ttl var success = Entities.updateAction(this.grabbedEntity, this.actionID, { @@ -1615,8 +1607,6 @@ function MyController(hand) { this.actionID = null; this.setState(STATE_OFF); - //// jbp::: SEND RELEASE MESSAGE TO WEARABLES MANAGER - Messages.sendMessage('Hifi-Wearables-Manager', JSON.stringify({ action: 'checkIfWearable', grabbedEntity: this.grabbedEntity From 499e6d980471dfa6111e6e2de8f8aaf36d74b2e7 Mon Sep 17 00:00:00 2001 From: "James B. Pollack" Date: Sat, 30 Jan 2016 20:04:51 -0800 Subject: [PATCH 2/2] update readme --- examples/light_modifier/README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/examples/light_modifier/README.md b/examples/light_modifier/README.md index f23f22148a..f23bd25dda 100644 --- a/examples/light_modifier/README.md +++ b/examples/light_modifier/README.md @@ -1,3 +1,5 @@ +*Temporarily Deprecated - needs a better way to know when 'grab beams' intersect with 'light overlays'. Sending messages containing the ray from the hand grab script to the overlay intersection test doesn't seem to be sustainable. * + This PR demonstrates one way in-world editing of objects might work. Running this script will show light overlay icons in-world. Enter edit mode by running your distance beam through a light overlay. Exit using the red X.