I understand that a smaller time step will increase the simulation accuracy, its not a physically accurate simulation its just for fun and self education, I'm using an arbitrary G constant to make a pleasing amount of particles move at a pleasing velocity with a reasonable framerate with vsync...
Actually step size makes no difference because the particles have no size and its a matter of the ratio between how far apart they are before and after they pass, if they are closer after they pass they slow down and vice versa, thanks anyway for your input.
I've been experimenting with my own N-body simulation and I've found a seemingly unsolvable problem.
When 2 particles cross paths exactly the peak velocity varies according to how close they are at their closest point and they either fly off the screen or slow right down, I can add an offset to...