How to keep the direction of the character after an action which rotates the camera.

I’m having a bit of trouble.

I have a 3rd personn project where the player can perform a Dash action in whatever direction they want, which resets the camera behind their back even they go backwards.

But when the action is finished, the player is most likely pushing the analog stick in the opposite direction where they wanted to go.

I’d love to be able to keep the direction so that when the dash is performed, the character will still in the same direction which was previously input, until the player decide to change directions by giving another input from the stick. (From then it will reset to the normal direction which is controlled by the angle of the camera.)

Do you have an idea on how to fix it ?

Hey there @Clemichoux! Depending on how you handle your dash, if your movement during the dash is polling every frame, you can instead lock that movement vector until the dash is over, then go back to handling movement normally.