How to rotate a 2D character in a 3D space?

I currently have a 2D character which has 4 directional movement in a 3D space, however I need to make it possible so that when the player hits a collision box in game, the camera and movement rotates. I currently am at a situation where I can rotate the Sprite and Spring arm, however the input through W,A,S and D are now still in the same orientation as before entering the collision of rotation.(where D made me walk right before, I now walk away from the player, same direction of movement but now confusing as it is in a new orientation) I tried rotating the character component but doesn’t seem to work, any help?



Try out with control rotation.