Commit 48336bb5 authored by Stephen D's avatar Stephen D
Browse files

mass bugfix

parent e3a7b92e
......@@ -16,7 +16,7 @@ typedef struct RigidMass
} RigidMass_t;
double G = 667.408;
double G = 0.00667408;
//Calculates delta V on body, due to other.
void calcGravity(RigidMass_t *body, RigidMass_t other)
......@@ -96,7 +96,7 @@ int w = 1920;
int h = 1080;
int spawnSize = 500;
double maxComponentV = 10;
long m = 50;
long m = 500;
int a = 100;
int iteration = 0;
char s[255]; //save filename
......@@ -321,7 +321,7 @@ int main(int argc, char **argv)
printf("\t W = %d, H = %d\r\n", w, h);
printf("\t spawn = %d\r\n", spawnSize);
printf("\t vComponentMax = %f\r\n", maxComponentV);
printf("\t m = %ldE9 kg\r\n", m);
printf("\t m = %ldE8 kg\r\n", m);
printf("\t Autosave: %s-ID.sgs every %d iterations\r\n", s, a);
//allocate array
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment