Uploaded April 2019 | Updated September 2026, 33 minutes ago
This engine allows the user to input thousands of objects and watch an n-body physics display occur. If objects collide, those objects will "merge".
The number at the top left represents the number of objects remaining in the simulation.
The camera "locks-on" to the largest mass object and follows it around, moving to any larger object as objects merge.
It relies on only a few functions and objects to do all the work, so hopefully the code is quite easy to understand and follow.
The codebase can be found here: github.com/s0lly/NBody-Physics
Please let me know how I could improve this!
This was made using the Chili Framework: http://wiki.planetchili.net/index.php... - thanks Chili!
This engine allows the user to input thousands of objects and watch an n-body physics display occur. If objects collide, those objects will "merge".
The number at the top left represents the number of objects remaining in the simulation.
The camera "locks-on" to the largest mass object and follows it around, moving to any larger object as objects merge.
It relies on only a few functions and objects to do all the work, so hopefully the code is quite easy to understand and follow.
The codebase can be found here: github.com/s0lly/NBody-Physics
Please let me know how I could improve this!
This was made using the Chili Framework: http://wiki.planetchili.net/index.php... - thanks Chili!







![Transparent Windows feat. Bevy [Rust]
After only spending a few hours this weekend, I was able to code up a simple image overlay with a couple of fun features. Code was surprising easy to implement for the effect I was going for.
Hopefully this will lead to some future videos as I journey through learning Rust. Transparent Windows feat. Bevy [Rust]](https://i.ytimg.com/vi/gymEcIAi_J8/mqdefault.jpg)


