Skip to content

astro.Function.rocheLimits

github-actions[bot] edited this page Aug 28, 2026 · 1 revision

@elite-dangerous-almanac/core / astro / rocheLimits

Function: rocheLimits()

rocheLimits(satellite, primary): RocheLimits | null

Defined in: src/astro/body-physics.ts:224

Roche limits around a primary for one scanned satellite.

Parameters

satellite

BodyProperties

The orbiting body. Needs a mass and a Radius, from which its density is taken.

primary

BodyProperties

The body being orbited. Needs the same.

Returns

RocheLimits | null

Both limits in metres from the primary's centre, or null when either body's density cannot be computed.

Remarks

Compare them against the satellite's periapsis, not its semi-major axis: a breach is set by closest approach, so an eccentric moon can dip inside the rigid limit while its mean distance looks safe. orbitExtents in ./body-orbit gives that periapsis.

Throws

If either argument is not an object.

Example

import { rocheLimits } from '@elite-dangerous-almanac/core/astro/body-physics';
import { orbitExtents } from '@elite-dangerous-almanac/core/astro/body-orbit';

const moon = { MassEM: 0.0123, Radius: 1_737_400, SemiMajorAxis: 3.844e8, Eccentricity: 0.0549 };
const earth = { MassEM: 1, Radius: 6_371_000 };

const limits = rocheLimits(moon, earth);
const closest = orbitExtents(moon)?.periapsis ?? 0;

closest < (limits?.rigid ?? 0); // -> false

API

Guides
astro
Classes (1)
ProceduralSystem

Properties

Accessors

Methods

Interfaces (28)
Type Aliases (6)
Variables (22)
Functions (57)
Subpath modules (3)
commodities
Interfaces (1)
Type Aliases (1)
Variables (3)
Functions (3)
equipment
Interfaces (6)
Type Aliases (8)
Variables (3)
Functions (10)
Subpath modules (2)
i18n
Interfaces (1)
Type Aliases (1)
Functions (17)
materials
Enumerations (2)
Interfaces (2)
Type Aliases (2)
Variables (9)
Functions (9)
ships
Classes (3)
BuildMetrics

Methods

LoadoutEditError

Constructors

Properties

Methods

ShipLoadout

Accessors

Methods

Interfaces (125)
Type Aliases (44)
Variables (10)
Functions (85)
Subpath modules (8)

Clone this wiki locally