We build a particle collider and explore interesting properties such as crowded environments, responsive radii (that decrease upon collision) and network visualisation by connecting the particles. This project make use of object-oriented programming to create a Particle class. The visualisation makes use of the amazing Pygame library and all files associated with this project are available on GitHub.
GitHub Repository: https://github.com/EruditeCode/particle_collider
Some Amazing Coding Channels:
freeCodeCamp: https://www.youtube.com/c/Freecodecamp
MCoding: https://www.youtube.com/c/mCodingWithJamesMurphy
ArjanCodes: https://www.youtube.com/c/ArjanCodes
Python Engineer: https://www.youtube.com/c/PythonEngineer
The Coding Train: https://www.youtube.com/c/TheCodingTrain
Thanks for watching and see you in the next one!
Music:
Leavin (Sting) - MK2
The Golden Present - Jesse Gallagher
Lost in Prayer - Doug Maxwell
Chapters:
00:00 Introduction
00:41 Exploring main.py
01:26 The While Loop
02:21 The Particle Class
06:50 Exploring Visualisation
07:29 Responsive Radii
09:22 Connected Particles
10:37 Dynamic Network Visualisation