They are calculated live using real(ish) physics. I had to damp the acceleration at the centers of black holes to make it playable (the player would have shot off into oblivion if I didn't)