mirror of
https://github.com/overte-org/overte.git
synced 2025-08-06 18:50:00 +02:00
Fix order of wrist and hand joints in Leapmotion controller
This commit is contained in:
parent
3323ac11ff
commit
a50c3c1696
2 changed files with 3 additions and 3 deletions
|
@ -353,7 +353,7 @@ var leapHands = (function () {
|
||||||
handOffset.x = -handOffset.x;
|
handOffset.x = -handOffset.x;
|
||||||
|
|
||||||
// Hand rotation in camera coordinates ...
|
// Hand rotation in camera coordinates ...
|
||||||
handRotation = wrists[h].controller.getAbsRotation();
|
handRotation = hands[h].controller.getAbsRotation();
|
||||||
handRotation = {
|
handRotation = {
|
||||||
x: handRotation.z,
|
x: handRotation.z,
|
||||||
y: handRotation.y,
|
y: handRotation.y,
|
||||||
|
@ -386,7 +386,7 @@ var leapHands = (function () {
|
||||||
z: hands[h].zeroPosition.z - handOffset.z
|
z: hands[h].zeroPosition.z - handOffset.z
|
||||||
};
|
};
|
||||||
|
|
||||||
handRotation = wrists[h].controller.getAbsRotation();
|
handRotation = hands[h].controller.getAbsRotation();
|
||||||
handRotation = {
|
handRotation = {
|
||||||
x: handRotation.z,
|
x: handRotation.z,
|
||||||
y: handRotation.y,
|
y: handRotation.y,
|
||||||
|
|
|
@ -70,8 +70,8 @@ Leapmotion::Leapmotion() :
|
||||||
|
|
||||||
std::vector< Semantic > rootBones;
|
std::vector< Semantic > rootBones;
|
||||||
rootBones.push_back("elbow");
|
rootBones.push_back("elbow");
|
||||||
rootBones.push_back("hand");
|
|
||||||
rootBones.push_back("wrist");
|
rootBones.push_back("wrist");
|
||||||
|
rootBones.push_back("hand");
|
||||||
|
|
||||||
std::vector< Semantic > fingers;
|
std::vector< Semantic > fingers;
|
||||||
fingers.push_back("thumb");
|
fingers.push_back("thumb");
|
||||||
|
|
Loading…
Reference in a new issue