How do I move a bone to a desired location in 3D?
I've been trying to find a way to move a bone to a desired location for ages now. The closest I've come moves the bone in the right direction but clearly not by the right amount.
I've got a bone moving a bow's rope. If I use Godot's editor, I can change the transform's origin of the bone pose and it does what I want. I'm trying to achieve the same effect through code. Basically I want the bone to follow the player's hand (in VR). Ideally I want to affect only the Y part of the transform's origin.
I understand that I can apply a Transform to the bone by using set_bone_pose() but the result is not what I expect. To move the arrow, I simply calculate the distance between the hand and the bow and I translate the arrow accordingly. Can I do something similar with my bone?