Hi,
tl;dr: I’m working on a Turret Blueprint for a small space-sim, the turret itself is a child actor attached to the spaceships blueprint. While the turret only needs to align its Base and Barrel on a horizontal and vertical axis itself respectively, it needs to do so in regards to the ships X,Y,Z rotation as that can rotate freely.
The turret itself is supposed to rotate towards a target vector, which is the result of a line trace run from the mouse’ position. So basically, it just has to align towards whatever I point the cursor at.
I’ve already looked through all of the topics on this I could find, both here and on other sites but haven’t been able to find a solution that works for my case.
To give a bit more detail on how it’s currently set up:
This is the Skeletal Mesh of the Turret I’m using to test the setup. The idea was to run a “Find Look at Rotation” function from both of the highlighted bones, since they’re not on the same position (depending on the turret mesh) and might need to rotate differently.
To assist with getting the correct rotation, I’ve also recently added two helper objects in the Blueprint at both the BaseSocketPoint and TurretSwivelPoint, which are rotated to give the proper Up and Forward vector since the bones are rotated differently.
I’ve already tried a good amount of different approaches, which would be too much to include here, especially since the blueprint has gotten extremely messy at this point. I’ve made attempts with both altering the animation of the Skeletal mesh as well as setting the bone rotation directly with a poseable mesh. Both have resulted in either an incorrect rotation or the mesh just rotating around endlessly.
I’d be grateful for any suggestions and tips on this.

