Fix updating waist doesn't move tracker right away

This commit is contained in:
Eiren Rain
2021-07-06 22:59:15 +03:00
parent 43bc140d42
commit b790cfbd7d

View File

@@ -119,6 +119,7 @@ public class HumanSkeleonWithWaist extends HumanSkeleton {
waistDistance = newLength;
server.config.setProperty("body.waistDistance", waistDistance);
waistNode.localTransform.setTranslation(0, -(waistDistance - chestDistance), 0);
trackerWaistNode.localTransform.setTranslation(0, -(waistDistance + trackerWaistDistance - chestDistance), 0);
break;
case "Chest":
chestDistance = newLength;