The AI currently doesn't lead its aim. This means it will aim at the player's current position
instead of trying to predict where the player will be when the bullet reaches its target.
I don't really intend to change this behaviour, a decent aim would probably make the AI unbeatable.
Station turrets on the other hand, should be rather nasty and could seriously benefit from aim correction.
Without it, they're rather useless because they're too easy to dodge.
To solve this, we need some mathematics.
I wrote down the problem in the attached document and found some interesting lecture
in this post on reddit
, now I need some time to wrap my head around it