In this example, we simulate the covid experiment using the physics simulation. Following is what we are doing:
- 21 humans are created with 20 green and 1 red ball.
- Gravity is set to 0 simulating zero gravity.
- The balls move at random speeds constantly creating random behavior.
- If the green balls touch the red balls, it turns red.
- After 10 seconds the red ball gets converted to green.