This demo shows how to make correct objects stand up function for planetary gravity in Godot Engine. Requires Godot Engine 3.0 RC3 or higher version.
Use Arrow keys or WASD to move the capsule.
This demo uses some code for camera and RigidBody rotation from A first-person shooter asset for the Godot Engine.
Feel free to contact me if you got questions about this demo.