riding left and right

ey i am making a tank game and you see it from above and when i am walking left right or back the tank is looking at the same direction (the front) how do i let my tank rotate like that ?
i dont want that you have to turn but just when you press back he changes direction
can someone help me with that ?

You could probably use localScale: Unity - Scripting API: Transform.localScale
And set one of the axis to -1 (mirrors the tank geometry). The other option is you can simply rotate it (Unity - Scripting API: Transform.Rotate) 180 degrees.

I don’t know if either will adversely affect your logic.

thanks !