- #1
CommanderLake
- 4
- 0
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 the gravitational force but that makes acceleration more linear.
Obviously the real world doesn't have an update rate so conventional physics probably won't help but I wonder if anyone here might be able to tell me how I might solve this?
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 the gravitational force but that makes acceleration more linear.
Obviously the real world doesn't have an update rate so conventional physics probably won't help but I wonder if anyone here might be able to tell me how I might solve this?