hello problem with two bone, bones are shaking, tell me how to set it up correctly. I want to buy a plugin, but I don't know how to set it up. Thank you
Enhanced IK for the Godot game engine · By
Issue fixed - closing topic!
Hi VadimBernhardt!
In your TwoBoneIK setup, have you added a Spatial-based node to act as a pole? This can greatly increase the stability of TwoBoneIK, especially when close to fully extended. I think that is causing the issue you are seeing, though its hard to say for sure. Can you record a small video showing the problem?
As for the setup, it should be fairly easy: You need to have two Twisted_Bone3D nodes, a Twisted_Skeleton3D, a Twisted_ModifierStack3D, and finally a Twisted_ModifierTwoBoneIK3D. In the Twisted_ModifierTwoBoneIK3D node, you can look in the properties and assign the two Twisted_Bone3D nodes to the first and second bone slots. Then, you can set a target node and an optional pole node, then when the modifier stack is executing it should rotate the bones to point at the target.
One thing to look out for though is making sure the tip/second Twisted_Bone3D node has a proper length setup. If the second Twisted_Bone3D node does not have a child Twisted_Bone3D, you will likely need to set the bone length manually. You can do this by selected the Twisted_Bone3D node in the inspector, disabling "auto calculate bone length" and then manually inputting in the length of the bone in the bone length filed that should then be visible.
The example development project has a working example of TwoBoneIK in use that may also be helpful as a reference.
Thanks for reaching out and please let me know if you are still having problems! I'm sure we can figure out what is going on and find a solution :)
Hmm, I’m not sure right off. Something is definitely wrong as it’s not supposed to be working like that. The TwoBoneIk scene in the example project works on your machine, right? Just wanting to make sure in case it’s something OS specific (I doubt it, but never hurts to cover all bases)
If possible, can you send me the project and/or a minimum replication project? If you want, you can send it to my email: clanbn@hotmail.com
Edit: changed the tag to “bug report”, as there is a bug of some sort happening.
I sent an email with a link to the project with TwoBoneIK working. :)
For anyone looking at this post in the future: The issue was just that the second bone, the lower leg, didn't have its length properly set. I just added another bone as the child of the lower leg and set the bone ID to the foot, then it worked as expected.