Pioneer
Loading...
Searching...
No Matches
gameconsts.h
Go to the documentation of this file.
1// Copyright © 2008-2024 Pioneer Developers. See AUTHORS.txt for details
2// Licensed under the terms of the GPL v3. See licenses/GPL-3.txt
3
4#ifndef _GAMECONSTS_H
5#define _GAMECONSTS_H
6
7#include <cstdint>
8
9static const double PHYSICS_HZ = 60.0;
10
11static const double MAX_LANDING_SPEED = 30.0; // m/sec
12static const double LIGHT_SPEED = 3e8; // m/sec
13
14static const uint32_t UNIVERSE_SEED = 0xabcd1234;
15
16static const double EARTH_RADIUS = 6378135.0; // m
17static const double EARTH_MASS = 5.9742e24; // Kg
18static const double SOL_RADIUS = 6.955e8; // m
19static const double SOL_MASS = 1.98892e30; // Kg
20
21static const double AU = 149598000000.0; // m
22static const double G = 6.67428e-11;
23
24static const double EARTH_ATMOSPHERE_SURFACE_DENSITY = 1.225;
25static const double GAS_CONSTANT_R = 8.3144621;
26
27const double PA_2_ATMOS = 1.0 / 101325.0; // pascal -> atm
28
29#endif /* _GAMECONSTS_H */
const double PA_2_ATMOS
Definition: gameconsts.h:27