summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSam Anthony <sam@samanthony.xyz>2024-10-02 17:44:45 -0400
committerSam Anthony <sam@samanthony.xyz>2024-10-02 17:44:45 -0400
commit564fb673577af31b74d1e6787d2ef19a16fcaf76 (patch)
tree1aeb79b7e8cf651172e8ee403ed2adacb1bb8ed2
parent427d71beee6b17e09de10ca5782e5c6a80526f44 (diff)
downloadballs-564fb673577af31b74d1e6787d2ef19a16fcaf76.zip
revise gravity
-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,