Thanks for the link. I think I tried this before, but maybe reversed the order in which I set velocity and acceleration (causing eventual drifting outward of the system).
Yes, I understand, but I sometimes saw bodies (representing the majority of the mass of the overall system) propelled...
Hi everyone:
I wanted to design a 2-dimensional gravity simulator as part of a larger research project. I wrote it in Python using numpy to store positions, velocities, and accelerations, and matplotlib to display the trajectories; code is available upon request.
In order to solve the problem...