fixed near grab issue

This commit is contained in:
Dante Ruiz 2016-12-01 18:02:07 +00:00
parent dc7bb5b083
commit 1b24d373d2

View file

@ -1009,7 +1009,10 @@ function MyController(hand) {
this.secondaryPress = function(value) {
_this.rawSecondaryValue = value;
if (value > 0) {
// The value to check if we will allow the release function to be called
var allowReleaseValue = 0.1;
if (value > 0 && _this.rawTriggerValue <= allowReleaseValue) {
_this.release();
}
};