I’m making a 2D SideScroller game with C++ and I want to rotate the head of the player with the mouse position, but it is not working. I tried FindLookAtRotation, but this doesn’t work.
Your logic seems sound to me, one thing I noticed however is you are using the Screen Coordinates to calculate your angle, which will cause incorrect calculations since the players head location is in world coordinates. You will need to convert LocationX and LocationY to world position or convert players head location into screen position.