Currently I’m working on a Spaceflight Simulator game that will allow the pilot to fly his spacecraft into space, intersect with an orbiting space station and land his spacecraft inside the station’s landing bay by using reaction control thrusters. If successful, the pilot will takeoff from the landing bay, deorbit into the earth’s atmosphere and glide his spacecraft back to earth under no power and land on a runway.
The spaceflight simulator will have a high degree of realism making such maneuvers as landing inside and taking off from a station’s landing bay very difficult.
To assist the pilot in achieving these maneuvers, I will create an Attitude Control System (ACS) that is capable of maintaining the desired attitude autonomously. The ACS will be adaptive so if the pilot loses control, it will bring the spacecraft back to its proper orientation.
This thread will be a work in progress with code snippets to explain how the ACS works and some graphs and/or reports showing some preliminary test results. This thread is mostly for those who are interested in Game AI. It will not contain a lot of eye candy. The reason I’m posting here is to get feedback from those who know better than I about AI and/or those who are interested in learning and may benefit from what is explained here.
At the end of this thread, I will post a link that will allow those interested to install a demostration of the ACS. The demostration will display a spacecraft currently in orbit where the pilot can use his joystick and/or keyboard to activate the reaction control thrusters and the main thrusters to spin the spacecraft out of control. A function key will be available to activate the ACS that will regain control of the ship.
There is nothing new about what I’m doing here. Some of you may already know of games that display this kind of intelligence. But this is a beginner project for me and hopefully what I learn from it will lead to more unique challenges in the future.
In the next update I will display a diagram showing the main components of the ACS with explanations of each component.



