Merge pull request #6995 from imgntn/removeHighFreqMsg

Remove high frequency messages from grab script
This commit is contained in:
Seth Alves 2016-02-01 11:44:43 -08:00
commit 9dc6f08ae2
2 changed files with 2 additions and 10 deletions

View file

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

View file

@ -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.