

This number changes with the speed setting). To progress to the next stage, the ship needs to be at least 5 meters above the connector (roughly. It will do this "carelessly" - not worrying about stopping at the exact height level. If the ship is behind the target connector, it needs to fly to be above it.

To progress to the next phase, the connectors need to be aligned to within 15 degrees. It will rotate using pitch and roll so that the connectors line up. In this phase, the ship will simply hover and rotate. This means that the ship does not store any "state" between frames, it is constantly re-assessed, allowing a much higher level of robustness. Every time the script runs, it assesses the situation to determine what phase it is in. These are done in sequence and I'll explain each below.

When landing, the ship goes through 4 major phases. This can help give you some insight on how it works. With this on, more information will be relayed to you as the script operates. In the script settings (by clicking "Edit" in the programming block), you can enable extra info mode. This section will explain in a bit more detail how the script operates. A script for Space Engineers that will automatically control and dock your in-game ship to a home connector.
