Skip to content

Commit

Permalink
Fix updating waist doesn't move tracker right away
Browse files Browse the repository at this point in the history
  • Loading branch information
Eirenliel committed Jul 6, 2021
1 parent 43bc140 commit b790cfb
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@ public void setSkeletonConfig(String joint, float newLength) {
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;
Expand Down

0 comments on commit b790cfb

Please sign in to comment.