Skip to main content

All Questions

Filter by
Sorted by
Tagged with
1 vote
2 answers
129 views

Gravity Simulation failing at short distances

I have a 2D space simulation with gravity acting on three bodies (e.g. sun and 2x planets). The simulation seems pretty stable with RK4 (was unstable with Euler). The problem arises if the orbit of ...
Ken's user avatar
  • 6,146
0 votes
2 answers
317 views

Integration error in high velocity

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 ...
Elektito's user avatar
  • 103