How to rotate pawn to mouse cursor position in C++

Can someone show me how to make a pawn rotate towards the mouse cursor in c++? I am trying to make a simple top down asteroid game.

Hope this helps:


PawnLookAt

1 Like