Skip to content

Commit

Permalink
Fix foot tracker orientation (#843)
Browse files Browse the repository at this point in the history
  • Loading branch information
Erimelowo committed Sep 14, 2023
1 parent 55d6a01 commit 185dc8d
Showing 1 changed file with 2 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -877,19 +877,15 @@ class HumanSkeleton(
computedLeftKneeTracker!!.dataTick()

computedLeftFootTracker!!.position = trackerLeftFootNode.worldTransform.translation
var rot = trackerLeftFootNode.worldTransform.rotation
if (hasLeftFootTracker) rot = rot.times(FORWARD_QUATERNION)
computedLeftFootTracker!!.setRotation(rot)
computedLeftFootTracker!!.setRotation(trackerLeftFootNode.worldTransform.rotation)
computedLeftFootTracker!!.dataTick()

computedRightKneeTracker!!.position = trackerRightKneeNode.worldTransform.translation
computedRightKneeTracker!!.setRotation(trackerRightKneeNode.worldTransform.rotation)
computedRightKneeTracker!!.dataTick()

computedRightFootTracker!!.position = trackerRightFootNode.worldTransform.translation
rot = trackerRightFootNode.worldTransform.rotation
if (hasRightFootTracker) rot = rot.times(FORWARD_QUATERNION)
computedRightFootTracker!!.setRotation(rot)
computedRightFootTracker!!.setRotation(trackerRightFootNode.worldTransform.rotation)
computedRightFootTracker!!.dataTick()

computedLeftElbowTracker!!.position = trackerLeftElbowNode.worldTransform.translation
Expand Down

0 comments on commit 185dc8d

Please sign in to comment.