From 289cd6ba2b25954dcebc91fbde4a4c266bcf7a82 Mon Sep 17 00:00:00 2001 From: Ryan Huffman Date: Fri, 9 Sep 2016 15:25:18 -0700 Subject: [PATCH 1/2] Adjust hand controller unequip rotation threshold --- scripts/system/controllers/handControllerGrab.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/system/controllers/handControllerGrab.js b/scripts/system/controllers/handControllerGrab.js index 05edcdad03..892ace04eb 100644 --- a/scripts/system/controllers/handControllerGrab.js +++ b/scripts/system/controllers/handControllerGrab.js @@ -1849,7 +1849,7 @@ function MyController(hand) { z: 0 }; - var DROP_ANGLE = Math.PI / 6; + var DROP_ANGLE = Math.PI / 3; var HYSTERESIS_FACTOR = 1.1; var ROTATION_ENTER_THRESHOLD = Math.cos(DROP_ANGLE); var ROTATION_EXIT_THRESHOLD = Math.cos(DROP_ANGLE * HYSTERESIS_FACTOR); From 8343cfd68798b086bd217aaa29f74473bd9de50f Mon Sep 17 00:00:00 2001 From: Ryan Huffman Date: Fri, 9 Sep 2016 15:53:18 -0700 Subject: [PATCH 2/2] Add grip to unequip --- scripts/system/controllers/handControllerGrab.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts/system/controllers/handControllerGrab.js b/scripts/system/controllers/handControllerGrab.js index 892ace04eb..2d3aff44fc 100644 --- a/scripts/system/controllers/handControllerGrab.js +++ b/scripts/system/controllers/handControllerGrab.js @@ -1002,6 +1002,9 @@ function MyController(hand) { this.secondaryPress = function(value) { _this.rawSecondaryValue = value; + if (value > 0) { + _this.release(); + } }; this.updateSmoothedTrigger = function() {