Fixed orbit

This commit is contained in:
h3cx committed 2026-10-01 19:09:54 +02:00
1 parent 2a7669aa21
commit c729ab4f90
7 files changed
+110 -85

No files matched your search

+9 -3
View File
@@ -1,9 +1,15 @@
#ifndef CONSTS_H_
#define CONSTS_H_
#define TIMESTEP 10
#define simx 2
#define LOOP_TIMESTEP 1000000LL // Wall-clock nanoseconds between updates (1 kHz).
#define PHYSICS_TIMESTEP 100.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 RT 6378.14
#define RT 6378.14 // Kilometers per simulation distance unit.
#define DISTANCE_UNIT_METERS (RT * 1000.0)
#define SIMULATION_G (NEWTON_G * EARTH_MASS / \
(DISTANCE_UNIT_METERS * DISTANCE_UNIT_METERS * \
DISTANCE_UNIT_METERS))
#endif // CONSTS_H_