how to change upper body orientation with mouse position?

I’m currently working on a project in which i must do a top-down game. The Player character change orientation based on the direction he’s moving so that his legs move in the good direction, and i’m trying to change his upperbody orientation so that he looks where the mouse cursor is. The problem is that the character just breaks his spine the moment the mouse enters the game, and then it never moves again. The broken upper half will stay the same.



image
(he’s facing forward in the picture)

You need to implement some kind of turn in place system first.

Once thats in place you can have the character actually reposition itself.

I’im sorry if i wasn’t clear enough, my objective isn’t for the character to reposition himself, i want his legs to look to the direction he’s moving towards while the upper part of his body looks where the mouse is at the same time.

Sort of similar.

Set the position of the torso and above with an AimOffset.

On top downs though, you still have to implement a turn in place for it to work.