Is there any way to rotate the camera without affecting character movement?

While I’m moving with the character, if I rotate the camera with the mouse the player rotates with it. What I’m looking for is to keep moving on the same direction even if I rotate the camera. Thank you for your answers :slight_smile: