Integration error in high velocity
- by Elektito
I've implemented a simple simulation of two planets (simple 2D disks really) in which the only force is gravity and there is also collision detection/response (collisions are completely elastic). I can launch one planet into orbit of the other just fine.
The collision detection code though does not work so well. I noticed that when one planet hits…