This commit is contained in:
David Rowe 2015-11-25 16:46:53 +13:00
parent 46cbc349d1
commit 6e076985f2
2 changed files with 6 additions and 5 deletions

View file

@ -22,8 +22,9 @@ var laserPointer = (function () {
];
function isHandPointing(hand) {
var MINIMUM_TRIGGER_PULL = 0.9;
var controller = hand === 0 ? Controller.Standard.LT : Controller.Standard.RT;
var MINIMUM_TRIGGER_PULL = 0.9,
controller;
controller = hand === 0 ? Controller.Standard.LT : Controller.Standard.RT;
return Controller.getValue(controller) > MINIMUM_TRIGGER_PULL;
}

View file

@ -384,7 +384,7 @@ var leapHands = (function () {
x: -handRotation.x,
y: -handRotation.z,
z: -handRotation.y,
w: handRotation.w,
w: handRotation.w
};
// Hand rotation in avatar coordinates ...
@ -414,7 +414,7 @@ var leapHands = (function () {
x: -handRotation.x,
y: -handRotation.z,
z: -handRotation.y,
w: handRotation.w,
w: handRotation.w
};
// Hand rotation in avatar coordinates ...