35 constexpr double G = 6.67430e-11;
constexpr double TORQUE_ARROW_SCALE
Scaling factor for the length of the torque visualization arrow.
constexpr double EPSILON
Default computing precision value.
constexpr double ALPHA_ARROW_SCALE
Scaling factor for the length of the angular acceleration arrow.
constexpr double MIN_BODY_MASS
Minimum mass for randomly generated bodies.
constexpr int DEFAULT_LOG_FREQ
Default frequency for logging system energy.
constexpr double MIN_INITIAL_VELOCITY
Minimum initial velocity component for randomly generated bodies.
constexpr double MAX_BODY_MASS
Maximum mass for randomly generated bodies.
constexpr double G
Default universal gravitational constant (in m³⋅kg⁻¹⋅s⁻²).
constexpr double COEFF_FRICTION
Coefficient of kinetic (sliding) friction, also known as dynamic friction.
constexpr double TARGET_DX
Heuristic for the maximum distance a body should travel in one step, used for adaptive time stepping.
constexpr double LINEAR_DAMPING
Damping factor for linear velocity.
constexpr double PLACEMENT_SCALE_FACTOR
Heuristic scaling factor for the initial placement volume of bodies.
constexpr double MAX_INITIAL_VELOCITY
Maximum initial velocity component for randomly generated bodies.
constexpr double ANGULAR_DAMPING
Damping factor for angular velocity.
constexpr double COEFF_STATIC_FRICTION
Coefficient of static friction.
constexpr double POSITIONAL_CORRECTION_FACTOR
The percentage of overlap to correct per frame (Baumgarte stabilisation).
constexpr double DT_DAMPING_FACTOR
Damping factor for smoothing adaptive time step changes.
constexpr double MAX_INITIAL_ANGULAR_VELOCITY
Maximum initial angular velocity component for randomly generated bodies (in rad/s).
constexpr int SETTLING_STEPS
The number of "settling" steps to run at the start of the simulation.
constexpr double COEFF_RESTITUTION
Coefficient of restitution for collisions (e.g., 0.8 for a very bouncy ball).
constexpr double MAX_DT
Maximum time step allowed for the simulation to ensure stability.