mirror of
https://github.com/overte-org/overte.git
synced 2025-08-07 17:50:42 +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) {
|
function isHandPointing(hand) {
|
||||||
var MINIMUM_TRIGGER_PULL = 0.9;
|
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) {
|
function isFingerPointing(hand) {
|
||||||
|
|
Loading…
Reference in a new issue