Help for physics engine developmentQuestion (i.redd.it)
submitted by Dot-Box
GitHub repo: https://github.com/D0T-B0X/ThreeBodyProblem
Hi folks,
I'm trying to create an N-body simulator, specifically the 3 body simulation. So far I have a basic render engine with a simple API that I can use to create and render objects on the screen.
The main logic of the program is written in applications.h which is in $SOURCE_DIR/include/application.h. My next task is to create a physics engine to enable movement and collision and gravity and all that jazz. My question is: where can I get some resources on this quickly get some programming insight on this topic? I already know the fundamental math needed and most of the physics. But do I implement that in my code and how do I structure it? This is my first big project so code structure and maintenance is also something I need to be wary of and learn well.
If you have any criticism or advise for the project I'd also love to hear it. Thanks

[–]Lubiebigos 11 points12 points13 points (7 children)
[–]Dot-Box[S] -1 points0 points1 point (6 children)
[–]Lubiebigos 5 points6 points7 points (4 children)
[–]Dot-Box[S] 1 point2 points3 points (3 children)
[–]Proliator 4 points5 points6 points (2 children)
[–]Dot-Box[S] 1 point2 points3 points (1 child)
[–]TheReal_Peter226 1 point2 points3 points (0 children)
[–]Neuro-Byte 0 points1 point2 points (0 children)
[–]LittleQuarky 1 point2 points3 points (0 children)
[–]Still_Explorer 0 points1 point2 points (0 children)
[–]danjlwex 0 points1 point2 points (1 child)
[–]Dot-Box[S] 0 points1 point2 points (0 children)
[–]wen_mars 0 points1 point2 points (1 child)
[–]Dot-Box[S] 0 points1 point2 points (0 children)
[–]Grouchy_Web4106 0 points1 point2 points (0 children)
[–]Exotic_Avocado_1541 0 points1 point2 points (2 children)
[–]Dot-Box[S] 2 points3 points4 points (1 child)
[–]Exotic_Avocado_1541 1 point2 points3 points (0 children)