A simple planet gravity simulaton using Newton's law of universal gravitation
Static planets do not move and have a greater mass, while dynamic planets will be able to move and be attracted to each other. You can drag the mouse to give an initial velocity to a dynamic planet.