Fixed some things, broke some things, we now have some sort of a config idk timestep broken

This commit is contained in:
h3cx committed 2026-10-01 23:26:07 +02:00
1 parent c729ab4f90
commit 0891150f9d
5 files changed
+138 -67

No files matched your search

+9 -8
View File
@@ -1,15 +1,16 @@
#ifndef CONSTS_H_
#define CONSTS_H_
#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 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 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))
#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_