Skip to content

Commit

Permalink
Fix VMC foot offset (#1020)
Browse files Browse the repository at this point in the history
  • Loading branch information
Erimelowo authored Jul 3, 2024
1 parent 708135f commit a6d0517
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions server/core/src/main/java/dev/slimevr/osc/VRMReader.kt
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,8 @@ class VRMReader(vrmJson: String) {
}

val translationNode = data.nodes[bone.node].translation ?: return Vector3.NULL
if (unityBone != UnityBone.LEFT_FOOT && unityBone != UnityBone.RIGHT_FOOT) {
return Vector3(translationNode[0].toFloat(), translationNode[1].toFloat(), translationNode[2].toFloat())
}
return Vector3(translationNode[0].toFloat(), translationNode[1].toFloat(), -translationNode[2].toFloat())

return Vector3(translationNode[0].toFloat(), translationNode[1].toFloat(), translationNode[2].toFloat())
}
}

Expand Down

0 comments on commit a6d0517

Please sign in to comment.