Implemented new pelvis model as average between legs rotation

SlimeVR/SlimeVR-Server#9
This commit is contained in:
Eiren Rain committed 2021-08-04 01:03:58 +03:00
1 parent 2b4ce4b920
commit fa66c94ec3
2 files changed
+8 -2

No files matched your search

+1 -1
View File
@@ -7,7 +7,7 @@ import io.eiren.util.logging.LogManager;
public class Main {
public static String VERSION = "0.0.13";
public static String VERSION = "0.0.13 Test 3";
public static VRServer vrServer;
@@ -194,8 +194,14 @@ public class HumanSekeletonWithLegs extends HumanSkeleonWithWaist {
@Override
public void updateLocalTransforms() {
super.updateLocalTransforms();
// Left Leg
// Waist
leftLegTracker.getRotation(hipBuf);
rightLegTracker.getRotation(kneeBuf);
kneeBuf.slerp(hipBuf, 0.5f);
waistNode.localTransform.setRotation(kneeBuf);
// Left Leg
//leftLegTracker.getRotation(hipBuf);
leftAnkleTracker.getRotation(kneeBuf);
//calculateKneeLimits(hipBuf, kneeBuf, leftLegTracker.getConfidenceLevel(), leftAnkleTracker.getConfidenceLevel());