BoneLookController with more than 2 bones

Hey all!

I am currently working on an experiment where I am using the BoneLookController, but I noticed in the documentation that it only supports 2 bones at the moment (Babylon.js docs), so I was wondering if there is a workaround for this?

PG: Babylon.js Playground

As you see, this part works fine, but what I am missing is a control at the elbows (and knees), to prevent it from bending inwards, but no way I could get it to work ( I think the issue probably lies with one controller overwriting the transform and rotation of the one downstream? When I add an elbow control, the hand controler stops working.

Is there a way to chain multiple BoneIKController’s together, or what would be the best way to achieve that?

I’m afraid there’s not much more than what’s described in the documentation (Babylon.js docs).

You can try looking for similar requests on the forum (if you haven’t already), but IK was an external contribution and I think the author is no longer on the forum…

1 Like