0 votes

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?

in Engine by (18 points)

Please log in or register to answer this question.

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to webmaster@godotengine.org with your username.