Afaik, the game is using A-Star as pathfinding algorithmus currently.
I don't know if this is a good idea for ships.
In space instead, you should take the direct route to your target and if anything is inbetween, calculate a tangential route along the box edge and connect both end points to...