# How can I compute the orbit of one body around another?

I'm attempting to have a planet (with a known mass and radius) orbit it's sun (also with a known mass and radius). It doesn't have to be 100% realistic, but it should be possible that the sun have more than one planet orbit it at a time.

What equations should I use to accomplish this?

• Indeed, use a simulation of Newtons law of universal gravitation as suggested in the answers to the duplicate-question. Feb 7 '14 at 15:22
• I believe the duplicate was calculating the gravity at a given point around a spherical body. Calculating the speed and distance from a body to have a stable orbit is different. See here to get you started: en.wikipedia.org/wiki/Orbital_speed
– House
Feb 7 '14 at 16:01