I'm making a game where the player is piloting a flying vehicle from a first person view. I originally tried using the rigidbody in character mode to stop it from rolling like crazy when it hits something, but then it's difficult to rotate the player when they use mouselook.
So I want to try a different approach: counter-forces that bring the player upright after they are rotated on the z axis. That way, I can simply add torque on the x and y axis to spin the player where they want to go using mouselook.
What is the best way of doing this in GDScript?