]> git.cworth.org Git - akamaru/blobdiff - akamaru.c
Reduce time step to prevent 'shimmering'.
[akamaru] / akamaru.c
index cc551436cd371449ec3a2f19ef7c9faf5559c1ed..76f00583bb58da68b926a761e224a6c1cf0fbffd 100644 (file)
--- a/akamaru.c
+++ b/akamaru.c
@@ -20,8 +20,8 @@
 
 #include "akamaru.h"
 
-const double elasticity = 0.5;
-const double friction = 4;
+const double elasticity = 0.7;
+const double friction = 8;
 const double gravity = 50;
 
 void
@@ -435,7 +435,7 @@ model_step (Model *model, double delta_t)
 
   model_accumulate_forces (model);
   model_integrate (model, delta_t);
-  for (i = 0; i < 2; i++)
+  for (i = 0; i < 20; i++)
     model_constrain (model);
 
   model->theta += delta_t;