Godot 3D skeleton rotation pivot

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By GreatCornDev

So, the imported bones have wrong pivots and I can’t fix it (export to DAE). Trying to change bone rest/pose origins doesn’t do anything towards the rotation. Is there any way to set a bone pivot in Godot?

I use this code as a tool script to help me configure the bones:

var bonePose = Transform(Quat(value*D2R))

bonePose is a Transform that has the same origin as the bone (assigned later, before set_bone_pose), value is an exported Vector3 for easier tweaking in editor, D2R is a degrees to radians constant. Bone 1 is a child of bone 0 with an offset.

Illustrations below:

:bust_in_silhouette: Reply From: GreatCornDev

Figured out that the COLLADA .dae format (either Godot import or Blender export) is kinda broken, switching to binary glTF (.glb) solved the problem.