|
Conquer Space 0.0.0
A space themed grand strategy game set in the near future, with realistic orbital mechanics, and an emphasis on economics and politics.
|
Classes | |
| struct | Body |
| struct | DirtyOrbit |
| struct | LightEmitter |
| struct | NautralObject |
| struct | OrbitalSystem |
| An object for the children of an orbital object. More... | |
| struct | Planet |
| struct | Star |
| struct | Terrain |
| struct | TerrainData |
| struct | TexturedTerrain |
Functions | |
| double | CalculateSOI (const double &mass, const double &reference_mass, const double &sma) |
| Calculates SOI More... | |
| double | CalculateMass (const double &GM) |
| Calculates mass from gravitational constant More... | |
| double | GetPlanetRotationAngle (const double &time, const double &day_length, const double &offset) |
| Calculates the current planet rotation angle More... | |
|
inline |
Calculates mass from gravitational constant
Masses of bodies are described in gravitational constant because it's more accurate to describe like that
| GM |
|
inline |
Calculates SOI
Make sure the units match up
| mass | Mass of planet/body to calculate |
| reference_mass | Mass of sun/reference body |
| sma | Semi major axis of the planet |
|
inline |
Calculates the current planet rotation angle
| time | current time in seconds |
| day_length | length of day in seconds |
| offset | offset of day |