mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 04:44:11 +02:00
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:
commit
73e29c03ab
1 changed files with 4 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue