laser on tablet update

This commit is contained in:
druiz17 2017-09-08 13:30:30 -07:00
parent dbb91e5953
commit e33012e522
2 changed files with 3 additions and 2 deletions

View File

@ -433,7 +433,8 @@ Script.include("/~/system/libraries/controllers.js");
var nearGrabModule = getEnabledModuleByName(nearGrabName);
var status = nearGrabModule ? nearGrabModule.isReady(controllerData) : makeRunningValues(false, [], []);
var offOverlay = (intersection.type !== RayPick.INTERSECTED_OVERLAY);
return offOverlay || status.active;
var triggerOff = (controllerData.triggerValues[this.hand] === 0);
return offOverlay || status.active || triggerOff;
};
this.exitModule = function() {

View File

@ -20,7 +20,7 @@ Script.include("/~/system/libraries/controllers.js");
var HAPTIC_STYLUS_STRENGTH = 1.0;
var HAPTIC_STYLUS_DURATION = 20.0;
var WEB_DISPLAY_STYLUS_DISTANCE = 0.5;
var WEB_DISPLAY_STYLUS_DISTANCE = 0.2;
var WEB_STYLUS_LENGTH = 0.2;
var WEB_TOUCH_Y_OFFSET = 0.05; // how far forward (or back with a negative number) to slide stylus in hand