/ 2 * 4 = *2

This commit is contained in:
Louka committed 2022-03-23 18:05:58 -04:00
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);