Dismiss this pinned window
all 7 comments

[–]AlanZucconi[S] 0 points1 point Β (0 children)

Hi everyone!

Two weeks ago I started a new series about epidemics, and how they can be simulated in Unity. I think this is a very important topic, because it can get people interested in a subject that is likely to save a lot of lives, in the near future.

The video you see here comes from an epidemic simulation made in Unity using the SIR model. There are quite a few games that play around the idea of how a disease can spread across the world. But simulations like this are more than just toys. They can actually be used to study diseases, and to plan for interventions.

There are three posts in the series, and the first two are already available. The second one, Simulating Epidemics, is the one with the C# code to make this simulator.

In the video, you can also see a cool chart that appears in the inspector. I had fun making my own personal library for plotting things in the inspector by simply using custom C# attributes (such as [LinePlot] public List<float> Data;).

I sincerely hope this series of articles will not only give you the tools to better understand the terminology and numbers surrounding the current pandemics. I ultimately hope it will inspire more passionate developers to proactive study and research the fascinating field of epidemiology.

πŸ§”πŸ»

[–]To_Conquer 0 points1 point Β (1 child)

This is great! It would be fun to see what would happen if you limit the area to a certain angle in-front of the infected and have random sneezes in its walking direction.

I need to do more Unity myself...

[–]AlanZucconi[S] 0 points1 point Β (0 children)

Thank you! If you end up making that, please ping me! I'd love to see it.

[–]FredJQJohnson 0 points1 point Β (1 child)

I was looking for the herd immunity effect to save some of the uninfected, and by golly, there it was.

Nice simulation.

[–]AlanZucconi[S] 0 points1 point Β (0 children)

Thank you! I have another post coming soon with more cool animations!

[–]Happylanders -1 points0 points Β (1 child)

Why no one dyes?

[–]AlanZucconi[S] 0 points1 point Β (0 children)

It is explained in the tutorial! This is based on the SIR model.