Hi
Check this out: https://playground.babylonjs.com/#1EVNNB#347 . I guess “bone49” is one of Dude’s fingers. Also in my local playground I run into the same issue also with a leaf bone.
The error message points to Babylon.js/boneIKController.ts at 5150fa3cff7b4a57cdfaa4e1da084210ab48146d · BabylonJS/Babylon.js · GitHub
I am unable to fix it without breaking other stuff
Best wishes
Joe
Note: cleaned-up some (now) irrelevant edits.
bghgary
November 10, 2022, 7:04pm
4
Ahh, sorry, I missed this one. Will take a look soon.
bghgary
November 16, 2022, 8:00pm
6
Sorry for the slow response. I’m a bit swamped right now. @sebavan will take a look.
sebavan
November 16, 2022, 9:25pm
9
This should fix it as best as we can and log unexpected setup on upon IK creation.
Basically you need 2 things for IK 2 work:
a parent bone.
either a child node or a length being defined.
The PR is here Fix IKController with leaf node by sebavan · Pull Request #13257 · BabylonJS/Babylon.js · GitHub
and in your case you could basically simply set a lenght on the leaf bone before creating the IK.
2 Likes