forgot to commit setting change
authorBrendan Hansen <brendan.f.hansen@gmail.com>
Tue, 24 Nov 2020 18:34:04 +0000 (12:34 -0600)
committerBrendan Hansen <brendan.f.hansen@gmail.com>
Tue, 24 Nov 2020 18:34:04 +0000 (12:34 -0600)
dummy.settings
src/sim.cpp

index 642fbd8021f15ef32c62a79aed9fedb84d0e0b63..bf207ef0c48c20455aa7e7d0c1e4ff44952d688e 100644 (file)
@@ -21,9 +21,9 @@ body_color 3      1.0 1.0 1.0
 # 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:
@@ -38,6 +38,10 @@ friction 6.0
 # 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
index 4170abcfc75988c38e5c5f088df76d4da6c84395..0803ca3488081f07ba55e5afe0073822d6e3fc90 100644 (file)
@@ -360,6 +360,7 @@ main(i32 argc, char* argv[])
     auto state = alloc<SimState>();
     sim_state_init(state);
 
+    // NOTE(Brendan): Other OpenGL initializations that could probably happen earlier.
     {
         glBindVertexArray(circle_mesh);
         defer { glBindVertexArray(-1); };