mirror of
https://github.com/overte-org/overte.git
synced 2025-08-08 09:57:26 +02:00
JSLint
This commit is contained in:
parent
46cbc349d1
commit
6e076985f2
2 changed files with 6 additions and 5 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
@ -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 ...
|
||||
|
|
Loading…
Reference in a new issue