r4d2 wrote:I like how the orbits are calculated/simulated in Kerbal. Does anybody have an Idea how they do it?
It' s definitely not n-body. I would guess they basically calculate a perfect elliptic orbit to the closest body (wrt. gravitational force), with some form of interpolation when the forces are almost identical.
I think that they define bounding spheres for each astronomical body, except the "sun". When a ship/probe gets inside of a bounding sphere, it is affectect by only these astronomical body, because defien qhere the gravititation ofrce of these body is enought stronger to make insignificant the forces of other bodies. If isn't in an bounding sphere, then only aply "sun" grav forces over it. It can be see when you get out of Kerbal and try to reach Mun, or any other planet.