mirror of
https://github.com/SlimeVR/SlimeVR-Server.git
synced 2026-11-30 22:02:45 -08:00
Fix skeleton with legs resolution
Fix trackers reset after the first time
This commit is contained in:
1 parent
edd3dbd123
commit
dda1a43a1c
4 files changed
+20
-6
No files matched your search
@@ -45,10 +45,10 @@ public class HumanSekeletonWithLegs extends HumanSkeleonWithWaist {
|
||||
computedRightAnkleTracker = rat;
|
||||
|
||||
waistNode.attachChild(leftLegNode);
|
||||
leftLegNode.localTransform.setTranslation(-hipsWidth / 2, 0, 0);
|
||||
leftLegNode.localTransform.setTranslation(hipsWidth / 2, 0, 0);
|
||||
|
||||
waistNode.attachChild(rightLegNode);
|
||||
rightLegNode.localTransform.setTranslation(hipsWidth / 2, 0, 0);
|
||||
rightLegNode.localTransform.setTranslation(-hipsWidth / 2, 0, 0);
|
||||
|
||||
leftLegNode.attachChild(leftKneeNode);
|
||||
leftKneeNode.localTransform.setTranslation(0, -kneeLength, 0);
|
||||
@@ -74,9 +74,11 @@ public class HumanSekeletonWithLegs extends HumanSkeleonWithWaist {
|
||||
|
||||
leftAnkleTracker.getRotation(qBuf);
|
||||
leftKneeNode.localTransform.setRotation(qBuf);
|
||||
leftAnkleNode.localTransform.setRotation(qBuf);
|
||||
|
||||
rightAnkleTracker.getRotation(qBuf);
|
||||
rightKneeNode.localTransform.setRotation(qBuf);
|
||||
rightAnkleNode.localTransform.setRotation(qBuf);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in new issue
Block a user