dabeschte / VRArmIK

Unity Inverse Kinematics solution for arms in VR
MIT License
158 stars 19 forks source link

Hands behind head isn't accurate and causes odd shoulder rotations #6

Open jasonofthestorm opened 4 years ago

jasonofthestorm commented 4 years ago

Hi again! I've been running into this issue consistently and have only managed to come up with hacky solutions that aren't quite ideal.

The problem is that when the "Hands Behind Head" bool switches to true, it occasionally doesn't switch back, despite the player holding their hands to neutral positions directly in front of them. This causes the shoulder to stay rotated to it's maximum value, causing all sorts of wonkiness. This can easily be replicated in the demo scene by drawing a circle around your head with only one hand. You essentially need to "unwind" the circle or throw both hands behind your head again to get the shoulder back to it's correct position and for the bool to switch back.

This is particularly frustrating as it can occur when climbing overhangs and using weapon holsters in the over-the-shoulder position. Any suggestions for better handling this?

shoulderrot

dabeschte commented 4 years ago

Hi! Yeah, unfortunately this is currently an unsolved problem. It's tricky to determine if the shoulders are oriented correctly and I am not actively supporting this project anymore. If you do find a good solution for that problem, please tell us the solution or create a pull request if you can. That would be great!