Hello,
I have a sword that has to be placed in front of my character and the hands attach to it using IK.
When the character turns around, the sword should also turn around. How do I do that?
This is how I calculate current mouse position
This is the logic I have for now:

The cursor position in the viewport is scaled by 200 (arbitrary speed for moving the sword), then a 3d vector is made:
X in the 2D is left/right, in the 3D this is the Y
Same for Y in the 2d is up/down, in the 3d is the Z
Then I add the actor location so that the sword keeps its relative distance with the character (if the character moves the sword will follow)
But now I have to create some logic to modify the position of the sword based on the rotation of the character (Get Actor Transform, the rotation pin). If I connect it to the Set Actor Transform (for the weapon) it makes the weapon turn on itself.
What i need is for it to orbit around the character when the character turns.
Thanks.