2D gravity simulation with 1800 particles
Channel:
Subscribers:
250
Published on ● Video Link: https://www.youtube.com/watch?v=_mzq0da1dOE
Written in C++
I first wrote this 2D gravity simulator in around 2003. Every particle exerts a gravitational force on every other particles. The slightly smaller particles shown here have a vastly smaller mass than the larger ones.
I have just updated the program to be able to take advantage of mutiple cores. In 2003 the program could only manage about 300 particles at once, because every particle gravitationally interacts with every other particle, which results in 44,850 gravity calculations needing to be done every frame. On my new PC using multiple cores it can now deal with over 2000 particles at 60fps. That involves nearly 2 million gravity calculations per frame.
Other Videos By Andrew Gillett
2023-09-06 | Trying out Dead Petals Bliss |
2023-07-14 | Space Giraffe - part 5 - levels 85 to 100 |
2023-06-26 | Space Giraffe - part 4 - levels 65 to 85 |
2023-06-24 | Space Giraffe - part 3 - levels 47 to 64 |
2023-06-23 | Space Giraffe - Part 2 - levels 27 to 46 |
2023-06-21 | Space Giraffe - The Best Game You've Never Heard Of |
2023-06-18 | Polybius - levels 43 to 50 and ending |
2023-06-11 | 2D gravity simulation with 5000 particles |
2023-06-11 | Polybius - levels 32 to 43 |
2023-06-05 | Polybius - levels 31 and 32 |
2023-06-04 | 2D gravity simulation with 1800 particles |
2023-05-30 | Polybius - levels 27 to 30 |
2023-05-24 | Polybius - levels 19 to 27 |
2023-05-19 | Polybius - levels 14 to 18 |
2023-05-16 | Humanity - Part 1 - Tutorial and Awakening |
2023-05-16 | Polybius - levels 10 to 14 |
2023-05-15 | Polybius - levels 1 to 10 |
2023-04-14 | Akka Arrh - levels 46 to 49 |
2023-03-18 | Akka Arrh - levels 36 to 46 |
2023-03-07 | Akka Arrh - reaching level 36 |
2023-03-01 | Akka Arrh - levels 19 to 26 |