summaryrefslogtreecommitdiffstats
path: root/balls.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'balls.cpp')
-rw-r--r--balls.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/balls.cpp b/balls.cpp
index 48c7a5a..5803aef 100644
--- a/balls.cpp
+++ b/balls.cpp
@@ -14,9 +14,8 @@ using namespace std;
/* min/max radius [m] */
#define DENSITY 1500.0
/* density of ball [kg/m^3] */
-#define G (9.81/FPS/G_FACTOR)
- /* acceleration of gravity [m/(s*frame)] */
-#define G_FACTOR 25.0
+#define G (9.81/FPS/FPS)
+ /* acceleration of gravity [m/(frame*frame)] */
enum {
WIDTH = 800,