Evening all. I’ve spent some time trying to get this working, to no avail.
I simply want the character to rotate towards the cursor location on screen. In a top down perspective.
I have it working like this.
But this isn’t ideal as it is tracing for objects under the cursor, as opposed to using the actual screen location of the cursor.
As you can see in this video, with my mouse held still, the character snaps to different rotations when i move under an object and back out again.
So. I’m trying to do something like this…
In theory this would work a lot better. But I just can’t seen to get it working in any usable way.
I tried printing the return values of the nodes like this
But the values from the hit result under cursor and the Get Mouse Position are completely different.
Any one have any ideas how to go about getting this working correctly?
Thanks in advance! Much appreciated!