Consecutive hinged bone
aeciolevy-ven opened this issue · comments
Firstly, thanks for developing the library.
I am having some problems to run a solver with 3 bones where the 2 last are consecutive Hinged Bone.
My base bone is with Y_UP
These are my second
lChain.addConsecutiveHingedBone(new FIK.V3(lAxisBone.x(), lAxisBone.y(), lAxisBone.z()), ilib_tm.mag(lDiff), 'global', new FIK.V3(lAxis.x(), lAxis.y(), lAxis.z()), -70, 90, new FIK.V3(lHingeReference.x(), lHingeReference.y(), lHingeReference.z()));
and third bone
lChain.addConsecutiveHingedBone(new FIK.V3(lAxisBone.x(), lAxisBone.y(), lAxisBone.z()), ilib_tm.mag(lDiff), 'global', new FIK.V3(lAxis.x(), lAxis.y(), lAxis.z()), 135, 70, new FIK.V3(lHingeReference.x(), lHingeReference.y(), lHingeReference.z()));
It works if I am moving only one bone.
It partially works when I move forwarding with more than one bone. It does not work when I moving backward affect two bones.
Please find attached the gif that shows it partially working.
This is the GIF showing that moving more than one bone simultaneously does not seems to constrain the angle
Any thoughts?
Well, I am probably using the parameters wrong.
What actually changes from local to global?
I am closing this issue, I got it working...
If you don't mind I would like a little bit of explaining the major difference between the local
and global
on the HingeBone.
great, yes i'm thinking about update
you can look caliko doc