17 lines
810 B
C
17 lines
810 B
C
#ifndef CONSTS_H_
|
|
#define CONSTS_H_
|
|
#define LOOP_TIMESTEP \
|
|
1000000LL // Wall-clock nanoseconds between updates (1 kHz).
|
|
#define PHYSICS_TIMESTEP 10.0f // Simulated seconds per update.
|
|
#define WALL_COLLISIONS 0 // Enable for bounded collision tests.
|
|
#define NEWTON_G 6.674e-11
|
|
#define EARTH_MASS 5.9722e24 // Kilograms per simulation mass unit.
|
|
#define UA 149.6E6
|
|
#define EARTH_RADIUS 6378.14 // Kilometers per simulation distance unit.
|
|
#define DISTANCE_UNIT_METERS (EARTH_RADIUS * 1000.0)
|
|
#define SIMULATION_G \
|
|
(NEWTON_G * EARTH_MASS / \
|
|
(DISTANCE_UNIT_METERS * DISTANCE_UNIT_METERS * DISTANCE_UNIT_METERS))
|
|
|
|
#endif // CONSTS_H_
|