Merge pull request #8728 from huffman/feat/unequip-using-grab

Trigger unequip at a more lenient angle and with the secondary trigger
This commit is contained in:
Chris Collins 2016-10-06 10:30:54 -07:00 committed by GitHub
commit 73e29c03ab

View file

@ -1002,6 +1002,9 @@ function MyController(hand) {
this.secondaryPress = function(value) {
_this.rawSecondaryValue = value;
if (value > 0) {
_this.release();
}
};
this.updateSmoothedTrigger = function() {
@ -1849,7 +1852,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);