-
Notifications
You must be signed in to change notification settings - Fork 35
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bug in this kind of solution? #25
Comments
I think you found a bug! Here's some cleaned-up "Demo 7" replacement code that demonstrates the bug so you can see the issue:
I'll need to go through the code and find the right place to NOT negate the local hinge axis - bit busy atm so a cheeky workaround would just be to specify the opposite of the hinge constraint reference axis when using local hinges for the time being. Thanks for taking the time to let me know & hopefully I can get it all cleaned up soon. Cheers! |
Thank you for your detailed reply! Is there no End Effector orientation constrain in your code? |
Hello, maybe I found the bug of the FABRIK algorithm or your code, so I want to discuss this bug with you and get your advice if you want.
Based on Demo 7, I built a chain as shown below. The start and end positions of each bone are: [0, 0, 0] [0, 0, 40]; [0, 0, 40], [0, 0, 80]; [0, 0, 80], [0, 0, 120]. The target that I want to solve is [0, 0, 100]. I have tried to change the joint limit many times, but all the results were all problematic. This chain is always along the z-axis, and the end of the last bone is not placed at the target position. The ideal configuration of this chain should be like this:
------1-----End point (target)
------1-------
------1-------
------1-----third joint (local hinge)
--------1-----
----------1---
------------1- second joint (local hinge)
----------1---
--------1-----
-------1------
------1---base joint (ball)
Did I make a mistake? Looking forward to your reply!
Code:
The text was updated successfully, but these errors were encountered: