Flying auto-pilot (Patreon)
Content
A planned feature for flying is that the movement of the dragon is partially controlled automatically, both to aid the player in flying as it is quite difficult to control, but also because the dragon has a will of its own. This is expressed in a few different ways. First, there's the self preservation aspect where if you for example attempt to dive straight into the ground, it will override your command and slow down to not crash. Then there is flight guidance that makes it easier for you to fly as you intend, like automatically keeping a certain altitude above the ground or helping control the dragon rotation. And finally, there's the full auto-pilot where the dragon can take you somewhere without you having to manually control it to fly there.These things are usually not very hard to implement for a regular controller, but the dragon controller in this game is a bit different as it uses a simple aerodynamics simulation to move the dragon and there are some aspects of how the wings produce lift that can introduce instabilities. Good thing I took a course in control theory a while back, might come in handy.