Germs Like:

Mimicking the behaviors of germs through the microscope lens.

Edit : https://editor.p5js.org/ca2969/sketches/PqjV9U0Hu

Full screen : https://editor.p5js.org/ca2969/full/PqjV9U0Hu

Inspired : I have been interested in gut health and all that stuff and just recently learned that there is about 2 kg weight of germs in human body not necessary has to be bad germs. so I just want to mimic the movement of them.

https://www.youtube.com/watch?app=desktop&v=Edmev8lQxLM&themeRefresh=1

london-under-the-microscope.webp

Screenshot 2024-03-14 at 11.48.15 AM.png

Summary :

The code constitutes an interactive simulation of microbial movement within a confined space, emulating the behavior of germs with the spotlight like microscope lenses. This simulation creates an engaging visualization of various types of germs navigating a designated area. The objective is to mimic the random, erratic movement characteristic of microscopic organisms while incorporating interactive elements to enhance engagement.

There are three distinct types of germs: circular particles, dot formations, and wiggling lines. Each germ type is represented visually and behaves uniquely within the simulation. The circular particles exhibit smooth, fluid motion, while dot formations scatter across the canvas, and wiggling lines slither unpredictably, resembling the movement of worms. This diversity adds visual richness and complexity to the simulation, capturing the randomness observed in microbial behavior.

The simulation incorporates interactive features to further immerse the user in the experience. When the mouse hovers over the canvas, a spotlight effect is activated, illuminating the surrounding area and enhancing the visual appeal of the simulation. Additionally, clicking the mouse triggers a "crazy" mode, causing the germs to exhibit exaggerated, erratic movements, intensifying the dynamic nature of the simulation. Another interactive element involves merging circle germs upon collision, creating larger clusters, simulating the proliferation of microorganisms.

The code employs principles of physics to govern germ movement, incorporating concepts such as velocity, acceleration, and collision detection. Each germ instance interacts independently, responding to external stimuli and influencing its surroundings. For instance, germs bounce off walls upon collision and merge with other circle germs upon contact, demonstrating emergent behavior and complexity within the simulation.

Overall, this simulation could be serves as an educational tool to illustrate the dynamic nature of microbial behavior in a visually engaging manner. By combining elements of interactivity, physics-based motion, and diverse germ types, the simulation provides an immersive experience that fosters curiosity and understanding of microscopic phenomena. Through experimentation and observation, users can explore the intricate world of microorganisms and gain insight into their behaviors and interactions.

Process :

  1. define germ class & type

  2. update the movement with physics