I am experimenting with applying Newton's law of gravitation to objects in scratch. The purple object should orbit the green planet and leave a trail behind that resembles an orbit.
Credit goes to Newton for his equation of gravitation: F = G*((m1*m2)/d^2) -Update- I added another object for the two objects to orbit around. Unfortunately I could not find parameters that enabled them to remain in stable orbits, instead the objects will follow slightly different trajectories each time.