I am making an n-body simulator, but I'm stuck. How can I find the components of the Force acting between two bodies such as the Earth and the Sun. I know it's-
F * Cos(theta) and F * Sin(theta) but if I don't know the angle how can I find the components?
I'm using the diagram on this...