SpaceBody
Celestial body. (SpaceBody selected not to conflict with KSP CelestialBody.)
Types:
Atmosphere: Atmosphere
Instance Properties:
native: CelestialBody - [Unsafe] KSP APIname: string - Name of the body.body: SpaceBody - Celestial body this body is orbiting.position: Vector - Position of the body (relative to active ship).velocity: Vector - Current orbital velocity (relative to parent body, zero for Sun/Kerbol).bodies: ReadOnlyList[SpaceBody] - Orbiting celestial bodies.radius: double - Radius of the body [m].mass: double - Mass of the body [kg].gravParameter: double - Standard gravitational parameter (μ = GM) [m³/s²]mu: double - Standard gravitational parameter (μ = GM) [m³/s²]atmosphere: Atmosphere - Atmosphere parameters of the body.atm: Atmosphere - Atmosphere parameters of the body. (Alias toatmosphere)orbit: OrbitInfo - [WIP] Orbit parameters. Null for Sun/Kerbol.period: TimeDelta - Period of current orbit in seconds. Alias toorbit.period.NaN/nonefor Sun/Kerbol.timeToAp: TimeDelta - Eta to apoapsis in seconds. Alias toorbit.timeToAp.NaN/nonefor Sun/Kerbol.timeToPe: TimeDelta - Eta to periapsis in seconds. Alias toorbit.timeToPe.NaN/nonefor Sun/Kerbol.timeAtAp: TimeStamp - Time at apoapsis. Alias toorbit.timeAtAp.NaN/nonefor Sun/Kerbol.timeAtPe: TimeStamp - Time at periapsis. Alias toorbit.timeAtPe.NaN/nonefor Sun/Kerbol.eccentricity: double - Eccentricity of the orbit. [0, +inf)NaNfor Sun/Kerbol.inclination: double - Inclination of the orbit.NaNfor Sun/Kerbol.semiMajorAxis: double - Semi-major axis of the orbit.NaNfor Sun/Kerbol.semiMinorAxis: double - Semi-minor axis of the orbit.NaNfor Sun/Kerbol.apoapsis: double - Height above ground of highest point of the orbit.NaNfor Sun/Kerbol.periapsis: double - Height above ground of lowest point of the orbit.NaNfor Sun/Kerbol.apocenter: double - Highest distance between center of orbited body and any point of the orbit.NaNfor Sun/Kerbol.pericenter: double - Lowest distance between center of orbited body and any point of the orbit.NaNfor Sun/Kerbol.trueAnomaly: double - Angle in degrees between the direction of periapsis and the current position. Zero at periapsis, 180 at apoapsis.NaNfor Sun/Kerbol.meanAnomaly: double - Angle in degrees between the direction of periapsis and the current position extrapolated on circular orbit.NaNfor Sun/Kerbol.lan: double - Longitude of ascending node.NaNfor Sun/Kerbol.argumentOfPeriapsis: double - Argument of periapsis. Angle from ascending node to periapsis.NaNfor Sun/Kerbol.aop: double - Argument of periapsis. Angle from ascending node to periapsis.NaNfor Sun/Kerbol.
Instance Methods:
positionAt(): Vector, time TimeStamp- [
WIP] Predicted position at specified time.
- [
velocityAt(): Vector, time TimeStamp- [
WIP] Predicted velocity at specified time.
- [
timeAtTrueAnomaly(): TimeStamp, trueAnomaly double- [
WIP] Get time at true anomaly (absolute time of angle from direction of periapsis).NaN/nonefor Sun/Kerbol.
- [
timeToTrueAnomaly(): TimeDelta, trueAnomaly double- [
WIP] Get time to true anomaly (relative time of angle from direction of periapsis). [0, period)NaN/nonefor Sun/Kerbol.
- [