Fix foot tracker orientation (#843)

This commit is contained in:
Erimel authored and GitHub committed 2023-09-14 19:46:47 +03:00
1 parent 55d6a01a4c
commit 185dc8d674
1 file changed
+2 -6
@@ -877,9 +877,7 @@ 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
@@ -887,9 +885,7 @@ class HumanSkeleton(
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