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
Note: cleaned-up some (now) irrelevant edits.
Ahh, sorry, I missed this one. Will take a look soon.
Sorry for the slow response. I’m a bit swamped right now. @sebavan will take a look.
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.