Fantastic! Have a fast check of the codes. Looks like it is recording the relative position and repeatedly setting the ship's position according to that, just like what i guessed before. But well, i'm just guessing but you are the man who achieved this. Thank you! EDIT: advice: make the nearestDistance as a public member of the class so it can be tweaked via part.cfg. So that we can avoid wrong docking position when we have multiple docks nearby. Also, can you add some angle check of the docks. Like calculating the normalized direction vector of both docks. If the value is bigger than -1 to some degree (also we can setup this threshold in part.cfg), then the docking request will be rejected because the angle is not good enough.