From e9dd165b1dc89d91b0d2f585604f60559f2d4756 Mon Sep 17 00:00:00 2001 From: Seth Alves Date: Tue, 29 Sep 2015 14:00:22 -0700 Subject: [PATCH] try calling updateMotionBehaviorFromMenu --- examples/controllers/handControllerGrab.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/examples/controllers/handControllerGrab.js b/examples/controllers/handControllerGrab.js index 4339c92f28..d6603a7887 100644 --- a/examples/controllers/handControllerGrab.js +++ b/examples/controllers/handControllerGrab.js @@ -92,7 +92,7 @@ function MyController(hand, triggerAction) { this.actionID = null; // action this script created... this.grabbedEntity = null; // on this entity. this.grabbedVelocity = ZERO_VEC; // rolling average of held object's velocity - this.state = 0; + this.state = STATE_SEARCHING; this.pointer = null; // entity-id of line object this.triggerValue = 0; // rolling average of trigger value var _this = this; @@ -247,6 +247,7 @@ function MyController(hand, triggerAction) { this.previousAvCollision = Menu.isOptionChecked("Enable avatar collisions"); Menu.setIsOptionChecked("Enable avatar collisions", false); + print("avatar collisions -->" + this.previousAvCollision); MyAvatar.updateMotionBehaviorFromMenu(); @@ -332,6 +333,7 @@ function MyController(hand, triggerAction) { this.previousAvCollision = Menu.isOptionChecked("Enable avatar collisions"); Menu.setIsOptionChecked("Enable avatar collisions", false); + print("avatar collisions -->" + this.previousAvCollision); MyAvatar.updateMotionBehaviorFromMenu(); if (!this.triggerSmoothedSqueezed()) { @@ -504,6 +506,7 @@ function MyController(hand, triggerAction) { this.release = function() { Menu.setIsOptionChecked("Enable avatar collisions", this.previousAvCollision); + print("avatar collisions -->" + this.previousAvCollision); MyAvatar.updateMotionBehaviorFromMenu(); this.lineOff();