Be the first to post for 'Simulating Random Traffic'!

If you’re reading this, there probably aren’t very many posts yet. But don’t worry, you can be the first! Either create a new post or just reply to this one to say ‘hi’.

Love the new video. I ended up clamping my random exponential spawn time. This prevents really large gaps in the traffic that might make the game too easy.

float newSpawnTime = Mathf.Clamp(-Mathf.Log(Random.value) * MeanTime, MinSpawnTime, MaxSpawnTime);
 _nextSpawnTime = Time.time + newSpawnTime;

Privacy & Terms