mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 18:23:54 +02:00
Fix laserPointer.js for Hydras
Leap Motion working already.
This commit is contained in:
parent
566b27156c
commit
46cbc349d1
1 changed files with 2 additions and 1 deletions
|
@ -23,7 +23,8 @@ var laserPointer = (function () {
|
|||
|
||||
function isHandPointing(hand) {
|
||||
var MINIMUM_TRIGGER_PULL = 0.9;
|
||||
return Controller.getTriggerValue(hand) > MINIMUM_TRIGGER_PULL;
|
||||
var controller = hand === 0 ? Controller.Standard.LT : Controller.Standard.RT;
|
||||
return Controller.getValue(controller) > MINIMUM_TRIGGER_PULL;
|
||||
}
|
||||
|
||||
function isFingerPointing(hand) {
|
||||
|
|
Loading…
Reference in a new issue