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 website but I'm still baffled.
http://www.cs.princeton.edu/courses/archive/spr01/cs126/assignments/nbody.html
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 website but I'm still baffled.
http://www.cs.princeton.edu/courses/archive/spr01/cs126/assignments/nbody.html