mirror of
https://github.com/SlimeVR/SlimeVR-Server.git
synced 2026-11-24 02:51:20 -08:00
Fix foot tracker orientation (#843)
This commit is contained in:
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
|
||||
|
||||
Reference in new issue
Block a user