You actually almost had it, in the begining its the Z that you want to rotate since its up and down only and if you rotate the x or y then it adds a 20 or 30 degree angle to your character.
@ClockworkOcean, @Everynone and @DragonRelt, thanks a lot for your answers, but I have just realised that I have not explained myself well. I’m so sorry.
I’m trying to draw a plane between to points. After that, I want to rotate the plane to face the player. The code to do it is (I’ve divided into three images):
To take last image I have pressed F8 in the editor, and rotate the X axis 90º.
By the way, the plane could be anywhere, so I don’t know if rotating the X-axis by 90 degrees will always work. In this example, is 90º because the plane and the actor has the same Z value.
Note that the pin order of the Combine Rotators node matters.
And then there’s @ClockworkOcean suggestion. Learning is great but perhaps you’re trying to learn the wrong thing and this solution is the one to go for. Definitely most performant and least fussy.
Sorry, I don’t know. I think is world rotation, but not sure.
By the way, what’s that “thing”?
If you need more information, what I’m trying to do is to draw a line between two points. To do it, I’m using an actor with a square plane as a static mesh.
To rotate the actor like in the last picture, I’ve done the following method: