From: Kristian Høgsberg Date: Mon, 12 Jun 2006 00:31:05 +0000 (-0400) Subject: Reduce time step to prevent 'shimmering'. X-Git-Url: https://git.cworth.org/git?p=akamaru;a=commitdiff_plain;h=05af0909cc976c183e82d8392107ef11d77bb4ec Reduce time step to prevent 'shimmering'. --- diff --git a/akamaru.c b/akamaru.c index c667c37..76f0058 100644 --- a/akamaru.c +++ b/akamaru.c @@ -21,7 +21,7 @@ #include "akamaru.h" const double elasticity = 0.7; -const double friction = 4; +const double friction = 8; const double gravity = 50; void diff --git a/dock.c b/dock.c index 782d5d2..c981ae8 100644 --- a/dock.c +++ b/dock.c @@ -36,7 +36,8 @@ timeout_callback (gpointer data) 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; }