Skip to content

Commit

Permalink
Add fix for forearm roll.
Browse files Browse the repository at this point in the history
  • Loading branch information
Malcolmnixon committed Oct 6, 2024
1 parent 9b08e00 commit 0da6912
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions VERSIONS.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
# 1.1.0
- Fix forearm roll

# 1.0.0
- Initial Revision
4 changes: 2 additions & 2 deletions addons/godot_rokoko_tracker/rokoko_body.gd
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ const JOINT_MAPPING : Array[Dictionary] = [
{
body = XRBodyTracker.JOINT_LEFT_LOWER_ARM,
native = Joint.LEFT_LOWER_ARM,
roll = Quaternion(1.0, 0.0, 0.0, 0.0)
roll = Quaternion(-0.7071068, 0.0, 0.7071068, 0.0)
},
{
body = XRBodyTracker.JOINT_LEFT_HAND,
Expand All @@ -322,7 +322,7 @@ const JOINT_MAPPING : Array[Dictionary] = [
{
body = XRBodyTracker.JOINT_RIGHT_LOWER_ARM,
native = Joint.RIGHT_LOWER_ARM,
roll = Quaternion(1.0, 0.0, 0.0, 0.0)
roll = Quaternion(0.7071068, 0.0, 0.7071068, 0.0)
},
{
body = XRBodyTracker.JOINT_RIGHT_HAND,
Expand Down

0 comments on commit 0da6912

Please sign in to comment.