mirror of
https://github.com/SlimeVR/SlimeVR-Server.git
synced 2026-12-02 23:02:37 -08:00
/ 2 * 4 = *2
This commit is contained in:
1 parent
0cd65c825c
commit
2ac6208302
1 file changed
+1
-1
@@ -427,7 +427,7 @@ public class SimpleSkeleton extends HumanSkeleton implements SkeletonConfigCallb
|
||||
}
|
||||
}
|
||||
else if(hmdTracker != null){ // If no spine tracker, allign spine yaw with HMD
|
||||
rotBuf1 = new Quaternion().fromAngles(0, (FastMath.atan2(rotBuf1.getY(), rotBuf1.getW())/2f)*4, 0);
|
||||
rotBuf1 = new Quaternion().fromAngles(0, FastMath.atan2(rotBuf1.getY(), rotBuf1.getW())*2f, 0);
|
||||
neckNode.localTransform.setRotation(rotBuf1);
|
||||
chestNode.localTransform.setRotation(rotBuf1);
|
||||
trackerChestNode.localTransform.setRotation(rotBuf1);
|
||||
|
||||
Reference in new issue
Block a user