I’m working on a top-down game where my character can rotate on the Z-axis to face the cursor, I’m trying to get my character to lean/tilt towards the direction of movement, no matter where it’s looking,
for example, if I’m moving right and looking to the right, the character’s face should lean downward since it’s moving and facing the right direction and if I’m moving right and looking left, the character’s back should tilt downwards.
I managed to get something working but it only works correctly if I don’t rotate my character to my cursor.
you can use the actor rotation just to make it point in the direction he walks.
then add a scene component first child of the actors default root and everything else to this new scene root…this way you just relative rotate que new axis in one direction and the other direction is derived from the main actor.
Thank you for your reply,
I think you misunderstood me, I want my character to look at the mouse cursor, not the direction I’m moving,
but I want it to lean towards the movement direction while I can freely look around using the cursor.
just like this, from the second 35: