Hi everyone,
I’m working on a project in Unreal Engine 5.5 using the Top Down template. I’d like to make my character rotate to face the direction of the mouse cursor when the right mouse button is clicked.
Here’s what I’m trying to achieve:
- When the right mouse button is pressed, the character rotates to face the cursor’s position on the screen.
- The rotation should align smoothly to the cursor’s direction, taking into account the camera’s perspective in the Top Down setup.
Can anyone provide a step-by-step guide or a blueprint example to accomplish this?
Thank you in advance for your help!