Above ive attached a drawing to better indicate what i mean from the title. It could be a bit hard to tell but basically the animated part should move with the torso, but it ends up just facing same direction; its rotation completely unaffected by torso movement. Notice how the arrows are out of sync in the bottom one compared to the first.
Basically, im animating a gun that the player holds in their hand, and its scripted so when the player looks up or down, the waist attachment is adjusted, thus moving the entire torso, and all attached parts like the arms and head to face up or down with the camera.
However ive run into an issue while animating the tool and arm. Ive had this issue before with other projects but its especially noticeable now with the adjustable waist, but basically, the arm and tool when animated, face straight forward at all times, just as they were facing when animated. This means the players torso can be facing straight up or down, but the idle-holding animation has the gun pointing straight forward. Naturally this also happens with reload, equip, and trigger animations.
Its almost as if the animation itself is inputting the animated rotation value relative to the character model as a whole, and not relative to attachments like the shoulder which the arm should be carried by. Animating with the move and rotate settings set to local-space and not world-space does not fix this.
How would I go about fixing this so an animated arm and tool can face the same direction as the torso? Any help would be greatly appreciated!