I've created this simulation in 2D and it works pretty well. But when I bring it into 3d I have a problem based on the speed. I have calculated at the maths based on the accurate values for the sun, and for mercury (just two planets for simplicity for now), and then when I draw the objects I...
I used TutrleMeister's method most, as it was by far the easiest to implement within a computer program. The difference in acceleration and movement is calculated in by a BigDecimal, with a rounding of 128 decimal places. This should theoretically mean that the majority of any numerical errors...
What if I were to later simulate an object that is effected by the gravitational force of say, the sun, but not to a strong enough extent that it fulfils an orbit?
Thank you you for the link and the information, I will look into it further :)
For my own personal project I want to simulate our solar system on a computer program.
I understand that the force applied on a body due to gravity can be calculated by dividing the product of the two masses by the square of the distance between them, then multiplying this value by the...