# a uniform distribution.
# Type# Min Max
body_mass_range 0 2.0 4.0
-body_mass_range 1 20.0 22.0
+body_mass_range 1 15.0 20.0
body_mass_range 2 5.0 7.0
-body_mass_range 3 3.0 15.0
+body_mass_range 3 3.0 6.0
# Determines the friction coeffient, u.
# Equation of friction used:
# two bodies will interact in terms of pixels.
universe_scale 20.0
+# Determines the magnitude of the force applied to bodies that are within
+# 'universe_scale' pixels of each other.
+near_repulsive_force 200.0
+
# Determines how two bodies will interact. Note, that this is not a symmetric relation.
# Body Type# Other Type# Distance Force
interaction 0 1 5.0 200.0
auto state = alloc<SimState>();
sim_state_init(state);
+ // NOTE(Brendan): Other OpenGL initializations that could probably happen earlier.
{
glBindVertexArray(circle_mesh);
defer { glBindVertexArray(-1); };