mirror of
https://github.com/SlimeVR/SlimeVR-Server.git
synced 2026-11-20 09:01:20 -08:00
Implemented new pelvis model as average between legs rotation
SlimeVR/SlimeVR-Server#9
This commit is contained in:
1 parent
2b4ce4b920
commit
fa66c94ec3
2 files changed
+8
-2
No files matched your search
@@ -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());
|
||||
|
||||
Reference in new issue
Block a user