|
|
|
@ -65,11 +65,11 @@ void run_gui_simulation(SimulationState* sim) { |
|
|
|
printf("Speed multiplier: %.1fx\n", speed_multiplier); |
|
|
|
printf("Speed multiplier: %.1fx\n", speed_multiplier); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
#if 0 |
|
|
|
#if 1 |
|
|
|
/****
|
|
|
|
/****
|
|
|
|
* Hacks ahead... |
|
|
|
* Hacks ahead... |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
int focus_index = 9; |
|
|
|
int focus_index = 4; // earth: 2, jupiter, 4
|
|
|
|
if (sim->body_count >= focus_index) { |
|
|
|
if (sim->body_count >= focus_index) { |
|
|
|
Vector3 offset = {0, 100, 100}; |
|
|
|
Vector3 offset = {0, 100, 100}; |
|
|
|
focus_camera(&render_state, &sim->bodies[focus_index], offset); |
|
|
|
focus_camera(&render_state, &sim->bodies[focus_index], offset); |
|
|
|
|