Greetings! I hope my thread title isn’t too confusing to establish what I’m trying to do.
I have this texture that I position on screen at the player’s mouse coordinates. Essentially wherever the mouse pointer goes, this texture goes with it.
What I am aiming to do is get the screen position of the mouse as well as convert the world space vector of an actor to screen space and rotate the texture so that the arrow points towards the location of the ‘target’ actor.
I have blueprints in place to ‘select’ an actor by clicking on it, and I have the location vector data stored in a variable, I just need some help with the appropriate blueprint nodes and maths work to put it all together.
An example of what I’m looking for comes from Hostile Waters. I’ll put a couple of images below to demonstrate.
The two images above show that when the mouse is either above or below (also works for left/right) the target the arrow around the mouse cursor will rotate to always face towards the target.
Hopefully someone out there can point me in the right direction!