Rain tester

This is a small project I made a while ago to answer the age old question: should you walk or run in rain? There are several proofs online, but I decided to take a more practical, visual approach.

I used p5.js for this project so it could be visualised easily. I also added lots of sliders too, so people can fiddle around and configure the simulation how they would like.

This was a smaller, fairly simple project. We move a box across a screen, and then for every raindrop we check for collisions with that box. If one is caught, we destroy the raindrop and add one to a hit counter.

I added an averaging function too so I could leave it running for a while and then see the results later.

View project

Leave a Reply

Your email address will not be published.