What are some algorithms that will allow me to simulate planetary physics?

前端 未结 12 554
离开以前
离开以前 2021-01-30 17:37

I\'m interested in doing a \"Solar System\" simulator that will allow me to simulate the rotational and gravitational forces of planets and stars.

I\'d like to be able t

12条回答
  •  夕颜
    夕颜 (楼主)
    2021-01-30 18:23

    This is a great tutorial on N-body problems in general.

    http://www.artcompsci.org/#msa

    It's written using Ruby but pretty easy to map into other languages etc. It covers some of the common integration approaches; Forward-Euler, Leapfrog and Hermite.

提交回复
热议问题