]> git.cworth.org Git - akamaru/commitdiff
Reduce time step to prevent 'shimmering'.
authorKristian Høgsberg <krh@redhat.com>
Mon, 12 Jun 2006 00:31:05 +0000 (20:31 -0400)
committerKristian Høgsberg <krh@redhat.com>
Mon, 12 Jun 2006 00:31:05 +0000 (20:31 -0400)
akamaru.c
dock.c

index c667c371fade45e09ca49cdd274e177723dc9e1d..76f00583bb58da68b926a761e224a6c1cf0fbffd 100644 (file)
--- a/akamaru.c
+++ b/akamaru.c
@@ -21,7 +21,7 @@
 #include "akamaru.h"
 
 const double elasticity = 0.7;
 #include "akamaru.h"
 
 const double elasticity = 0.7;
-const double friction = 4;
+const double friction = 8;
 const double gravity = 50;
 
 void
 const double gravity = 50;
 
 void
diff --git a/dock.c b/dock.c
index 782d5d2b9b43cd8aa0c887c9d8854225ca5b0ad5..c981ae8a87ad8d871ee0d4124c1fc581c7466dfe 100644 (file)
--- a/dock.c
+++ b/dock.c
@@ -36,7 +36,8 @@ timeout_callback (gpointer data)
                     closure->model.objects[i + 1].position.y + 0.5);
   }
 
                     closure->model.objects[i + 1].position.y + 0.5);
   }
 
-  model_step (&closure->model, 0.1);
+  for (i = 0; i < 4; i++)
+    model_step (&closure->model, 0.03);
 
   return TRUE;
 }
 
   return TRUE;
 }