$darkmode
State container for the N-body simulation. More...
#include <nbody.h>
Data Fields | |
| NBodyParticle | bodies [NBODY_MAX_BODIES] |
| int | body_count |
| float | gravity |
| float | accumulator |
| float | time_scale |
| float | target_time_scale |
| float | initial_energy |
| float | sim_time |
| bool | paused |
| NBodyImpact | impacts [NBODY_MAX_BODIES] |
State container for the N-body simulation.
| float NBodySim::accumulator |
Physics timestep accumulator.
| NBodyParticle NBodySim::bodies[NBODY_MAX_BODIES] |
Array of bodies.
| int NBodySim::body_count |
Number of active bodies.
| float NBodySim::gravity |
Gravitational constant G.
| NBodyImpact NBodySim::impacts[NBODY_MAX_BODIES] |
Per-body impacts.
| float NBodySim::initial_energy |
Total energy at init (E₀ reference).
| bool NBodySim::paused |
If true, simulation does not advance.
| float NBodySim::sim_time |
Monotonic simulation clock (seconds).
| float NBodySim::target_time_scale |
Smooth-transition target.
| float NBodySim::time_scale |
Speed multiplier (1.0 = real-time).