~starkingdoms/starkingdoms

ref: 743fa8f6c688750fbfd8b45c6b16fabcd39b58e2 starkingdoms/server/src/orbit/constants.rs -rw-r--r-- 546 bytes
743fa8f6 — core planetary constants - fix asset builds - orbits 2 years ago
                                                                                
1
2
3
4
5
6
7
8
9
10
pub const GAME_SCALE: f64 = 0.0001567865; // 1000 / EARTH_RADIUS_RL

pub const EARTH_RADIUS_RL: f64 = 6_378_100.0;
pub const EARTH_RADIUS: f64 = EARTH_RADIUS_RL * GAME_SCALE;

pub const MOON_RADIUS_RL: f64 = 1_737_400.0;
pub const MOON_RADIUS: f64 = MOON_RADIUS_RL * GAME_SCALE;
pub const MOON_PERIAPSIS: f64 = 5400.0; //363228.9 * 1000.0 * GAME_SCALE; // real values
pub const MOON_APOAPSIS: f64 = 5600.0; //405400.0 * 1000.0  * GAME_SCALE; // real values
pub const MOON_ORBIT_TIME: f64 = 23328000.0 * GAME_SCALE; // not real values (10x higher)