sphereOfInfluence

function sphereOfInfluence
kepler.ts:70
sphereOfInfluence(semiMajorAxis: number, bodyMass: number, primaryMass: number) → number

Radius of the sphere of influence of a body orbiting a primary.

The simulation uses this to decide when an approaching ship should be re-framed onto a planet, so it is physics rather than a rendering heuristic.

semiMajorAxisnumber
Undocumented
bodyMassnumber
Undocumented
primaryMassnumber
Undocumented
Returnsnumber