Ready to SHIP my project! In this last hour of my work, I have finished the local settings panel that displays the selected body tab, I have made the physics more REALISTIC, and I have polished the simulation up a bit! Now I’m just going to make a README, upload to itch.io, and make a video tutorial to hopefully maximize the stardust I gain from my first ever project on Stardance! Thank you everyone for this opportunity that was given to me!
Comments 2
What is the mathematics/physics behind your simulations?
@Synxed I calculated the pulls and pushes the bodies were acting on each other using the equation for Newtonian gravity. So basically, frame by frame, (I used a leapfrog type of method for updating the simulation so it keeps the orbital motion stable) we check the forces and their directions that are being applied to each body. We then use the body’s mass and Newton’s second law to convert the force into acceleration, then we use the acceleration to update its velocity and its velocity to update its position. The chaos aspect of the simulation is how tiny changes can absolutely explode (chaotic) or not have much effect (stable). Because such tiny changes can have such a big impact, I added a little bit of softening for when the suns get very close to each other. That is basically it, you might hear that the three body problem is “impossible” which is true. This is because there is no single equation to perfectly predict the future behavior of a three body system, but this does not mean that simulating the three body problem frame by frame by calculating the gravitational forces being applied, is “impossible”, in fact it can get quite realistic (although as you see from the softening, it cant have perfect accuracy for my little simulation) And to give you an example, its like body A and body C both apply gravitational forces to B, while body B and body C apply forces to A and so on.
Sign in to join the conversation.