Fixed some things, broke some things, we now have some sort of a config idk timestep broken
This commit is contained in:
5 files changed
+138
-67
No files matched your search
@@ -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_
|
||||
Reference in new issue
Block a user