diff options
-rw-r--r-- | src/modules/swarm/swarm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/swarm/swarm.c b/src/modules/swarm/swarm.c index c64ef8e..7c8caeb 100644 --- a/src/modules/swarm/swarm.c +++ b/src/modules/swarm/swarm.c @@ -183,7 +183,7 @@ static void swarm_update(swarm_context_t *ctxt, unsigned ticks) float wleader, wcenter, wdirection; { /* [0] = leader */ - float r = (float)ticks * ((cosf((float)ticks * .0001f) * .5f + .5f) * .1f); + float r = M_PI * 2 * ((cosf((float)ticks * .001f) * .5f + .5f)); ctxt->boids[0].position.x = cosf(r); ctxt->boids[0].position.y = sinf(r); |