@spirit_toaster said:
I can only set a global pose override i think, doesn't seem to work correctly, I'll keep tweaking and see if I can get it to work.
Oh, well a global pose in a Skeleton is not, oddly enough, a global transform like in Spatial Nodes. A global pose in a Skeleton is actually just a transform relative to the Skeleton node itself, similar to a transform of a child node of a Skeleton.
To take a global transform in a Spatial node and convert it to a global pose, or vice versa, you’ll need to multiply by the Skeleton’s global transform. I think this the code, but this is off memory:
func global_pose_to_world_transform(global_pose, skeleton_node):
return skeleton_node.global_transform * global_pose
func world_transform_to_global_pose(world_transform, skeleton_node):
return skeleton_node.global_transform.inverse() * world_transform
I think that’s what the code is, but I’ll double check and will make another post.