Get how much a bone has rotated from its rest position (c#)

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

I would like to rotate a different node (type Spatial) based on the rotation of a bone. I got the position of the bone with the bone pose Transform origin, but just setting the transforms equal does not rotate the other node correctly. I know the function Transform.rotated rotates from the rest position, but how do I get the rotation values without that function? The bones are being moved with SkeletonIKs (i.e. changing the TargetNode position and starting the IK) so I can’t just rotate the other node’s Transform at the same time with the same parameters.