Рет қаралды 19,240
Making an n-body gravity simulation without wasting any time. After this 9 minute tutorial, you should have all the knowledge you need to make your own basic n-body simulation in your preferred programming language and most importantly, you might even understand it.
I try to keep my videos relevant, no matter what language you use, as long as there's no language explicitly specified in the title. This means that I don't use any hyper-language-specific features and instead try to stick to things that most widely used languages have. This means no specific libraries exclusive to rust and I instead focus on showing code that does what it looks like it does.
Code: github.com/Dea...
Chapters:
0:00 - Intro
0:18 - Bodies
0:35 - Initialization
1:04 - Interaction
2:27 - Integration
4:42 - Softening
5:15 - Optimization
8:06 - Rendering
8:24 - Outro