How to move a bone to an different global position?

I have a playground here https://playground.babylonjs.com/#L6LGCH#1 where I’m trying to get each bone to move to the red sphere when pressing the “MOVE BONE” button. I have the absolute position of the sphere but I don’t know how to update bone base matrix to move it to that absolute position. Does anyone have any idea? Maybe I need to translate that position taking into account the local rotation of the bone.

Like this?

1 Like